Page 1 of 1

Chain andor training to waypoint file.

Posted: Mon May 20, 2013 11:51 am
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.

Re: Chain andor training to waypoint file.

Posted: Mon May 20, 2013 6:33 pm
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")')

Re: Chain andor training to waypoint file.

Posted: Mon May 20, 2013 8:17 pm
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.

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 2:18 am
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)

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 10:28 am
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.

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 1:32 pm
by dr-nuker

Code: Select all

sendMacro("CloseAllWindows()"); -- close ranking window
will help you closing the window

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 3:08 pm
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?

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 6:05 pm
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

Re: Chain andor training to waypoint file.

Posted: Tue May 21, 2013 6:14 pm
by 883Dman
I figured as much and removed it when it pooped out. Thanks.