1 | //===== eAthena Script ======================================= |
---|
2 | //= Poring Track Warpers |
---|
3 | //===== By: ================================================== |
---|
4 | //= erKURITA |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 0.0000000000000002 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena 1.0 |
---|
9 | //===== Description: ========================================= |
---|
10 | //= NPC's for the City of Hugel. |
---|
11 | //===== Additional Comments: ================================= |
---|
12 | //= 0.0000000000000002 Removed Duplicates [Silent] |
---|
13 | //============================================================ |
---|
14 | //| Warp-in npcs |
---|
15 | hugel,58,72,5 script Yan#track1 86,{ |
---|
16 | //callfunc "P_TrackEnt",npcname,map name; |
---|
17 | callfunc "P_TrackEnt","[Yan]","p_track01"; |
---|
18 | end; |
---|
19 | } |
---|
20 | hugel,62,68,1 script Yalmire#track1 86,{ |
---|
21 | //callfunc "P_TrackEnt",npcname,map name; |
---|
22 | callfunc "P_TrackEnt","[Yalmire]","p_track02"; |
---|
23 | end; |
---|
24 | } |
---|
25 | |
---|
26 | //| Warp-out npcs |
---|
27 | |
---|
28 | p_track01,76,36,2 script Yan#track2 86,{ |
---|
29 | end; |
---|
30 | } |
---|
31 | |
---|
32 | p_track02,76,36,2 script Yalmire#track2 86,{ |
---|
33 | end; |
---|
34 | } |
---|
35 | |
---|
36 | function script P_TrackEnt { |
---|
37 | |
---|
38 | mes getarg(0); |
---|
39 | mes "Hi "+strcharinfo(0)+", Welcome to the Poring Track!"; |
---|
40 | menu "Information",-,"I want to try it",L_Try,"Not today thanks",L_End; |
---|
41 | next; |
---|
42 | mes getarg(0); |
---|
43 | mes "Bla blah, so fun"; |
---|
44 | close; |
---|
45 | L_Try: |
---|
46 | next; |
---|
47 | mes getarg(0); |
---|
48 | mes "Ok, the entrance fee is 500z, would you like to go in?"; |
---|
49 | menu "Yes Please",-,"No Thanks",L_End2; |
---|
50 | if (Zeny < 500) { |
---|
51 | next; |
---|
52 | mes getarg(0); |
---|
53 | mes "Sorry but you ain't got 500z, you can't enter"; |
---|
54 | close; |
---|
55 | } else |
---|
56 | next; |
---|
57 | mes getarg(0); |
---|
58 | mes "Here we go!"; |
---|
59 | close2; |
---|
60 | set Zeny,Zeny-500; |
---|
61 | warp getarg(1),75,41; |
---|
62 | end; |
---|
63 | L_End2: |
---|
64 | next; |
---|
65 | mes getarg(0); |
---|
66 | mes "Oh well, you miss it"; |
---|
67 | close; |
---|
68 | L_End: |
---|
69 | next; |
---|
70 | mes getarg(0); |
---|
71 | mes "Ok, see you later!"; |
---|
72 | close; |
---|
73 | } |
---|