Is it possible to make this script? Everytime I'm poisoned I want to use the Claw, if possible.
Is it possible to make this script? Everytime I'm poisoned I want to use the Claw, if possible.
Need this too!![]()
lua code:local readyClawId = 9392
local usedClawId = 9394
local unequippedClawId = 9393
Module.New("cure-poision", function()
if (Self.isPoisoned()) then
if (Self.Ring().id == readyClawId) then
Self.UseItemFromEquipment("ring")
elseif (Self.Ring().id == usedClawId) then
Self.Dequip("ring")
else
Self.Equip(unequippedClawId, "ring")
end
end
end)
So how should that script work then?
@edit:
lua code:local readyClawId = 9392
Module.New("cure-poision", function()
if (Self.isPoisoned()) then
if (Self.Ring().id == readyClawId) then
Self.UseItemFromEquipment("ring")
end
end
end)
Last edited by eldera; 02-22-2016 at 10:05 PM.