Help with character swapping please

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
weirdo69
Posts: 7
Joined: Fri Jul 22, 2011 11:39 am

Help with character swapping please

#1 Post by weirdo69 » Fri Jul 29, 2011 8:13 pm

I was fiddling with character autoswapping and have been unable to get it to function. I wrote a quick script to do a couple of quests then log and go to next character.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="31954" z="3278" y="22">		
	-- Accept quest
					player:target_NPC("Gamunhan");
					sendMacro("AcceptQuest()"); yrest(2000);player:target_NPC("");
	-- Complete quest
					player:target_NPC("Gamunhan");
					sendMacro("CompleteQuest()"); yrest(2000);
		</waypoint>
	<!-- #  9 --><waypoint x="32088" z="3399" y="7">	</waypoint>
	<!-- # 10 --><waypoint x="32306" z="3332" y="28">	
	-- Accept quest
					player:target_NPC("Daily Quest Manager");
					sendMacro("AcceptQuest()"); yrest(2000);player:target_NPC("");
	-- Complete quest
					player:target_NPC("Daily Quest Manager");
					sendMacro("CompleteQuest()"); yrest(2000);
	</waypoint>
	<!-- # 16 --><waypoint x="32163" z="3382" y="16">	</waypoint>
	<!-- # 17 --><waypoint x="32005" z="3944" y="37">	</waypoint>
	<!-- # 18 --><waypoint x="31843" z="4008" y="7">	</waypoint>
	<!-- # 19 --><waypoint x="31805" z="4340" y="36">	</waypoint>
	<!-- # 20 --><waypoint x="31836" z="4578" y="12">
	
				sendMacro("}LoginNextToon=true;a={");
				sendMacro("Logout();"); yrest(60*1000);
				player = CPlayer.new();
				settings.load();
				settings.loadProfile("l1-10.xml");
				yrest (4000)
				loadPaths("Starter.xml");
			end
	</waypoint>
	</waypoints>
The movement and questing works great but I get a script halt saying "unable to compile waypoint #1" when the bot tries to logout, it also fails to logout and just stands there. Any help would be appreciated.

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Help with character swapping please

#2 Post by SpiralV » Sat Jul 30, 2011 6:13 am

Code: Select all

	<!-- # 19 --><waypoint x="31805" z="4340" y="36">	</waypoint>
	<!-- # 20 --><waypoint x="31836" z="4578" y="12">
	
				sendMacro("}LoginNextToon=true;a={");
				sendMacro("Logout();"); yrest(60*1000);
				player = CPlayer.new();
				settings.load();
				settings.loadProfile("l1-10.xml");
				yrest (4000)
				loadPaths("Starter.xml");
			end <=============================== there is the problem
	</waypoint>
	</waypoints>
The movement and questing works great but I get a script halt saying "unable to compile waypoint #1" when the bot tries to logout, it also fails to logout and just stands there. Any help would be appreciated.
I think you can delete the "end".

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest