root/npc/kafras/kafras_alde.txt

Revision 1, 4.6 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= Al De Baran Kafras
3//===== By: ============================
4//= eAthena Dev Team
5//===== Current Version: =======================
6//= 2.3a
7//===== Compatible With: ============================
8//= eAthena 1.0
9//===== Description: ============================================
10//= Description of argument settings for callfunc "F_Kafra".
11//=  arg(0): When set at 0 the default Kafra message is displayed.
12//=    When set to 1 the Niflhiem Kafra message is displayed.
13//=    When set to 2 the Guild Kafra message is displayed.
14//=  arg(1): Set to 1 to disable teleport menu option. Otherwise set to 0.
15//=  arg(2): Set to 1 to disable info menu.  Otherwise set to 0.
16//=  arg(3): Cost of Storage service
17//=  arg(4): Cost of Rent a Pushcart service
18//===== Additional Comments: ==========================================
19//= v1.1 Now using functions :)
20//= v2.1b Minor changes to function calls. Using arguments.
21//= This version uses arrays .[kobra_k88]
22//= 2.2 New teleport destinations, prices [Lupus]
23//= 2.3 Updated function calls with new arguments. [L0ne_W0lf]
24//=     Kafra Leilah is now a full NPC and no longer uses functions.
25//=     Added unique Kafra Welcome message.
26//=     Changed "Yuno" to "Juno"
27//= 2.3a Added "callfunc("F_CheckKafCode")" when you open storage. (bugreport:515) [Samuray22]
28//=====================================================================
29
30// Kafra Main Office (Kafra Leilah) ------------------------------------
31aldeba_in,96,181,4      script  Kafra Service   113,{
32        cutin "kafra_05",2;
33        mes "[Kafra Leilah]";
34        mes "Hm...?";
35        mes "Oh, welcome to";
36        mes "the Kafra Corporation";
37        mes "Headquarters. Did you";
38        mes "need something?";
39        next;
40        switch(select("Save:Use Storage:Rent a Pushcart:Cancel")) {
41        case 1:
42                mes "[Kafra Leilah]";
43                mes "Your Respawn Point has";
44                mes "been saved here, inside";
45                mes "of the Kafra Corporation";
46                mes "Headquarters. Thank you.";
47                next;
48                savepoint "aldeba_in",96,179;
49                mes "[Kafra Leilah]";
50                mes "Please make use of";
51                mes "the Kafra Services that are";
52                mes "available throughout all of";
53                mes "Rune Midgard. Thank you for";
54                mes "visiting the Kafra Headquarters.";
55                close2;
56                break;
57        case 2:
58                if (zeny < 20) {
59                        mes "[Kafra Leilah]";
60                        mes "Excuse me, but it";
61                        mes "seems that you don't";
62                        mes "have the 20 zeny to pay";
63                        mes "the Storage access fee...";
64                }
65                mes "[Kafra Leilah]";
66                mes "Although this facility is";
67                mes "exclusively intended for";
68                mes "the training of Kafra Employee";
69                mes "and administrative functions,";
70                mes "I'll access your Storage for you.";
71                next;
72                set zeny,zeny-20;
73                set RESRVPTS, RESRVPTS + (20/5);
74                mes "[Kafra Leilah]";
75                mes "In the future, please";
76                mes "ask the Kafra Employee on";
77                mes "duty if you wish to use";
78                mes "any of the Kafra Services.";
79                mes "Thank you for your patronage.";
80                callfunc("F_CheckKafCode");    //check your storage password, if set
81                close2;
82                openstorage;
83                break;
84        case 3:
85                mes "[Kafra Leilah]";
86                mes "My apologies, but I'm";
87                mes "not on duty. I'd assist you";
88                mes "if I could, but actually don't";
89                mes "have any available Pushcarts.";
90                mes "Why don't you ask another Kafra";
91                mes "Employee for assistance?";
92                next;
93                mes "[Kafra Leilah]";
94                mes "Kafra Employees are";
95                mes "stationed all over the";
96                mes "Rune Midgard continent,";
97                mes "and you should be able to find";
98                mes "plenty outside in Al De Baran.";
99                close2;
100                break;
101        case 4:
102                mes "[Kafra Leilah]";
103                mes "^666666*Whew...*^000000";
104                mes "Great, because I'm";
105                mes "actually on my break";
106                mes "right now. Choosing";
107                mes "''Cancel'' was a good";
108                mes "move on your part.";
109                close2;
110                break;
111        }
112        cutin "",255;
113        end;
114}
115
116// Central --------------------------------------------------
117aldebaran,143,119,4     script  Kafra Employee::kaf_aldebaran   113,{
118        cutin "kafra_05",2;
119        cleararray @wrpC$[0],"",getarraysize(@wrpC$);
120        setarray @wrpP[0], 1200, 1200, 1800, 1700;
121        setarray @wrpD$[0], "Geffen", "Juno" , "Izlude", "Mjolnir Dead Pit";
122        set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
123        set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
124        set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
125        set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
126        set @wrpC$[4], "Cancel";
127        mes "[Kafra Employee]";
128        mes "The Kafra Corporation";
129        mes "is always working to provide";
130        mes "you with convenient services.";
131        mes "How may I be of assistance?";
132        callfunc "F_Kafra",5,0,1,20,600;
133
134        M_Save:
135                savepoint "aldebaran",143,109;
136                callfunc "F_KafEnd",0,1,"in the city of Al De Baran";
137}
Note: See TracBrowser for help on using the browser.