root/npc/sample/npc_testchkoption.txt @ 1

Revision 1, 271 bytes (checked in by jinshiro, 17 years ago)
RevLine 
[1]1prontera,156,89,6       script  test_chkoption  117,{
2        mes "Please enter a value of type!";
3        input @value;
4        if(checkoption(@value) == 1) goto L1;
5        if(checkoption(@value) == 0) goto L0;
6        end;
7        L1:
8                mes "True!";
9                close;
10                end;
11        L0:
12                mes "False!";
13                close;
14                end;
15}
Note: See TracBrowser for help on using the browser.