Advertisement
ppgab

Untitled

May 1st, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. ringEquiper = Module.New('ring equiper', function(module)
  2.     mob = Self.GetTargets(6)
  3.         for i=1, #mob do
  4.             if (table.find(stealthCreatures,(mob[i]:Name()):lower(), false)) and (mob[i]:isReachable()) then
  5.                 equipStealth = true
  6.                 break
  7.             else equipStealth = false
  8.             end
  9.         end
  10.     if Tools.conditionStealth and (Self.ItemCount(3049) > 0) then
  11.         if equipStealth then
  12.             Self.Equip(3049,'ring') end
  13.             module:Delay(400)
  14.         else
  15.             if Self.Ring().id == 3049 then
  16.                 Self.Equip(normalRing,'ring')
  17.                 module:Delay(400)
  18.             end
  19.         end
  20.     end
  21.     module:Delay(400)
  22.     end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement