Page 1 of 1

Mana Stone Script Help

Posted: Sun Jan 19, 2014 6:18 pm
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

Re: Mana Stone Script Help

Posted: Sun Jan 19, 2014 11:40 pm
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.

Re: Mana Stone Script Help

Posted: Mon Jan 20, 2014 2:25 am
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>