1 | //===== eAthena Script ======================================= |
---|
2 | //= Payon Kafras |
---|
3 | //===== By: ========================= |
---|
4 | //= eAthena Dev Team |
---|
5 | //===== Current Version: =================== |
---|
6 | //= 2.4b |
---|
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 | //= v2.2 New Payon Locations. [Darkchild] |
---|
23 | //= 2.3 1 New Kafra, fixed save menus |
---|
24 | //= 2.31 New prices [Evera] |
---|
25 | //= 2.32 Minor fix to Payon Archer Kafra [SinSloth] |
---|
26 | //= 2.4 Updated function calls with new arguments. [L0ne_W0lf] |
---|
27 | //= Added unique Kafra Welcome message. |
---|
28 | //= 2.4b Updated the remaning names for the Kafras. [L0ne_W0lf] |
---|
29 | //========================================================================== |
---|
30 | |
---|
31 | |
---|
32 | // Main Town, South ---------------------------------------------------------- |
---|
33 | payon,181,104,4 script Kafra Employee::kaf_payon 113,{ |
---|
34 | cutin "kafra_05",2; |
---|
35 | callfunc "F_KafSetPay"; |
---|
36 | mes "[Kafra Employee]"; |
---|
37 | mes "The Kafra Corporation"; |
---|
38 | mes "is always working to provide"; |
---|
39 | mes "you with convenient services."; |
---|
40 | mes "How may I be of assistance?"; |
---|
41 | callfunc "F_Kafra",5,0,1,60,930; |
---|
42 | |
---|
43 | M_Save: |
---|
44 | savepoint "payon",160,58; |
---|
45 | callfunc "F_KafEnd",0,1,"in the city of Payon"; |
---|
46 | } |
---|
47 | |
---|
48 | // Main Town, Middle North -------------------------------------------------- |
---|
49 | payon,175,226,4 script Kafra Employee::kaf_payon2 116,{ |
---|
50 | cutin "kafra_02",2; |
---|
51 | callfunc "F_KafSetPay"; |
---|
52 | mes "[Kafra Employee]"; |
---|
53 | mes "Welcome to the"; |
---|
54 | mes "Kafra Corporation."; |
---|
55 | mes "The Kafra services are"; |
---|
56 | mes "always on your side."; |
---|
57 | mes "How may I assist you?"; |
---|
58 | callfunc "F_Kafra",5,0,1,60,930; |
---|
59 | |
---|
60 | M_Save: |
---|
61 | savepoint "payon",257,242; |
---|
62 | callfunc "F_KafEnd",0,1,"in the city of Payon"; |
---|
63 | } |
---|
64 | |
---|
65 | // Archer Village ------------------------------------------------------------ |
---|
66 | pay_arche,55,123,0 script Kafra Employee::kaf_payon3 115,{ |
---|
67 | cutin "kafra_03",2; |
---|
68 | callfunc "F_KafSetPay"; |
---|
69 | mes "[Kafra Employee]"; |
---|
70 | mes "Welcome to the"; |
---|
71 | mes "Kafra Corporartion."; |
---|
72 | mes "The Kafra services"; |
---|
73 | mes "are always on your side."; |
---|
74 | mes "How may I assist you?"; |
---|
75 | callfunc "F_Kafra",5,5,1,90,1200; |
---|
76 | |
---|
77 | M_Save: |
---|
78 | savepoint "pay_arche",49,144; |
---|
79 | callfunc "F_KafEnd",0,1,"at the Payon Dungeon"; |
---|
80 | } |
---|
81 | |
---|
82 | |
---|
83 | // Function: Sets variables for Payon Kafras --------------------------------- |
---|
84 | function script F_KafSetPay { |
---|
85 | cleararray @wrpC$[0],"",getarraysize(@wrpC$); |
---|
86 | setarray @wrpD$[0], "Alberta", "Prontera", "Morroc"; |
---|
87 | setarray @wrpP[0], 1200, 1200, 1200; |
---|
88 | set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0]; |
---|
89 | set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1]; |
---|
90 | set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2]; |
---|
91 | set @wrpC$[3], "Cancel"; |
---|
92 | return; |
---|
93 | } |
---|