Page 1 of 1

Malatina leave script

Posted: Tue Feb 02, 2016 5:38 pm
by mattstar81
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

Re: Malatina leave script

Posted: Tue Feb 02, 2016 7:10 pm
by lisa
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

Re: Malatina leave script

Posted: Wed Feb 03, 2016 2:02 pm
by mattstar81
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

Re: Malatina leave script

Posted: Wed Feb 03, 2016 9:01 pm
by lisa
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.

Re: Malatina leave script

Posted: Thu Feb 04, 2016 11:50 am
by mattstar81
Thank you Lisa