1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
|
//================= Hercules Script =======================================
//= _ _ _
//= | | | | | |
//= | |_| | ___ _ __ ___ _ _| | ___ ___
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
//= | | | | __/ | | (__| |_| | | __/\__ \
//= \_| |_/\___|_| \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2020 Hercules Dev Team
//= Copyright (C) rAthena Dev Team
//= Copyright (C) Euphy
//= Copyright (C) Daegaladh
//= Copyright (C) eAthena Dev Team
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program. If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Renters (Renewal)
//================= Description ===========================================
//= Renewal-specific breeder NPCs.
//================= Current Version =======================================
//= 2.1
//=========================================================================
//== Dragon Breeder ========================================
job3_rune01,88,62,5 script Dragon Breeder 8W_SOLDIER,{
mes "[Dragon Breeder]";
if (Class == Job_Rune_Knight || Class == Job_Rune_Knight_T || Class == Job_Baby_Rune) {
mes "Welcome. Would you like to rent a Dragon?";
next;
switch(select("Yes", "No")) {
case 1:
//if (!getskilllv(RK_DRAGONTRAINING)) {
if (!getskilllv(KN_RIDING)) {
mes "[Dragon Breeder]";
mes "Please learn how to ride a Dragon first.";
close;
} else if (checkmount()) {
mes "[Dragon Breeder]";
mes "You already have a Dragon.";
close;
} else if(hascashmount()) {
mes "[Dragon Breeder]";
mes "Please remove your cash mount.";
close;
}
setmount(MOUNT_DRAGON);
close;
case 2:
mes "[Dragon Breeder]";
mes "I see. Then have a great day.";
close;
}
}
mes "What are you doing here?";
mes "Only Rune Knights can rent a Dragon.";
close;
}
//== Dragon/Gryphon Master =================================
prontera,130,213,5 script Riding Creature Master 8W_SOLDIER,{
mes "[Riding Creature Master]";
if (Class == Job_Rune_Knight || Class == Job_Rune_Knight_T || Class == Job_Baby_Rune) {
mes "Welcome. Would you like to rent a Dragon?";
next;
switch(select("Yes", "No")) {
case 1:
//if (!getskilllv(RK_DRAGONTRAINING)) {
if (!getskilllv(KN_RIDING)) {
mes "[Riding Creature Master]";
mes "Please learn how to ride a Dragon first.";
close;
} else if (checkmount()) {
mes "[Riding Creature Master]";
mes "You already have a Dragon.";
close;
} else if(hascashmount()) {
mes "[Riding Creature Master]";
mes "Please remove your cash mount.";
close;
}
setmount(MOUNT_DRAGON);
close;
case 2:
mes "[Riding Creature Master]";
mes "I see. Then have a great day.";
close;
}
}
if (Class == Job_Royal_Guard || Class == Job_Royal_Guard_T || Class == Job_Baby_Guard) {
mes "Welcome. Would you like to rent a Gryphon?";
next;
switch(select("Yes", "No")) {
case 1:
if(!getskilllv(KN_RIDING)) {
mes "[Riding Creature Master]";
mes "Please learn how to ride a Gryphon first.";
close;
} else if (checkmount()) {
mes "[Riding Creature Master]";
mes "You already have a Gryphon.";
close;
} else if(hascashmount()) {
mes "[Riding Creature Master]";
mes "Please remove your cash mount.";
close;
}
setmount(MOUNT_PECO);
close;
case 2:
mes "[Riding Creature Master]";
mes "I see. Then have a great day.";
close;
}
}
mes "I'm here to provide Rune Knights and Royal Guards with riding creatures.";
close;
}
geffen,100,55,3 duplicate(Riding Creature Master) Riding Creature Master#2 8W_SOLDIER
payon,166,102,5 duplicate(Riding Creature Master) Riding Creature Master#3 8W_SOLDIER
aldebaran,133,109,5 duplicate(Riding Creature Master) Riding Creature Master#4 8W_SOLDIER
yuno,171,187,3 duplicate(Riding Creature Master) Riding Creature Master#5 8W_SOLDIER
rachel,106,130,5 duplicate(Riding Creature Master) Riding Creature Master#6 8W_SOLDIER
//== Peco removing NPC =====================================
prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
mes "[Soldier]";
mes "If you're unable to dismount from a Peco Peco";
mes "for some unknown reason,";
mes "please feel free to use my services.";
if (checkmount() == MOUNT_PECO) {
next;
mes "[Soldier]";
mes "You're riding a Peco Peco.";
mes "Would you like to dismount?";
next;
switch(select("Yes", "No")) {
case 1:
setmount(MOUNT_NONE);
mes "[Soldier]";
mes "Say, how does it feel to";
mes "step on the ground on your own";
mes "feet again?";
close;
case 2:
mes "[Soldier]";
mes "I see. Please feel free to ask me";
mes "if you change your mind.";
close;
}
}
close;
}
//== Mado Gear Renter :: madogear =====================================
- script ::mgm FAKE_NPC,{
mes "[Mado Gear Armorer]";
if (Class == Job_Mechanic || Class == Job_Mechanic_T || Class == Job_Baby_Mechanic) {
mes "Welcome, Mechanic.";
mes "Would you like to rent a Pushcart or";
mes "ride a Mado Gear?";
next;
switch(select("Rent a Pushcart", "Ride a Mado Gear", "Buy Emergency Mado Gear", "Upgrade Cooling Device", "Cancel")) {
case 1:
if (checkcart()) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you already";
mes "have a Pushcart.";
close;
}
setcart;
mes "[Mado Gear Armorer]";
mes "There you go!";
close;
case 2:
if (checkmount() == MOUNT_MADO) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you're already";
mes "riding a Mado Gear.";
close;
} else if (!getskilllv(NC_MADOLICENCE)) {
mes "[Mado Gear Armorer]";
mes "Please learn the skill to get the Mado Gear License first.";
close;
} else if(hascashmount()) {
mes "[Mado Gear Armorer]";
mes "Please remove your cash mount.";
close;
}
setmount(MOUNT_MADO);
mes "[Mado Gear Armorer]";
mes "Have fun, and please come again!";
close;
case 3:
mes "[Mado Gear Armorer]";
mes "Emergency Mado Gear is really useful for emergency situations and it is sold at 1,000,000 Zeny.";
next;
if (select("Purchase", "Cancel") == 2) {
mes "[Mado Gear Armorer]";
mes "I see. Please feel free to ask me";
mes "if you change your mind.";
close;
}
if (countitem(Mado_Box) > 0) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you already have an Emergency Mado Gear.";
close;
}
if (Zeny < 1000000) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have enough Zeny to purchase the Emergency Mado Gear.";
close;
}
Zeny -= 1000000;
getitem Mado_Box, 1;
mes "[Mado Gear Armorer]";
mes "There you go!";
close;
case 4:
mes "[Mado Gear Armorer]";
mes "Which device do you want to upgrade?";
next;
if (select("Cooling Device", "High Quality Cooler") == 1) {
mes "[Mado Gear Armorer]";
mes "Upgrading Cooling Device to High Quality Cooler needs 1 Cooling Device and 2,000,000 Zeny.";
next;
.@itemid = Cooling_Device;
.@cost = 2000000;
} else {
mes "[Mado Gear Armorer]";
mes "Upgrading High Quality Cooler to Special Cooler needs 1 High Quality Cooler and 4,000,000 Zeny.";
next;
.@itemid = High_Quality_Cooler;
.@cost = 4000000;
}
if (select("Upgrade", "Cancel") == 2) {
mes "[Mado Gear Armorer]";
mes "I see. Please feel free to ask me";
mes "if you change your mind.";
close;
}
if (!countitem(.@itemid)) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have the " + getitemname(.@itemid) + ".";
close;
}
if (Zeny < .@cost) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have enough Zeny to upgrade the device.";
close;
}
Zeny -= .@cost;
delitem .@itemid, 1;
getitem (.@itemid == Cooling_Device ? High_Quality_Cooler : Special_Cooler), 1;
mes "[Mado Gear Armorer]";
mes "Here you are! Your very own " + getitemname(.@itemid) + ".";
close;
case 5:
close;
}
}
mes "How may I help you?";
mes "Mado Gears are only available for Mechanics.";
close;
}
prontera,163,178,3 duplicate(mgm) Mado Gear Armorer#prt 8W_SOLDIER
geffen,103,55,5 duplicate(mgm) Mado Gear Armorer#gef 8W_SOLDIER
payon,166,106,5 duplicate(mgm) Mado Gear Armorer#pay 8W_SOLDIER
aldebaran,133,112,5 duplicate(mgm) Mado Gear Armorer#alde 8W_SOLDIER
yuno,167,187,3 duplicate(mgm) Mado Gear Armorer#yuno 8W_SOLDIER
rachel,106,134,5 duplicate(mgm) Mado Gear Armorer#ra 8W_SOLDIER
dicastes01,187,207,3 duplicate(mgm) Mado Gear Armorer#dic 8W_SOLDIER
manuk,273,212,5 duplicate(mgm) Mado Gear Armorer#man 8W_SOLDIER
splendide,180,174,5 duplicate(mgm) Mado Gear Armorer#spl 8W_SOLDIER
mid_camp,242,243,3 duplicate(mgm) Mado Gear Armorer#mid 8W_SOLDIER
|