root/npc/sample/npc_test_npctimer.txt @ 1

Revision 1, 0.6 kB (checked in by jinshiro, 17 years ago)
RevLine 
[1]1
2prontera,156,183,0      script  NPCtimerƒeƒXƒg::npctimerX0000   116,{
3        mes "ƒ^ƒCƒ}[’l" + getnpctimer(0);
4        mes "ƒ^ƒCƒ}[ó‘Ô" + getnpctimer(1,"npctimerX0000");
5        mes "ƒCƒxƒ“ƒgŒÂ”" + getnpctimer(2);
6        menu "‰Šú‰»",L_INIT,"’âŽ~",L_STOP,"ÄŠJ",L_START,"Ý’è",L_SET;
7        close;
8L_INIT:
9        initnpctimer;
10        close;
11L_STOP:
12        stopnpctimer;
13        close;
14L_START:
15        startnpctimer;
16        close;
17L_SET:
18        input @temp;
19        setnpctimer @temp;
20        close;
21
22OnTimer1000:
23        announce "1•bŒo‰ß",0;
24        end;
25
26OnTimer5000:
27        announce "5•bŒo‰ß",0;
28        end;
29
30OnTimer10000:
31        announce "10•bŒo‰ß",0;
32        end;
33}
Note: See TracBrowser for help on using the browser.