-
hextler
- Posts: 3
- Joined: Sun Oct 10, 2010 3:29 pm
#1
Post
by hextler » Sun Oct 10, 2010 3:36 pm
I made a waypoint with a lua script and it turns out an error:
Code: Select all
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.
-
Attachments
-

-
matt87
- Posts: 9
- Joined: Sat Jan 23, 2010 12:26 am
#2
Post
by matt87 » Sun Oct 10, 2010 8:16 pm
Code: Select all
if 20 > RoMScript("HowDurable(15)") then
sendMacro("UseItemByName('Einfacher Reparaturhammer')");
sendMacro("PickupEquipmentItem(15)");
end
Should work. Use ' instead of " while you have string statement already started.
-
hextler
- Posts: 3
- Joined: Sun Oct 10, 2010 3:29 pm
#3
Post
by hextler » Mon Oct 11, 2010 7:24 am
thx it works
Who is online
Users browsing this forum: Bing [Bot] and 1 guest