goto command in waypoints

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Jig
Posts: 13
Joined: Tue Apr 23, 2013 4:14 pm

goto command in waypoints

#1 Post by Jig » Sat Apr 27, 2013 2:42 am

Hello,

is it possible to use a "goto line xy" command to jump between lines in the same .xml?

example:

Code: Select all

(line 1 )

waypoint 1
waypoint 2
waypoint 3
jump to line 3

(line 2 )
doanything then jump to line 1 else line 3

(line 3 )

blabla
jump to line 1
or better like the goto like in c++ ;)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: goto command in waypoints

#2 Post by rock5 » Sat Apr 27, 2013 4:54 am

Are you talking about jumping to certain waypoints or actual goto a line in lua code?

Jump to waypoint

Code: Select all

__WPL:setWaypointIndex(number)
Goto lua line, now available in lua 5.2 which is what Micromacro 1.03 uses. I haven't used goto yet so I'm not sure of the syntax. Look it up. Although I suspect, most of the time, if you program correctly you shouldn't need to use 'goto'.
  • 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

wps
Posts: 74
Joined: Tue Feb 05, 2013 11:11 am

Re: goto command in waypoints

#3 Post by wps » Sat Apr 27, 2013 6:07 am

There is a "tag" attribute for readability.

<waypoint x="x" z="z" y="y" tag="goto_Quest"> </waypoint>

__WPL:setWaypointIndex(__WPL:findWaypointTag("goto_Quest"));

Jig
Posts: 13
Joined: Tue Apr 23, 2013 4:14 pm

Re: goto command in waypoints

#4 Post by Jig » Sat Apr 27, 2013 11:03 am

i will test it in a few hours with a profile, but thank you very much again. When i have a problem i will reply.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 12 guests