Quote:
|
Originally Posted by kvoxi
Quote:
|
Originally Posted by kvoxi
ShowChoicePage(talker, option)
What is "option" - i dont know
|
Correction (not tested):
if OPTION=0, then l2npc.exe generate TALKED event with followed initialized variables:
myself; talker; _from_choice=1; _code;
if OPTION<>0, then l2npc.exe generate TALK_SELECTED event with followed initialized variables:
myself; talker; _from_choice=1; _code;
|
tested - worked:
[php:1:d1d73b739f]
EventHandler TALKED (talker,_from_choice,_code)
{
if (_from_choice==0) {
AddChoice(11, "Choice_11");
AddChoice(12, "Choice_12");
AddChoice(13, "Choice_13");
AddChoice(14, "Choice_14");
ShowChoicePage(talker,0);
}
if (_from_choice!=0) {
SayInt(_code);
AddChoice(21, "TALKED: Choice_21");
AddChoice(22, "TALKED: Choice_22");
AddChoice(23, "TALKED: Choice_23");
AddChoice(24, "TALKED: Choice_24");
ShowChoicePage(talker,1);
}
}
EventHandler TALK_SELECTED (talker, _from_choice, _code)
{
if (_from_choice!=0) {
SayInt(_code);
AddChoice(31, "TALK_SELECTED: Choice_31");
AddChoice(32, "TALK_SELECTED: Choice_32");
AddChoice(33, "TALK_SELECTED: Choice_33");
AddChoice(34, "TALK_SELECTED: Choice_34");
ShowChoicePage(talker,1);
}
}
[/php:1:d1d73b739f]