Page 1 of 1

How to confirm conversation?

Posted: Wed Jul 07, 2010 4:05 pm
by miximixi007
I don`t know how to confirm my second class after select class instructor.anyone can help me? thanks

Code: Select all

<!-- #  2 --><waypoint x="5544" z="-4196">
		player:target_NPC("Parsting"); yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
	             sendMacro("CompleteQuest();");yrest(1000);   --this line doesn't work
	</waypoint>
otherwish,next step,i wanna open skill frame and select transport:Reifort . Please show me a way.thx again.

Re: How to confirm conversation?

Posted: Wed Jul 07, 2010 11:35 pm
by rock5
miximixi007 wrote:I don`t know how to confirm my second class after select class instructor.anyone can help me? thanks

Code: Select all

<!-- #  2 --><waypoint x="5544" z="-4196">
		player:target_NPC("Parsting"); yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
	             sendMacro("CompleteQuest();");yrest(1000);   --this line doesn't work
	</waypoint>
otherwish,next step,i wanna open skill frame and select transport:Reifort . Please show me a way.thx again.
I got a solution for both.

The first, should work with this sort of popup. I found here;
Equipt question

Code: Select all

sendMacro("StaticPopup_OnClick(StaticPopup1, 1);");
More info can be found here;
http://www.theromwiki.com/API:StaticPopup_OnClick

The second I have in my 1-10 scripts for creating tier stones, so I'll just copy it.

Code: Select all

		if RoMScript("GetSkillDetail(1,4)") == "Transport: Reifort" then
			RoMScript("UseSkill(1,4);"); -- Teleport to Reifort
		elseif RoMScript("GetSkillDetail(1,3)") == "Transport: Reifort" then
			RoMScript("UseSkill(1,3);"); -- Teleport to Reifort
		end
That should work for new characters, human or elf. The teleport will be somewhere else with higher level characters.

Re: How to confirm conversation?

Posted: Wed Jul 07, 2010 11:44 pm
by miximixi007
:D
I love u rock5

Re: How to confirm conversation?

Posted: Thu Jul 08, 2010 12:51 am
by miximixi007
sorry,it still doesn't work.coz the conversation isn't popup frame.

Re: How to confirm conversation?

Posted: Thu Jul 08, 2010 1:03 am
by rock5
miximixi007 wrote:sorry,it still doesn't work.coz the conversation isn't popup frame.
Sorry, I assumed when you didn't know how to do it, that it was a popup. My bad.
miximixi007 wrote:

Code: Select all

      sendMacro("ChoiceOption(1);");yrest(2000);
                sendMacro("CompleteQuest();");yrest(1000);   --this line doesn't work
That's because it is not a quest, it is an standard option. Just do ChoiceOption again.

Re: How to confirm conversation?

Posted: Thu Jul 08, 2010 1:44 am
by miximixi007
:)
it`s OK.
btw,i guess the teleport need add code like this:

Code: Select all

if RoMScript("GetSkillDetail(1,4)") == "Transport: Reifort" then
                             RoMScript("UseSkill(1,4);"); -- Teleport to Reifort
                             yrest(90*1000); 
                  elseif RoMScript("GetSkillDetail(1,3)") == "Transport: Reifort" then
                             RoMScript("UseSkill(1,3);"); -- Teleport to Reifort
                             yrest(90*1000);
                end

Re: How to confirm conversation?

Posted: Thu Jul 08, 2010 1:55 am
by rock5
miximixi007 wrote::)
it`s OK.
btw,i guess the teleport need add code like this:
I just added 1 pause after the 'if' statement. Why repeat it twice?