Page 1 of 1

Can I get waypoint files to change my profile.xml on load?

Posted: Mon Feb 14, 2011 3:20 am
by Xanatos
Hi Guys, first time poster here.

I been using RoMBot mainly to help me level and keep up with a friend when I'm out or sleeping or just need to be away from the computer a bit. Anyways I have 2 large waypoints but a narrow path that I need to connect them. When I'm on the large waypoints I want the bot to be aggressive but when I'm on the narrow back and forth waypoint I need the bot to be pretty much passive. So is there any code like:

Code: Select all

changeProfileOption("TARGET_LEVELDIF_ABOVE", -1);
         changeProfileOption("TARGET_LEVELDIF_BELOW", -1);
That I can use to change the:

Code: Select all

<option name="TARGET_LEVELDIF_ABOVE" value="3" />
         <option name="TARGET_LEVELDIF_BELOW" value="10" />
I'm the profile.xml then change it back when I'm on my normal harvesting/leveling waypoints?

Re: Can I get waypoint files to change my profile.xml on loa

Posted: Mon Feb 14, 2011 4:02 am
by lisa
Easiest way to be non-agressive in a waypoint file is to have

Code: Select all

<waypoints type="TRAVEL" >
This code at the start of the waypoint file will make the bot only defend itself. This means it will just keep walking until something attacks it, then the bot will kill it.

You can also change your profile options with code in the WP aswell.
example

Code: Select all

<waypoints type="TRAVEL" >

	<onLoad><![CDATA[
 
		changeProfileOption("MAX_TARGET_DIST", 150);
		changeProfileOption("WAYPOINT_DEVIATION", 0);


	]]></onLoad>
	<!-- # 30 --><waypoint x="-1444" z="-5387" y="9">player:mount();	</waypoint>
	<!-- # 31 --><waypoint x="-1692" z="-5302" y="61">player:mount();	</waypoint>
	<!-- # 32 --><waypoint x="-1510" z="-5239" y="13">player:mount();	</waypoint>
</waypoints>
the changeProfileOptions(); points to the tags within the profile itself.
So <profile> <options>
or changeProfileFriends();
for <profile> <friends>

Hope this helps

Re: Can I get waypoint files to change my profile.xml on loa

Posted: Mon Feb 14, 2011 4:47 am
by Xanatos
Perfect, thank you Lisa. That was just what I was looking for.

Re: Can I get waypoint files to change my profile.xml on loa

Posted: Mon Feb 14, 2011 4:51 am
by lisa
That's ok, I can see why you posted in this section as the title says ,waypoint scripts, I think the title is meant to be for people to share their files with others as opposed to questions.
I think the questions are better off in the Runes of Magic section =)

Re: Can I get waypoint files to change my profile.xml on loa

Posted: Mon Feb 14, 2011 8:09 am
by rock5
Except I believe it should be 'type="RUN"'. "TRAVEL" wont stop if you have aggro. I believe the wiki still has them back to front.

Edit: Ok, I fixed the wiki. It is now correct.

Re: Can I get waypoint files to change my profile.xml on loa

Posted: Mon Feb 14, 2011 9:14 am
by lisa
I actually always get those 2 mixed up, the logic in the names just isn't there for me.

So TRAVEL doesn't fight back and RUN does fight back.
I'd probably have gone with DEFEND instead of RUN.