Chain andor training to waypoint file.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Chain andor training to waypoint file.

#1 Post by 883Dman »

I made a series of waypoints that completes the "Earn a Reputation" daily in Heffner then runs to varanas and completes the Andor Training minigame. (Saw a super upgraded castle in siege and I want it!) I would now like to have my characters recall or cast heffner teleport after completing Andor training and log out. I can do the log out no problem. My problem is that since Andor Training does not use waypoints, I have no idea how to get it to do anything after the end of the game.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Chain andor training to waypoint file.

#2 Post by lisa »

before you do any log next char code just do

Code: Select all

			-- Move to Magelly Basac
			repeat
				yrest(500)
			until player:target_NPC(120687)
Then pretty sure it's choiceoption1 and click the confirm thingy.

Code: Select all

sendMacro("ChoiceOption(1);");
yrest(700)
sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
waitForLoadingScreen(20)
Then the recall/transport

Code: Select all

RoMScript('CastSpellByName("Heffner Camp Transport Spell")')
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
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: Chain andor training to waypoint file.

#3 Post by 883Dman »

I think I understand what you're saying. I can cast transport to heffner from within the mini game so I don't need to go back to varanas first.
Where would I put: RoMScript('CastSpellByName("Heffner Camp Transport Spell")')

I have to problems.
1. You have to wait until the last wave crosses the finish line and get your score.
no biggie, I can do a yrest

2. The andor training groudn does everything within the <onload> </onload> so I don;t know where to put the commands and make them work.
Do I treat all the inline code as if it were in the <waypoint> tags? Meaning I stick the yrest and transport near the end of the code before it auto-terminates the waypoint.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Chain andor training to waypoint file.

#4 Post by lisa »

The end of the onload looks like this

Code: Select all

			print("OK event has started")
			repeat
				tort()
				player:update()
				yrest(100)
				buffed = player:getBuff(622402)
				if buffed then score = buffed.Level end
			until not player:hasBuff(622402) or ( buffed and buffed.Level > requiredscore )
			repeat yrest(1000) until not RoMScript("TimeKeeperFrame:IsVisible()")
			yrest(15000)
			logloot()
			LoginNextChar()
			loadProfile()
			loadPaths(__WPL.FileName)
before the LoginNextChar() do the code to go elsewhere, I'm not sure you can use transport from within instance though.

I meant something like this

Code: Select all

			print("OK event has started")
			repeat
				tort()
				player:update()
				yrest(100)
				buffed = player:getBuff(622402)
				if buffed then score = buffed.Level end
			until not player:hasBuff(622402) or ( buffed and buffed.Level > requiredscore )
			repeat yrest(1000) until not RoMScript("TimeKeeperFrame:IsVisible()")
			yrest(15000)
			logloot()
			repeat
				yrest(500)
			until player:target_NPC(120687)			

			sendMacro("ChoiceOption(1);");
			yrest(700)
			sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
			waitForLoadingScreen(20)			
			RoMScript('CastSpellByName("Heffner Camp Transport Spell")')
			waitForLoadingScreen(20)
			LoginNextChar()
			loadProfile()
			loadPaths(__WPL.FileName)
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
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: Chain andor training to waypoint file.

#5 Post by 883Dman »

I tinkered with this to work for me with one problem. I need to close the stupid score window before I can do anything else. Thanks a bunch. I understand working within the onload better now.
P.S. Script doesnt like the logloot function. It is not a function in my WP.
dr-nuker
Posts: 145
Joined: Sun Oct 09, 2011 7:33 am

Re: Chain andor training to waypoint file.

#6 Post by dr-nuker »

Code: Select all

sendMacro("CloseAllWindows()"); -- close ranking window
will help you closing the window
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: Chain andor training to waypoint file.

#7 Post by 883Dman »

I knew it would be something simple. Thanks. Is there a resource I can refer to that has a lot of these commands and syntax so I can find some of this on my own?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Chain andor training to waypoint file.

#8 Post by lisa »

883Dman wrote:P.S. Script doesnt like the logloot function
It's a userfunction, you can either get the userfunction or just remove that part of the code, your choice.
http://www.solarstrike.net/phpBB3/viewt ... it=loginfo

883Dman wrote:Is there a resource I can refer to that has a lot of these commands and syntax so I can find some of this on my own?
http://runesofmagic.gamepedia.com/List_of_Functions
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
883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: Chain andor training to waypoint file.

#9 Post by 883Dman »

I figured as much and removed it when it pooped out. Thanks.
Post Reply