Waypoint Finder

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Waypoint Finder

#1 Post by MiesterMan » Wed Jun 22, 2011 4:00 pm

While trying to develop "node scanner" that would create a suggested waypoint to be injected between two other waypoints I made this and have been using it as is rather than moving forward with the other project.

This is function that can be used with the command line script to make new waypoints you can put in your script file for the next time it is loaded just copy the output from this function call and paste it in your waypoint file:

Syntax: findWP()

It will output something like this:

Code: Select all

        RomBot command line
Type in 'q' (without quotes) to quit.
Command> findWP()

<!-- #000 --><waypoint x="0000" z="0000" y="0000">player:harvest();</waypoint>

Command>
Where the coordinates of the current position of you character is the put into x,z, and y values.
userfunction_WaypointFinder.lua
Waypoint Finder (there won't be any other versions)
(688 Bytes) Downloaded 353 times

whome
Posts: 58
Joined: Fri Jun 17, 2011 2:51 am

Re: Waypoint Finder

#2 Post by whome » Wed Jun 29, 2011 3:06 pm

How do i activate it? I use a laptop and dont have the luxury of a numberpad and would like to play with making some new cavy farming paths......
Oh, and for the MM challenged, where exactly do I place this??

EDIT: WORKED IT OUT!!

If anyone else is wondering, place lua file in: micromacro/scripts/rom/userfunctions
After running MM, locate the "Commandline" in the numbered functions to be able to enter the 'FindWP' fucntion.......

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Waypoint Finder

#3 Post by MiesterMan » Thu Jun 30, 2011 8:21 pm

whome wrote:How do i activate it? I use a laptop and dont have the luxury of a numberpad and would like to play with making some new cavy farming paths......
Oh, and for the MM challenged, where exactly do I place this??

EDIT: WORKED IT OUT!!

If anyone else is wondering, place lua file in: micromacro/scripts/rom/userfunctions
After running MM, locate the "Commandline" in the numbered functions to be able to enter the 'FindWP' fucntion.......
Heh, sorry, got busy and couldn't answer. TBH what you need is the createpath.lua file that's in the scripts\rom directory. If your laptop can't use a keypad then you can change the keys in the beginning of the file. I'd reccomend the F1....F10 keys. Just change the VK_NUMPAD1 to VK_F1 and so on.

whome
Posts: 58
Joined: Fri Jun 17, 2011 2:51 am

Re: Waypoint Finder

#4 Post by whome » Fri Jul 01, 2011 2:50 am

Sweet, thanks for that, time to play...........

User avatar
cufRet8e
Posts: 82
Joined: Tue Dec 27, 2011 2:33 pm
Location: UK

Re: Waypoint Finder

#5 Post by cufRet8e » Sat Dec 31, 2011 8:22 pm

To make modifying of my waypoints effective, I need to know, how to move character to particular waypoint number or to x,y,z coords. How to do it from commandline?:)

User avatar
lisa
Posts: 8330
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Waypoint Finder

#6 Post by lisa » Sat Dec 31, 2011 9:11 pm

Code: Select all

player:moveTo( CWaypoint(X, Z, Y), true) 
Obviously replace the X,Z,Y with the actual coord values, you don't need the Y if you don't know it.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
cufRet8e
Posts: 82
Joined: Tue Dec 27, 2011 2:33 pm
Location: UK

Re: Waypoint Finder

#7 Post by cufRet8e » Sun Jan 01, 2012 4:51 am

Thank you.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests