Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ringId = 3052 --temque ser o life ring
- local otherRingId = 3007 --temq ser o crystal ring
- local bootsId = 0000 --temque ser o soft id
- local otherBootsId = 1111 --temque ser a boh id
- local manaEquip = 400
- local manaUnequipe = 520
- local randomMana = true -- will do a random of 10% value
- local ringInUse = 3089 --id life ring in use
- local bootsInUse = 2222 --id soft in use
- while(true) do
- local manaMin = (randomMana and math.random(manaEquip * 0.9, manaEquip * 1.1) or manaEquip)
- local manaMax = (randomMana and math.random(manaUnequipe * 0.9, manaUnequipe * 1.1) or manaUnequipe)
- if (Self.Mana() >= manaMax or Self.isInPz() or Self.Ring().id == 0) then
- if (Self.Ring().id ~= otherRingId and Self.ItemCount(otherRingId) > 0) then
- Self.Equip(otherRingId, "ring")
- wait(1500, 2500)
- end
- if (Self.Boots().id ~= otherBootsId and Self.ItemCount(otherBootsId) > 0) then
- Self.Equip(otherBootsId, "boots")
- wait(1500, 2500)
- end
- end
- if (Self.Mana() <= manaMin and not Self.isInPz()) then
- if (Self.Ring().id ~= ringInUse and Self.ItemCount(ringId) > 0) then
- Self.Equip(ringId, "ring")
- wait(1500, 2500)
- end
- if (Self.Boots().id ~= bootsInUse and Self.ItemCount(bootsId) > 0) then
- Self.Equip(bootsId, "boots")
- wait(1500, 2500)
- end
- end
- wait(100)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement