prontera,155,181,5 script Sample 757,{
if( .Variable$ != "" ){
mes "Sorry, "+.Variable$+" is talking to the NPC.";
close;
}else{
set .Variable$,strcharinfo(0);
mes "Hiii";
switch( prompt("Menu 1:Menu 2:Menu 3") ){
Case 1:
mes "You selected Menu 1";
break;
Case 2:
mes "You selected Menu 2";
break;
Case 3:
mes "You selected Menu 3";
break;
default:
mes "You cancelled the Conversation by Clicking the Cancel Button.";
break;
}
close2;
set .Variable$,"";
end;
}
OnPCLogoutEvent:
if( .Variable$ == strcharinfo(0) )
set .Variable$,"";
end;
}