PDA

View Full Version : I need help for make a Life Ring script



luizbdr
08-31-2016, 01:53 AM
I found this life ring script* and it works, but not the way i wanted. I need a script who can put life ring when I'm off protection zone and remove life ring when I'm in protection zone, is that posible?


(this is what I'm using at the moment)

*

local RingID = 3052

while true do
if Self.Ring().id == 0 then
Self.Equip(RingID, "ring")
end
wait(100,600)
end

luizbdr
08-31-2016, 02:12 AM
@@EDIT: Also I forgot to tell that I wanted to be a script that takes off the life ring with more than 85 ~ 90% mana.

ataturk25
09-16-2016, 05:17 PM
local RingID = 3052

Module('life shit', function(mod)
if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(80/100)) then
Self.Equip(RingID, "ring")
elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(90/100)) then
Self.Dequip("ring")
end
mod:Delay(2000)
end)