viewing paste Reset Variable of NPC aft | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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;
}
Viewed 1193 times, submitted by Emistry.