Malatina leave script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
mattstar81
Posts: 42
Joined: Tue Feb 02, 2016 5:14 pm

Malatina leave script

#1 Post by mattstar81 » Tue Feb 02, 2016 5:38 pm

Hello everybody,

i have a little problem with my malatina script.

1. First the bot run malatina cot, all ok

2. Second the bot run malatina survival, but i musst leave malatina cot before, but the bot doesn´t do this^^

In the survivalR5 i have change this...

</onLoad>
<!-- In the survival game -->
<!-- # 1 --><waypoint x="2519" z="2593" y="9">
player:target_NPC(joker);
sendMacro("ChoiceOption(2);");
</waypoint>
<!-- # 2 --><waypoint x="2546" z="2681" y="9"> </waypoint>
<!-- # 3 --><waypoint x="2586" z="2789" y="9"> </waypoint>
<!-- # 4 --><waypoint x="2606" z="2843" y="9">

...
...
...
pls help me ans sorry for my very bad english

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina leave script

#2 Post by lisa » Tue Feb 02, 2016 7:10 pm

well survival just kicks you out when your finished, so you shouldn't need to leave that game.

Course of Terror though is a different story and rock already has code in CoT script to talk with malatina and leave the minigame.

Anyway this is what leaves CoT

Code: Select all

				local Malatina = 113120
				local IWantToLeave = RoMScript("TEXT(\"SC_111813_YU_42\")")
				local Confirm = RoMScript("TEXT(\"SC_OKAY\")")

				-- Exit COT if still in COT
				if getZoneId() == 353 and player:target_NPC(Malatina) then
					yrest(2000)
					ChoiceOptionByName(IWantToLeave)
					yrest(2000)
					ChoiceOptionByName(Confirm)
					waitForLoadingScreen()
					yrest(3000)
				end
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

mattstar81
Posts: 42
Joined: Tue Feb 02, 2016 5:14 pm

Re: Malatina leave script

#3 Post by mattstar81 » Wed Feb 03, 2016 2:02 pm

Thank very much, but i ´m a newbie^^

can you tell me pls the complete cot script with leave

i don´t now where i put this in the cot script.

Thank you

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Malatina leave script

#4 Post by lisa » Wed Feb 03, 2016 9:01 pm

well as I said
"rock already has code in CoT script to talk with malatina and leave the minigame"

you just need to change the option in the file to say to leave.
Look for this.

Code: Select all

	ExitBeforeNextFile    = true	-- If you want it to exit game before loading next "waypointfilename".
that means exit the minigame.
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

mattstar81
Posts: 42
Joined: Tue Feb 02, 2016 5:14 pm

Re: Malatina leave script

#5 Post by mattstar81 » Thu Feb 04, 2016 11:50 am

Thank you Lisa

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 7 guests