1 | //===== eAthena Script ======================================= |
---|
2 | //= Renters |
---|
3 | //===== By: ================================================== |
---|
4 | //= kobra_k88, mod by Lupus |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.7 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena SVN |
---|
9 | //===== Description: ========================================= |
---|
10 | //= Knight and Crusader Peco Peco Breeders, Falcon Breeder scripts |
---|
11 | //===== Additional Comments: ================================= |
---|
12 | //= Fully working |
---|
13 | //= Added another Falcon Master into the Hunters Guild [Lupus] |
---|
14 | //= 1.2: replaced checkoption(x) with checkriding,checkfalcon [Lupus] |
---|
15 | //= 1.3: Added support Adv Classes + Baby Class [Lupus] |
---|
16 | //= 1.4: Added different prices for normal, advanced and baby classes |
---|
17 | //= but you could set them to the same [Lupus] |
---|
18 | //= 1.5: Fixed spelling mistakes [Nexon] |
---|
19 | //= 1.5a: Small fix (Falcon Taming -> Falcon Mastery) [Komurka] |
---|
20 | //= 1.6: Moved the Falcon Master to Hugel [Poki#3] |
---|
21 | //= 1.7 Updated to Aegis 10.3 standards. [L0ne_W0lf] |
---|
22 | //============================================================ |
---|
23 | |
---|
24 | // PecoPeco Breeder (for Knights)------------------------------------------- |
---|
25 | prontera,55,350,5 script Peco Peco Breeder#knt 105,{ |
---|
26 | if(Upper==0) set .@price,2500; //Normal Peco - default price |
---|
27 | if(Upper==1) set .@price,2500; //Armored Peco |
---|
28 | if(Upper==2) set .@price,2500; //Baby Peco |
---|
29 | |
---|
30 | mes "[Peco Peco Breeder]"; |
---|
31 | if (BaseJob == Job_Knight) { |
---|
32 | mes "Welcome."; |
---|
33 | mes "Honorable Knight,"; |
---|
34 | mes "would you like to rent"; |
---|
35 | mes "a Peco Peco? The rental"; |
---|
36 | mes "fee is "+.@price+" zeny."; |
---|
37 | next; |
---|
38 | if (select("Rent Peco Peco:Cancel") == 1) { |
---|
39 | if (zeny < .@price) { |
---|
40 | mes "[Peco Peco Breeder]"; |
---|
41 | mes "You do not"; |
---|
42 | mes "have enough zeny."; |
---|
43 | mes "Are you..."; |
---|
44 | mes "bankrupt?"; |
---|
45 | close; |
---|
46 | } |
---|
47 | else if(getskilllv("KN_RIDING") == 0) { |
---|
48 | mes "[Peco Peco Breeder]"; |
---|
49 | mes "I'm sorry, but you're"; |
---|
50 | mes "not eligible for this"; |
---|
51 | mes "service. Please go learn"; |
---|
52 | mes "the Peco Peco Ride skill first."; |
---|
53 | close; |
---|
54 | } |
---|
55 | else if(checkriding()) { |
---|
56 | mes "[Peco Peco Breeder]"; |
---|
57 | mes "You're already"; |
---|
58 | mes "mounted on a"; |
---|
59 | mes "Peco Peco."; |
---|
60 | close; |
---|
61 | } |
---|
62 | set zeny,zeny-.@price; |
---|
63 | setriding; |
---|
64 | } |
---|
65 | |
---|
66 | mes "[Peco Peco Breeder]"; |
---|
67 | mes "I see."; |
---|
68 | mes "Well then,"; |
---|
69 | mes "have a good day."; |
---|
70 | close; |
---|
71 | } |
---|
72 | mes "I'm sorry, but these"; |
---|
73 | mes "Peco Pecos are only"; |
---|
74 | mes "available for Knights"; |
---|
75 | mes "and Lord Knights."; |
---|
76 | close; |
---|
77 | } |
---|
78 | |
---|
79 | // Grand PecoPeco Breeder (for Crusaders)------------------------------------------- |
---|
80 | prontera,232,318,3 script Peco Peco Breeder#cru 105,{ |
---|
81 | if(Upper==0) set .@price,3500; //Normal Peco - default price |
---|
82 | if(Upper==1) set .@price,3500; //Armored Peco |
---|
83 | if(Upper==2) set .@price,3500; //Baby Peco |
---|
84 | |
---|
85 | mes "[PecoPeco Breeder]"; |
---|
86 | if (BaseJob == Job_Crusader) { |
---|
87 | if (Class == Job_Crusader && Upper == 0 || Upper == 1) mes "Welcome, Crusader."; |
---|
88 | else |
---|
89 | mes "Welcome, Paladin."; |
---|
90 | mes "We have a special"; |
---|
91 | mes "Peco Peco prepared"; |
---|
92 | mes "for you. To rent one"; |
---|
93 | mes "will cost "+.@price+" zeny."; |
---|
94 | next; |
---|
95 | if (select("Rent a PecoPeco:Quit") ==1) { |
---|
96 | if (zeny < .@price) { |
---|
97 | mes "[Peco Peco Breeder]"; |
---|
98 | mes "You do not"; |
---|
99 | mes "have enough zeny."; |
---|
100 | mes "If you would like"; |
---|
101 | mes "a Peco Peco please"; |
---|
102 | mes "bring "+.@price+" zeny..."; |
---|
103 | close; |
---|
104 | } |
---|
105 | |
---|
106 | else if(getskilllv("KN_RIDING") == 0) { |
---|
107 | mes "[Peco Peco Breeder]"; |
---|
108 | mes "You must first learn"; |
---|
109 | mes "to ride a PecoPeco before"; |
---|
110 | mes "I can rent one to you."; |
---|
111 | close; |
---|
112 | } |
---|
113 | else if(checkriding()) { |
---|
114 | mes "[Peco Peco Breeder]"; |
---|
115 | mes "You are already"; |
---|
116 | mes "mounted on a Peco Peco."; |
---|
117 | close; |
---|
118 | } |
---|
119 | set zeny,zeny-.@price; |
---|
120 | setriding; |
---|
121 | } |
---|
122 | mes "[PecoPeco Breeder]"; |
---|
123 | mes "See you around."; |
---|
124 | close; |
---|
125 | } |
---|
126 | mes "What can I do for you?"; |
---|
127 | mes "Please be aware that"; |
---|
128 | mes "this Peco Peco rental"; |
---|
129 | mes "service is strictly for"; |
---|
130 | mes "Crusaders and Paladins."; |
---|
131 | close; |
---|
132 | } |
---|
133 | |
---|
134 | // Falcon Master-------------------------------------------------------------- |
---|
135 | hu_in01,381,304,5 script Falcon Breeder#hnt 105,{ |
---|
136 | if(Upper==0) set .@price,2500; //Normal Falcon - default price |
---|
137 | if(Upper==1) set .@price,2500; //Scarf Falcon |
---|
138 | if(Upper==2) set .@price,2500; //Baby Falcon |
---|
139 | |
---|
140 | mes "[Falcon Breeder]"; |
---|
141 | if (BaseJob == Job_Hunter) { |
---|
142 | mes "Do you need a Falcon?"; |
---|
143 | mes "You can rent your own"; |
---|
144 | mes "trusty bird of prey for a"; |
---|
145 | mes "fee of just "+.@price+" zeny~"; |
---|
146 | next; |
---|
147 | if (select("Rent Falcon:Cancel") == 1) { |
---|
148 | if (zeny < .@price) { |
---|
149 | mes "[Falcon Breeder]"; |
---|
150 | mes "What is this?"; |
---|
151 | mes "You don't have"; |
---|
152 | mes "enough zeny?!"; |
---|
153 | mes "You better start"; |
---|
154 | mes "hunting money"; |
---|
155 | mes "instead of monsters~"; |
---|
156 | close; |
---|
157 | } |
---|
158 | else if(getskilllv("HT_FALCON") == 0) { |
---|
159 | mes "[Falcon Breeder]"; |
---|
160 | mes "Gosh~"; |
---|
161 | mes "Go learn how to"; |
---|
162 | mes "manage a Falcon"; |
---|
163 | mes "first! I can't rent one"; |
---|
164 | mes "to you if you can't"; |
---|
165 | mes "handle it, you know."; |
---|
166 | close; |
---|
167 | } |
---|
168 | else if(checkfalcon()) { |
---|
169 | mes "[Falcon Breeder]"; |
---|
170 | mes "Um..."; |
---|
171 | mes "You already have"; |
---|
172 | mes "a Falcon. It's right"; |
---|
173 | mes "there, can't you see it?"; |
---|
174 | close; |
---|
175 | } |
---|
176 | set zeny,zeny-.@price; |
---|
177 | setfalcon; |
---|
178 | close; |
---|
179 | } |
---|
180 | mes "[Falcon Breeder]"; |
---|
181 | mes "W-wait, where're"; |
---|
182 | mes "you goin'? These"; |
---|
183 | mes "Falcons are top notch,"; |
---|
184 | mes "I guarantee it! C'mon, yo~"; |
---|
185 | close; |
---|
186 | } |
---|
187 | mes "Young fool!"; |
---|
188 | mes "Falcons can only"; |
---|
189 | mes "be used by Hunters"; |
---|
190 | mes "and Snipers, capish?"; |
---|
191 | mes "...Heh heh, jealous?"; |
---|
192 | close; |
---|
193 | } |
---|