player:moveTo()

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Junk
Posts: 24
Joined: Tue Oct 23, 2012 4:59 pm

player:moveTo()

#1 Post by Junk » Mon Dec 10, 2012 2:10 pm

My noobishness for scripting is shining through again. I want to use player:moveTo() in an if statement (after all 10 dailies are done), but I can't figure out how to write it so it doesn't error out.

Also, do I need to use a bot waypoint cord, or an in-game cord? I can't find any examples of how to actually write it properly.

dr-nuker
Posts: 145
Joined: Sun Oct 09, 2011 7:33 am

Re: player:moveTo()

#2 Post by dr-nuker » Mon Dec 10, 2012 3:04 pm

Code: Select all

player:moveTo(CWaypoint(151, -149, 72),true)

should be what you need. This makes you move to the given coordinates. I think it is like creating a waypoint on the fly...

User avatar
Junk
Posts: 24
Joined: Tue Oct 23, 2012 4:59 pm

Re: player:moveTo()

#3 Post by Junk » Mon Dec 10, 2012 3:14 pm

Perfect. Thank you so much.

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

Re: player:moveTo()

#4 Post by rock5 » Mon Dec 10, 2012 10:29 pm

In case you don't know, 'true' is telling it not to look for mobs while moving. Obviously if you want it to kill stuff while it's moving you would omit that.

You can get your coords by using

Code: Select all

bot/getpos
in the MM window or double click the "Get_Player_Position.bat" batch file in the 'rom' folder. The coordinates the bot uses are nothing like the in game coordinates.
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests