root/npc/sample/npc_test_func.txt @ 6

Revision 1, 0.5 kB (checked in by jinshiro, 17 years ago)
Line 
1
2// ’l‚ð•Ô‚³‚È‚¢ŠÖ”
3function        script  func001 {
4        mes "ƒ†[ƒU[’è‹`ŠÖ”";
5        next;
6        return;         // È—ª‚Å‚«‚È‚¢
7}
8
9// ’l‚ð•Ô‚·ŠÖ”
10function        script  func002 {
11        return "ƒ†[ƒU[’è‹`ŠÖ”‚Q";
12}
13
14// ŠÖ”‚̌Ăяo‚µ‚ƃTƒuƒ‹[ƒeƒBƒ“‚̃eƒXƒg
15prontera,168,189,1      script  ŠÖ”ƒeƒXƒg      112,{
16        callfunc "func001";             // ƒ†[ƒU[’è‹`ŠÖ”‚Í•¶Žš—ñ‚ÅŽw’è
17        mes callfunc("func002");
18        next;
19        callsub L_SUB001;       // ƒTƒuƒ‹[ƒeƒBƒ“‚̓‰ƒxƒ‹‚𒌐ڎw’è
20        close;
21        end;
22
23L_SUB001:
24        mes "ƒTƒuƒ‹[ƒeƒBƒ“";
25        return;         // È—ª‚Å‚«‚È‚¢
26}
Note: See TracBrowser for help on using the browser.