Mesut Ozil
New Member
- Joined
- Jul 8, 2016
- Messages
- 27
- Reaction score
- 0
hello maybe someone can help me to find this code
i have this script
local RingID = 3051 -- Ring ID.
local RingOLD = 12737 --The ID of the normal ring you wear.
local EquipHP = 70 -- Equip Ring at % Health.
local UnEquipHP = 90 -- Health % When you UnEquip The ring and put your other one back.
while (true) do
local creature = Creature.GetByID(Self.ID())
if ((creature:HealthPercent() <= EquipHP) and Self.Ring().id == RingOLD) then
Self.Equip(RingID, "ring")
sleep(math.random(300, 300))
elseif ((creature:HealthPercent() >= UnEquipHP)) then
Self.Equip(RingOLD, "ring")
sleep(math.random(200, 300))
end
end
example:
my character now using energy ring when health become 70% it will dequip energy ring and equip health ring and when it come 90% again it will dequip health ring and equip energy ring
the problem now that i need it work with my manapercent not health percent and i don't know manapercent code i changed it from creature:HealthPercent() to creature:ManaPercent() but it didn't work and i got debug message in xenobot ?
any help please?
i have this script
local RingID = 3051 -- Ring ID.
local RingOLD = 12737 --The ID of the normal ring you wear.
local EquipHP = 70 -- Equip Ring at % Health.
local UnEquipHP = 90 -- Health % When you UnEquip The ring and put your other one back.
while (true) do
local creature = Creature.GetByID(Self.ID())
if ((creature:HealthPercent() <= EquipHP) and Self.Ring().id == RingOLD) then
Self.Equip(RingID, "ring")
sleep(math.random(300, 300))
elseif ((creature:HealthPercent() >= UnEquipHP)) then
Self.Equip(RingOLD, "ring")
sleep(math.random(200, 300))
end
end
example:
my character now using energy ring when health become 70% it will dequip energy ring and equip health ring and when it come 90% again it will dequip health ring and equip energy ring
the problem now that i need it work with my manapercent not health percent and i don't know manapercent code i changed it from creature:HealthPercent() to creature:ManaPercent() but it didn't work and i got debug message in xenobot ?
any help please?