Page 1 of 1
Waypoint Finder
Posted: Wed Jun 22, 2011 4:00 pm
by MiesterMan
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.
Re: Waypoint Finder
Posted: Wed Jun 29, 2011 3:06 pm
by whome
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.......
Re: Waypoint Finder
Posted: Thu Jun 30, 2011 8:21 pm
by MiesterMan
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.
Re: Waypoint Finder
Posted: Fri Jul 01, 2011 2:50 am
by whome
Sweet, thanks for that, time to play...........
Re: Waypoint Finder
Posted: Sat Dec 31, 2011 8:22 pm
by cufRet8e
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?:)
Re: Waypoint Finder
Posted: Sat Dec 31, 2011 9:11 pm
by lisa
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.
Re: Waypoint Finder
Posted: Sun Jan 01, 2012 4:51 am
by cufRet8e
Thank you.