problem with a scirpt
Posted: Sun Oct 10, 2010 3:36 pm
I made a waypoint with a lua script and it turns out an error:
The function "HowDurable(slot)" returns the durability and if it's under 20
the Bot should use a repair hammer("Einfacher Reparaturhammer"), but he has
a problem with the UseItemByName function.
Code: Select all
if 20 > RoMScript("HowDurable(15)") then
sendMacro("UseItemByName("Einfacher Reparaturhammer")");
sendMacro("PickupEquipmentItem(15)");
endthe Bot should use a repair hammer("Einfacher Reparaturhammer"), but he has
a problem with the UseItemByName function.