Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. for b,c,a,d in strgfind(msg, "Вы наносите (.+) (%d+) ед%. урона(.*)%.%s?(.*)") do
  2.         if a ~= ": критический удар" then t[1]=1;t[2]=0
  3.         if d == "(glancing)" then t[3]=1;t[1]=0;t[2]=0 elseif d ~= "" then t[4]=1;t[1]=0;t[2]=0 end
  4.         DB:EnemyDamage(true, DPSMateEDT, self.player, "AutoAttack", t[1] or 0, t[2] or 1, 0, 0, 0, 0, tnbr(c), b, t[4] or 0, t[3] or 0)
  5.         DB:DamageDone(self.player, "AutoAttack", t[1] or 0, t[2] or 1, 0, 0, 0, 0, tnbr(c), t[3] or 0, t[4] or 0)
  6.         if self.TargetParty[b] then DB:BuildFail(1, b, self.player, "AutoAttack", tnbr(c));DB:DeathHistory(b, self.player, "AutoAttack", tnbr(c), t[1] or 0, t[2] or 1, 0, 0) end
  7.         return
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement