problem with a scirpt

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
hextler
Posts: 3
Joined: Sun Oct 10, 2010 3:29 pm

problem with a scirpt

#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
Unbenannt.PNG

User avatar
matt87
Posts: 9
Joined: Sat Jan 23, 2010 12:26 am

Re: problem with a scirpt

#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

Re: problem with a scirpt

#3 Post by hextler » Mon Oct 11, 2010 7:24 am

thx it works

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest