root/npc/custom/events/p_track/p_track_warpers.txt

Revision 1, 1.8 kB (checked in by jinshiro, 17 years ago)
Line 
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
15hugel,58,72,5   script  Yan#track1      86,{
16//callfunc "P_TrackEnt",npcname,map name;
17callfunc "P_TrackEnt","[Yan]","p_track01";
18end;
19}
20hugel,62,68,1   script  Yalmire#track1  86,{
21//callfunc "P_TrackEnt",npcname,map name;
22callfunc "P_TrackEnt","[Yalmire]","p_track02";
23end;
24}
25
26//| Warp-out npcs
27
28p_track01,76,36,2       script  Yan#track2      86,{
29end;
30}
31
32p_track02,76,36,2       script  Yalmire#track2  86,{
33end;
34}
35
36function        script  P_TrackEnt      {
37
38mes getarg(0);
39mes "Hi "+strcharinfo(0)+", Welcome to the Poring Track!";
40menu "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}
Note: See TracBrowser for help on using the browser.