As title states i need a life ring equiper im sure its here somewhere i just cant find it for the life of me ;(
any help appreciated TYI
As title states i need a life ring equiper im sure its here somewhere i just cant find it for the life of me ;(
any help appreciated TYI
This is one I use, you can edit the bolded parts.
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()*(85/100)) then
Self.Equip(RingID, "ring")
elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
Self.Dequip("ring")
end
modelay(2000)
end)
Thankyou!
having an error with your suggestion i must be doing something wrong
Last edited by zwalkes; 04-16-2016 at 07:26 AM.
Hey man i tried using your suggestion what am i doing wrong?? @yoyoa1
01:21 XenoScript Error:
Script: Life ring.lua
Line #: 9
Chunk: C:?Users?Bill?DOCUME?1?XenoBot?Scripts??LIFERI?1.L UA
Error: attempt to call global 'modelay' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.
Last edited by zwalkes; 04-16-2016 at 07:45 AM.
This should workCode: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()*(85/100)) then Self.Equip(RingID, "ring") elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then Self.Dequip("ring") end mod:Delay(2000) end)
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()*(85/100)) then
Self.Equip(RingID, "ring")
elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
Self.Dequip("ring")
end
modelay(2000)
end)