Mana Stone Script Help

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Lamkefyned
Posts: 348
Joined: Thu May 23, 2013 11:38 am
Location: Spain

Mana Stone Script Help

#1 Post by Lamkefyned »

Hi, I started the script in "SARLO" Take the belts and shows when you are mailing this error:
buybelts.xml
(12.04 KiB) Downloaded 132 times
Sin título.png
Location:
  • I am with another character that is not on the list!
    Grab the belts but when it comes to e Lua Error check
    Sin título.png
If you think something is right just because everyone else believes,you're not thinking.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Mana Stone Script Help

#2 Post by rock5 »

Code: Select all

if nameTable[counter] == "Screetigh","Splychu","Ceiphee","Gnarailf","Jamudea","Prealpee","Springoi","Glachoi","Spaelf","Eigoibu","Klirstae","Eangeeth","Bumetho","Shreng","Thoiboich","Screihoo" then                     <!--Insert last characters name in quotes on line 40 and 41 ex: if nameTable[counter] == "Bob" -->
UMM_SendByNameOrId("Screetigh","Splychu","Ceiphee","Gnarailf","Jamudea","Prealpee","Springoi","Glachoi","Spaelf","Eigoibu","Klirstae","Eangeeth","Bumetho","Shreng","Thoiboich","Screihoo",228966);                       <!--Same as above-->
These 2 lines are both wrong.

In the first line you are doing a comparison. You can only do a comparison between one thing and another thing. You are trying to do a comparison between one thing and lots of other things. That's a syntax error so it will cause a compile error.

The second line wont cause a compile error but it wont work because the function is not used properly. The format for the function is

Code: Select all

UMM_SendByNameOrId(_recipient, _itemTable, _amount)
You are trying to send to recipient "Screetigh" items with the name "Splychu". And the amount you are trying to send is "Ceiphee". All the rest of the arguments will be ignored. This will most likely error when it is run.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Eggman1414
Posts: 111
Joined: Sun Jun 17, 2012 2:27 pm

Re: Mana Stone Script Help

#3 Post by Eggman1414 »

could of just posted this under the main thread *Hint it is my Waypoint*

it should look like this on line 135 waypoint 33:

Code: Select all

<!-- # 33 --><waypoint x="-18134" z="-2477" y="822">
if nameTable[counter] == "Screihoo" then
UMM_SendByNameOrId("Screihoo",228966);
print("Done mailing.")
travelTo("VaranasWest")
load_paths("Shop_Path.xml")
else
sendBelts();
end
__WPL:setWaypointIndex(__WPL:findWaypointTag("Mailbox_To_Shop"));
</waypoint>
Post Reply