if 20 > RoMScript("HowDurable(15)") then
sendMacro("UseItemByName("Einfacher Reparaturhammer")");
sendMacro("PickupEquipmentItem(15)");
end
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.