Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25.01.2006, 12:40   #30
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default wtf

class citizen
{
EventHandler TALKED(talker)
{
ShowPage(talker,"sm_hi.htm");
}
}

class sample : citizen
{
handler:
EventHandler TALK_SELECTED(talker)
{
if ( _from_choice == 0 )
{
//Do something
}
if ( _from_choice == 1 )
{
//Do something 2
}
}

EventHandler MENU_SELECTED(talker, ask ,reply)
{
if(ask == 2)
{
if ( reply == 33 )
{
AddChoice(2,"choice 0 2");
AddChoice(3,"choice 0 2");
ShowChoicePage(talker,0);
}
if ( reply == 34 )
{
AddChoice(6,"choice 1 6");
AddChoice(7,"choice 1 7");
ShowChoicePage(talker,1);
}
}
}

When I select reply 34, I see list of choices and then press on one choice I enter in TALK_SELECTED handler and normally exec "if ( _from_choice == 1 ){..}" block. But if I select reply 33 I also see appropriate choices, but not enter to TALK_SELECTED handler then i select one of choice, I just see sm_hi.htm page again. Can anybody help me? How use ShowChoicePage func?
RmzVoid is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:36.