PDA

View Full Version : REQUEST- Life Ring Equiper



zwalkes
04-07-2016, 01:41 PM
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

yoyoa1
04-07-2016, 03:37 PM
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
mod:Delay(2000)
end)

zwalkes
04-07-2016, 04:35 PM
Thankyou!

zwalkes
04-16-2016, 07:22 AM
having an error with your suggestion i must be doing something wrong

zwalkes
04-16-2016, 07:25 AM
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
mod:Delay(2000)
end)

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.

yompa93
04-16-2016, 10:13 AM
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)

This should work

zwalkes
04-16-2016, 11:01 AM
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)

This should work

Much appreciated!

bodyboarding
04-18-2016, 02:53 AM
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)

django0223
07-19-2016, 12:07 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()*(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)

This should work

i just random copie this in .lua file? or copie this on the very bottom of the .lua file?>