Waypoint script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Waypoint script

#1 Post by kylebutler » Wed Dec 15, 2010 1:18 am

Ok so i have set up a waypoint file, and i looked at it but it does not have a green check mark on it. is this why the profile jsut wanders instead of going to the waypoints?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Waypoint script

#2 Post by Administrator » Wed Dec 15, 2010 2:20 am

It's not going to get a green checkmark. It's an unversioned file that is not part of the bot scripts provided for you. It's your own creation.

If you're having a problem with your profile and/or waypoints, don't you think it might be wise to provide your profile and/or waypoints?

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#3 Post by kylebutler » Wed Dec 15, 2010 2:58 am

Sorry i was hoping it was something simple.

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="1794" z="3359"> </waypoint>
<!-- # 2 --><waypoint x="1611" z="3341"> </waypoint>
<!-- # 3 --><waypoint x="1559" z="3417"> </waypoint>
<!-- # 4 --><waypoint x="1504" z="3481"> </waypoint>
<!-- # 5 --><waypoint x="1423" z="3508"> </waypoint>
<!-- # 6 --><waypoint x="1251" z="3543"> </waypoint>
<!-- # 7 --><waypoint x="1220" z="3586"> </waypoint>
<!-- # 8 --><waypoint x="1154" z="3628"> </waypoint>
<!-- # 9 --><waypoint x="1104" z="3720"> </waypoint>
<!-- # 10 --><waypoint x="1190" z="3816"> </waypoint>
<!-- # 11 --><waypoint x="1296" z="3862"> </waypoint>
<!-- # 12 --><waypoint x="1429" z="3905"> </waypoint>
<!-- # 13 --><waypoint x="1399" z="3982"> </waypoint>
<!-- # 14 --><waypoint x="1423" z="4086"> </waypoint>
<!-- # 15 --><waypoint x="1492" z="4135"> </waypoint>
<!-- # 16 --><waypoint x="1595" z="4145"> </waypoint>
<!-- # 17 --><waypoint x="1724" z="4142"> </waypoint>
<!-- # 18 --><waypoint x="1800" z="4094"> </waypoint>
<!-- # 19 --><waypoint x="1835" z="4001"> </waypoint>
<!-- # 20 --><waypoint x="1768" z="3891"> </waypoint>
<!-- # 21 --><waypoint x="1700" z="3833"> </waypoint>
<!-- # 22 --><waypoint x="1694" z="3738"> </waypoint>
<!-- # 23 --><waypoint x="1644" z="3639"> </waypoint>
<!-- # 24 --><waypoint x="1687" z="3557"> </waypoint>
<!-- # 25 --><waypoint x="1717" z="3432"> </waypoint>
</waypoints>


now the thing is, it follows the 'area' the waypoints are in but constantly says going for waypoint 1 or 25 and never changes, i leave for maybe 1 hr and the character is in a completely different location killing completely different mobs.

deveyus
Posts: 14
Joined: Tue Dec 14, 2010 10:02 pm

Re: Waypoint script

#4 Post by deveyus » Wed Dec 15, 2010 12:14 pm

Code: Select all

<option name="WAYPOINTS"		value="CEEK_GATHER_1.xml" />  <!-- leave empty to show a list -->
		<option name="RETURNPATH"		value="" />
		<option name="PATH_TYPE"		value="waypoints" />	<!-- waypoints | wander -->
		<option name="WANDER_RADIUS"		value="500" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 		value="true" />
Make sure you have it set in a similar fashion. Obviously your waypoint path will be different. Take careful note of PATH_TYPE. Sounds like you have it set to wander.

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#5 Post by kylebutler » Wed Dec 15, 2010 1:39 pm

I'm still new to adding script and stuff. I used the createpath.bat i was under the impression that was all you had to do.. so there is more to it than that?

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#6 Post by kylebutler » Fri Dec 17, 2010 3:18 pm

i got it to work but now it runs the waypoints and after it get to the last one, it wanders how do i make it loop

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Waypoint script

#7 Post by jduartedj » Fri Dec 17, 2010 10:09 pm

kylebutler wrote:i got it to work but now it runs the waypoints and after it get to the last one, it wanders how do i make it loop
all you have todo is to pt the last waypoint next to the first, he goes from last back to first and continues.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#8 Post by kylebutler » Fri Dec 17, 2010 10:21 pm

Sorry but what is pt? paste?

this is my current script.

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="3454" z="9481"> </waypoint>
<!-- # 2 --><waypoint x="3329" z="9498"> </waypoint>
<!-- # 3 --><waypoint x="3168" z="9527"> </waypoint>
<!-- # 4 --><waypoint x="3099" z="9625"> </waypoint>
<!-- # 5 --><waypoint x="3041" z="9753"> </waypoint>
<!-- # 6 --><waypoint x="3036" z="9865"> </waypoint>
<!-- # 7 --><waypoint x="3119" z="9946"> </waypoint>
<!-- # 8 --><waypoint x="3188" z="9984"> </waypoint>
<!-- # 9 --><waypoint x="3278" z="10045"> </waypoint>
<!-- # 10 --><waypoint x="3270" z="10143"> </waypoint>
<!-- # 11 --><waypoint x="3243" z="10245"> </waypoint>
<!-- # 12 --><waypoint x="3313" z="10292"> </waypoint>
<!-- # 13 --><waypoint x="3373" z="10253"> </waypoint>
<!-- # 14 --><waypoint x="3421" z="10171"> </waypoint>
<!-- # 15 --><waypoint x="3483" z="10059"> </waypoint>
<!-- # 16 --><waypoint x="3500" z="9984"> </waypoint>
<!-- # 17 --><waypoint x="3520" z="9896"> </waypoint>
<!-- # 18 --><waypoint x="3547" z="9777"> </waypoint>
<!-- # 19 --><waypoint x="3572" z="9703"> </waypoint>
<!-- # 20 --><waypoint x="3604" z="9648"> </waypoint>
<!-- # 21 --><waypoint x="3659" z="9561"> </waypoint>
<!-- # 22 --><waypoint x="3646" z="9468"> </waypoint>
<!-- # 23 --><waypoint x="3597" z="9391"> </waypoint>
<!-- # 24 --><waypoint x="3530" z="9349"> </waypoint>
<!-- # 25 --><waypoint x="3451" z="9344"> </waypoint>
<!-- # 26 --><waypoint x="3381" z="9380">load_paths("runes.xml") </waypoint>
</waypoints>

how exactly would i make it continue to the 1st waypoint?

also for some reason the bot wanders to a location with extremely dangerous mobs is there any way to blacklist these mobs so my bot avoids it?

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Waypoint script

#9 Post by jduartedj » Fri Dec 17, 2010 10:28 pm

sorry I meant "put".

if you remove the loadPath code in WP #26, it'll go from #26 to #1, so place #26 not too far from #1 and you got a loop.

Edit:
You wrote:how exactly would i make it continue to the 1st waypoint?
It's default if you don't have anything that breaks it like loadPath.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Waypoint script

#10 Post by jduartedj » Fri Dec 17, 2010 10:31 pm

BTW: use "loadPaths()" instead! load_paths is deprecated.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#11 Post by kylebutler » Fri Dec 17, 2010 10:38 pm

ok so my new script is like this
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="3532" z="9401"> </waypoint>
<!-- # 2 --><waypoint x="3355" z="9437"> </waypoint>
....
<!-- # 63 --><waypoint x="3679" z="9466"> </waypoint>
<!-- # 64 --><waypoint x="3539" z="9411"> </waypoint>
</waypoints>

edit: i ran it and it just says "moving to #1" but is nowhere near waypoint 1 or moving toward it... it just wanders..

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Waypoint script

#12 Post by jduartedj » Sat Dec 18, 2010 12:20 am

there must be something wrong woth your bot configuration. he defaults to looping the document. you can try adding loadPaths("myfile"); where myfile is the same file that you are using so its starts it self from the beginning!

adding it at last WP. (#64 in ur case)
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#13 Post by kylebutler » Sat Dec 18, 2010 1:23 am

Ok i'll try that and get back to you. i sent you a PM of my profile config. maybe you can see if there is something wrong?

User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Waypoint script

#14 Post by jduartedj » Sat Dec 18, 2010 3:36 am

Now I've answered you, and again... c'mon.... 10.000 ! This is why it was wandering out of it's waypoints in first place!

Code: Select all

<option name="MAX_TARGET_DIST" value="10000" />
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

kylebutler
Posts: 9
Joined: Tue Dec 14, 2010 2:45 pm

Re: Waypoint script

#15 Post by kylebutler » Sat Dec 18, 2010 2:04 pm

haha i had no idea. i have my profile on the default settings

User avatar
Douky
Posts: 12
Joined: Sun Dec 05, 2010 1:49 pm
Location: Germany
Contact:

Re: Waypoint script

#16 Post by Douky » Mon Dec 20, 2010 3:10 pm

kylebutler wrote:ok so my new script is like this
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="3532" z="9401"> </waypoint>
<!-- # 2 --><waypoint x="3355" z="9437"> </waypoint>
....
<!-- # 63 --><waypoint x="3679" z="9466"> </waypoint>
<!-- # 64 --><waypoint x="3539" z="9411"> </waypoint>
</waypoints>
try this:

Code: Select all

<!-- # 1 --><waypoint x="3532" z="9401" tag="start"> </waypoint>
.
.
.
.
<!-- # 64 --><waypoint x="3539" z="9411">__WPL:setWaypointIndex(__WPL:findWaypointTag("start")); </waypoint>
Edit:
oops... :oops:
Merry Xmas!

Post Reply

Who is online

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