Page 1 of 1

ChoiceOption by word?

Posted: Thu Nov 01, 2012 2:02 am
by ZZZZZ
Hello, just having issues with using high level characters and then using those that are low level and do not have places unlocked. Is there any way to use say

Code: Select all

	<!-- # 55 --><waypoint x="2314" z="1145" y="27">		player:target_NPC("Snoop the Stubborn");
		sendMacro("ChoiceOption(Next Page);");
		yrest(100)
		sendMacro("ChoiceOption(Transport to Silverfall);");
		waitForLoadingScreen()
	</waypoint>
instead of

Code: Select all

	<!-- # 55 --><waypoint x="2314" z="1145" y="27">		player:target_NPC("Snoop the Stubborn");
		sendMacro("ChoiceOption(8);");
		yrest(100)
		sendMacro("ChoiceOption(1);");
		waitForLoadingScreen()
	</waypoint>
Sorry if there is already a thread somewhere on this!

Re: ChoiceOption by word?

Posted: Thu Nov 01, 2012 2:24 am
by lisa
you mean the already existing function

Code: Select all

ChoiceOptionByName(optiontext)
So this

Code: Select all

sendMacro("ChoiceOption(Transport to Silverfall);");
could be this

Code: Select all

ChoiceOptionByName("Silverfall")
Not sure if it deals with next page or not, try it and see.

Re: ChoiceOption by word?

Posted: Thu Nov 01, 2012 2:52 am
by ZZZZZ
I'm really bad at finding things like that ^.^

Worked perfectly :)

ChoiceOptionByName("Next Page") does works

Re: ChoiceOption by word?

Posted: Thu Nov 01, 2012 4:12 am
by rock5
The "Next Page" option has been added to the latest version of NPCTeleport, which is one of the gotoportal functions. It checks all pages automatically.
http://www.solarstrike.net/phpBB3/viewt ... 916#p37916

So instead of

Code: Select all

      player:target_NPC("Snoop the Stubborn");
      ChoiceOptionByName("Next Page")
      yrest(100)
      ChoiceOptionByName("Transport to Silverfall");
      waitForLoadingScreen()
you could use

Code: Select all

      NPCTeleport("Snoop the Stubborn","Transport to Silverfall")

Re: ChoiceOption by word?

Posted: Thu Nov 01, 2012 5:56 am
by ZZZZZ
Ahh ok, I might shorten my waypoint a bit. I just quickly put together a waypoint file for the guild rubies event in the current festival and needed it to work on every account. Thanks for the assist :)