Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.30 KB | None | 0 0
  1. local ringId = 3052 --temque ser o life ring
  2. local otherRingId = 3007 --temq ser o crystal ring
  3. local bootsId = 0000 --temque ser o soft id
  4. local otherBootsId = 1111 --temque ser a boh id
  5. local manaEquip = 400
  6. local manaUnequipe = 520
  7. local randomMana = true -- will do a random of 10% value
  8.  
  9. local ringInUse = 3089 --id life ring in use
  10. local bootsInUse = 2222 --id soft in use
  11. while(true) do
  12.     local manaMin = (randomMana and math.random(manaEquip * 0.9, manaEquip * 1.1) or manaEquip)
  13.     local manaMax = (randomMana and math.random(manaUnequipe * 0.9, manaUnequipe * 1.1) or manaUnequipe)
  14.  
  15.     if (Self.Mana() >= manaMax or Self.isInPz() or Self.Ring().id == 0) then
  16.         if (Self.Ring().id ~= otherRingId and Self.ItemCount(otherRingId) > 0) then
  17.             Self.Equip(otherRingId, "ring")
  18.             wait(1500, 2500)
  19.         end
  20.  
  21.         if (Self.Boots().id ~= otherBootsId and Self.ItemCount(otherBootsId) > 0) then
  22.             Self.Equip(otherBootsId, "boots")
  23.             wait(1500, 2500)
  24.         end
  25.     end
  26.  
  27.     if (Self.Mana() <= manaMin and not Self.isInPz()) then
  28.         if (Self.Ring().id ~= ringInUse and Self.ItemCount(ringId) > 0) then
  29.             Self.Equip(ringId, "ring")
  30.             wait(1500, 2500)
  31.         end
  32.  
  33.         if (Self.Boots().id ~= bootsInUse and Self.ItemCount(bootsId) > 0) then
  34.             Self.Equip(bootsId, "boots")
  35.             wait(1500, 2500)
  36.         end
  37.     end
  38.  
  39.     wait(100)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement