npc_test_npctimer.txt 540 B

123456789101112131415161718192021222324252627282930313233
  1. prontera,156,183,0 script NPCtimerテスト::npctimerX0000 116,{
  2. mes "タイマー値" + getnpctimer(0);
  3. mes "タイマー状態" + getnpctimer(1,"npctimerX0000");
  4. mes "イベント個数" + getnpctimer(2);
  5. menu "初期化",L_INIT,"停止",L_STOP,"再開",L_START,"設定",L_SET;
  6. close;
  7. L_INIT:
  8. initnpctimer;
  9. close;
  10. L_STOP:
  11. stopnpctimer;
  12. close;
  13. L_START:
  14. startnpctimer;
  15. close;
  16. L_SET:
  17. input @temp;
  18. setnpctimer @temp;
  19. close;
  20. OnTimer1000:
  21. announce "1秒経過",0;
  22. end;
  23. OnTimer5000:
  24. announce "5秒経過",0;
  25. end;
  26. OnTimer10000:
  27. announce "10秒経過",0;
  28. end;
  29. }