The file starts with a <waypoints> tag and ends with a </waypoints> tag. In between there are points that open with <waypoint> tags and close with </waypoint> tags. The opening tags have other info in them as well. All lua code must go between the opening and closing waypoint tags or they wont get executed. Here's an example;Deadlifer wrote:I tried that, but dont work:
-----------------------------------------------------------------------
<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="-4499" z="6658"> </waypoint>
player:harvest();
</waypoint>
<!-- # 2 --><waypoint x="-4772" z="6555"> </waypoint>
player:harvest();
</waypoint>
</waypoints>
----------------------------------------------------------------------
sorry, dont know how to make the list.
i have made something wrong? my char don't move.. that launch that error:
"...acro/micromacro/scripts/rom/classes/waypointlist.lua:21: XML Parse Error.
File: ...micromacro/micromacro/scripts/rom/waypoints/try2.xml
Line: 4
Column: 3
Pos: 103
Message: mismatched tag"
(try2.xml is the name of the waypoint created)
Code: Select all
<waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="-4499" z="6658"> Some code at point 1 </waypoint>
<!-- # 2 --><waypoint x="-4772" z="6555"> Some code at point 2
</waypoint>
<!-- # 3 --><waypoint x="-4772" z="6555">
Some code at point 3
</waypoint>
</waypoints>
Also remember it's one of the rules of this forum to always put code you post here between
Code: Select all
tags.