getMainHandDurability() don't work
Posted: Fri Jan 04, 2013 5:23 am
hi i had a problem with this function (not error) but doesn't work:
My dagger is 105 so i want to repair when she is under 101 for have bonus, but nothing work, i try to change "95" by an other but don't work too...
An idea? or other function for repair ?
Code: Select all
function checkdura()
local dura = inventory:getMainHandDurability();
if 95 > dura
then __WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
end
An idea? or other function for repair ?