1 | //===== eAthena Script ======================================= |
---|
2 | //= Turbo Track NPCs |
---|
3 | //===== By: ================================================== |
---|
4 | //= L0ne_W0lf |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.4 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena SVN |
---|
9 | //===== Description: ========================================= |
---|
10 | //= [Aegis Conversion] |
---|
11 | //= General Turbo Track NPCs, includes Kafra and Tool Merchant |
---|
12 | //===== Additional Comments: ================================= |
---|
13 | //= 1.0 First version. [L0ne_W0lf] |
---|
14 | //= 1.1 Fixed exp rewarding working backwards.[L0ne_W0lf] |
---|
15 | //= Fixed a bug in the while loop in the guide. |
---|
16 | //= 1.2 Fix to prevent point converter from hanging. [L0ne_W0lf] |
---|
17 | //= 1.3 Slight optimization to the point exchanger. [L0ne_W0lf] |
---|
18 | //= 1.4 Added missing checkweights. [L0ne_W0lf] |
---|
19 | //============================================================ |
---|
20 | |
---|
21 | turbo_room,130,92,3 script Kafra Staff#tt 115,{ |
---|
22 | cutin "kafra_03",2; |
---|
23 | mes "[Kafra Staff]"; |
---|
24 | mes "Welcome~ The Kafra Services"; |
---|
25 | mes "are always on your side. Let me"; |
---|
26 | mes "remind you that using the Save"; |
---|
27 | mes "Service here will change your"; |
---|
28 | mes "Respawn Point to Al De Baran."; |
---|
29 | mes "Now, how may I assist you?"; |
---|
30 | callfunc "F_Kafra",5,8,1,40,0; |
---|
31 | |
---|
32 | M_Save: |
---|
33 | savepoint "aldebaran",168,112; |
---|
34 | callfunc "F_KafEnd",0,1,"in Al De Baran"; |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | turbo_room,124,86,0 shop Turbo Track Merchant 90,501:-1,502:-1,503:-1,504:-1,645:-1,656:-1,1065:-1,1750:-1 |
---|
39 | |
---|
40 | //This is the name on iRO as well. [Confirmed] |
---|
41 | turbo_room,99,120,4 script TBT_Guide#Broadcast 124,{ |
---|
42 | mes "[Turbo Track Guide]"; |
---|
43 | mes "Good day~"; |
---|
44 | mes "Is there anything that"; |
---|
45 | mes "you would like to know"; |
---|
46 | mes "about the Turbo Track?"; |
---|
47 | mes "Feel free to ask me"; |
---|
48 | mes "any questions."; |
---|
49 | next; |
---|
50 | while(1) { |
---|
51 | switch(select("Race Rules:Game Courses:Game Modes:Prohibited Items and Skills:Cancel")) { |
---|
52 | case 1: |
---|
53 | mes "[Turbo Track Guide]"; |
---|
54 | mes "The rules for all the races"; |
---|
55 | mes "are pretty simple. Just get"; |
---|
56 | mes "past all the obstacles and"; |
---|
57 | mes "try to get to the Finish Line"; |
---|
58 | mes "as quickly as you can."; |
---|
59 | next; |
---|
60 | mes "[Turbo Track Guide]"; |
---|
61 | mes "Of course, some of the courses"; |
---|
62 | mes "in the races may present a few"; |
---|
63 | mes "unexpected situations, but I can't really illustrate an example..."; |
---|
64 | mes "Just know that there will"; |
---|
65 | mes "be traps lying about."; |
---|
66 | next; |
---|
67 | mes "[Turbo Track Guide]"; |
---|
68 | mes "Classes that can mount"; |
---|
69 | mes "a Peco Peco, such as Knight,"; |
---|
70 | mes "Lord Knight, Crusader and"; |
---|
71 | mes "Paladin, must get off their"; |
---|
72 | mes "Peco Pecos before entering"; |
---|
73 | mes "the Turbo Track Arena."; |
---|
74 | next; |
---|
75 | mes "[Turbo Track Guide]"; |
---|
76 | mes "Well, more accurately,"; |
---|
77 | mes "someone at the Turbo Track"; |
---|
78 | mes "entrance will ask you to get"; |
---|
79 | mes "off and will give you a ticket"; |
---|
80 | mes "so that you can rent your"; |
---|
81 | mes "Peco again free of charge."; |
---|
82 | next; |
---|
83 | mes "[Turbo Track Guide]"; |
---|
84 | mes "Now, the winner of the race"; |
---|
85 | mes "is the person who reaches the"; |
---|
86 | mes "Finish Line first. Once someone"; |
---|
87 | mes "crosses the Finish Line, the race ends and everyone is automatically transported to a Waiting Room."; |
---|
88 | next; |
---|
89 | mes "[Turbo Track Guide]"; |
---|
90 | mes "Keep in mind that every"; |
---|
91 | mes "race is only 15 minutes long."; |
---|
92 | mes "If no one can reach the Finish"; |
---|
93 | mes "Line within that time, the race"; |
---|
94 | mes "will end without a winner."; |
---|
95 | next; |
---|
96 | mes "[Turbo Track Guide]"; |
---|
97 | mes "There are no character"; |
---|
98 | mes "class or level requirements"; |
---|
99 | mes "to participate in the Turbo"; |
---|
100 | mes "Track. However, there is a"; |
---|
101 | mes "participation fee of 1,000 zeny. ^FFFFFFcobo^000000"; |
---|
102 | next; |
---|
103 | break; |
---|
104 | case 2: |
---|
105 | mes "[Turbo Track Guide]"; |
---|
106 | mes "Races in the Turbo Track"; |
---|
107 | mes "consist of various courses:"; |
---|
108 | mes "^4d4dffLog Bridge, Cube Hills, the"; |
---|
109 | mes "Single Snail, Snake Dice, Small"; |
---|
110 | mes "Cave and the Invisible Maze."; |
---|
111 | next; |
---|
112 | mes "[Turbo Track Guide]"; |
---|
113 | mes "The availability of specific"; |
---|
114 | mes "courses is determined by the"; |
---|
115 | mes "game mode. Would you like to"; |
---|
116 | mes "learn more about a certain course? ^FFFFFFcobo^000000"; |
---|
117 | next; |
---|
118 | set .@exitloop,1; |
---|
119 | while (.@exitloop) { |
---|
120 | switch(select("Log Bridge and Cube Hills:Cursed Desert and Flasher Maze:Single Snail and Invisible Maze:Snake Dice and Small Cave:No, thanks.")) { |
---|
121 | case 1: |
---|
122 | mes "[Turbo Track Guide]"; |
---|
123 | mes "In the Log Bridge"; |
---|
124 | mes "course, you must cross"; |
---|
125 | mes "over a single log. If you"; |
---|
126 | mes "fall off, you'll be brought"; |
---|
127 | mes "back to the beginning of"; |
---|
128 | mes "the Log Bridge."; |
---|
129 | next; |
---|
130 | mes "[Turbo Track Guide]"; |
---|
131 | mes "The Cube Hills is a maze"; |
---|
132 | mes "consisting of piles and piles"; |
---|
133 | mes "of boxes. You can climb over"; |
---|
134 | mes "some boxes, but cannot pass"; |
---|
135 | mes ",through others. You'll have to navigate and find the best path."; |
---|
136 | next; |
---|
137 | break; |
---|
138 | case 2: |
---|
139 | mes "[Turbo Track Guide]"; |
---|
140 | mes "The Cursed Desert is"; |
---|
141 | mes "a short course that is full"; |
---|
142 | mes "of surprises. If you're really"; |
---|
143 | mes "unlucky, you may find yourself"; |
---|
144 | mes "confused or even cursed!"; |
---|
145 | next; |
---|
146 | mes "[Turbo Track Guide]"; |
---|
147 | mes "The Flasher Maze"; |
---|
148 | mes "is full of traps that will"; |
---|
149 | mes "blind so you better be extra"; |
---|
150 | mes "careful in navigating this maze. It might be wiser to try to slow down and avoid the traps..."; |
---|
151 | next; |
---|
152 | break; |
---|
153 | case 3: |
---|
154 | mes "[Turbo Track Guide]"; |
---|
155 | mes "The Single Snail is"; |
---|
156 | mes "a narrow, spiral path"; |
---|
157 | mes "shaped like a snail's shell."; |
---|
158 | mes "There aren't many obstacles,"; |
---|
159 | mes "but it will be tough to race at your top speed in this course."; |
---|
160 | next; |
---|
161 | mes "[Turbo Track Guide]"; |
---|
162 | mes "The Invisible Maze"; |
---|
163 | mes "looks like a huge, open"; |
---|
164 | mes "room, but it's actually full"; |
---|
165 | mes "of invisible walls. You'll"; |
---|
166 | mes "be given some hints, so"; |
---|
167 | mes "it's not impossible."; |
---|
168 | next; |
---|
169 | break; |
---|
170 | case 4: |
---|
171 | mes "[Turbo Track Guide]"; |
---|
172 | mes "The Snake Dice course"; |
---|
173 | mes "offers winding paths, much"; |
---|
174 | mes "like the body of a snake. The"; |
---|
175 | mes "factor of luck also plays a role in this course, which you'll"; |
---|
176 | mes "have to see for yourself."; |
---|
177 | next; |
---|
178 | mes "[Turbo Track Guide]"; |
---|
179 | mes "The Small Cave is simply"; |
---|
180 | mes "a replica of the Payon Cave."; |
---|
181 | mes "This part should be a breeze"; |
---|
182 | mes "if you're pretty comfortable with hunting in the Payon Cave."; |
---|
183 | next; |
---|
184 | break; |
---|
185 | case 5: |
---|
186 | mes "[Turbo Track Guide]"; |
---|
187 | mes "I see."; |
---|
188 | mes "Okay then,"; |
---|
189 | mes "best of luck to"; |
---|
190 | mes "you in the races!"; |
---|
191 | next; |
---|
192 | set .@exitloop,0; |
---|
193 | } |
---|
194 | } |
---|
195 | mes "[Turbo Track Guide]"; |
---|
196 | mes "Would you like to"; |
---|
197 | mes "know anything else"; |
---|
198 | mes "about Turbo Track?"; |
---|
199 | next; |
---|
200 | break; |
---|
201 | case 3: |
---|
202 | mes "[Turbo Track Guide]"; |
---|
203 | mes "There are three different"; |
---|
204 | mes "game modes available for"; |
---|
205 | mes "races in the Turbo Track:"; |
---|
206 | mes "Normal, Expert and Solo."; |
---|
207 | next; |
---|
208 | mes "[Turbo Track Guide]"; |
---|
209 | mes "Unlike the other game"; |
---|
210 | mes "modes, ^4d4dffExpert Mode"; |
---|
211 | mes "allows players to PvP^000000. This mode"; |
---|
212 | mes "is ideal for races between"; |
---|
213 | mes "parties or guilds."; |
---|
214 | next; |
---|
215 | mes "[Turbo Track Guide]"; |
---|
216 | mes "Now, the Invisible Maze is"; |
---|
217 | mes "a special course that is only"; |
---|
218 | mes "available in 16 person races"; |
---|
219 | mes "in ^4d4dffNormal^000000 and ^4D4DFFExpert^000000 modes."; |
---|
220 | next; |
---|
221 | mes "[Turbo Track Guide]"; |
---|
222 | mes "If you play Solo Mode,"; |
---|
223 | mes "you can experience every"; |
---|
224 | mes "course, and the name of time"; |
---|
225 | mes "of the fastest player will be"; |
---|
226 | mes "recorded in our Hall of Honor."; |
---|
227 | next; |
---|
228 | break; |
---|
229 | case 4: |
---|
230 | mes "[Turbo Track Guide]"; |
---|
231 | mes "Now in Turbo Track, the"; |
---|
232 | mes "following items are prohibited"; |
---|
233 | mes "from use: Green Potion, Panacea"; |
---|
234 | mes "and Fly Wing. If you do try to use them, they won't work until after you leave the race track."; |
---|
235 | next; |
---|
236 | mes "[Turbo Track Guide]"; |
---|
237 | mes "The following skills cannot"; |
---|
238 | mes "be used during Turbo Track"; |
---|
239 | mes "races: Snatch, Teleport, Warp"; |
---|
240 | mes "Portal, Hiding, Cloaking, Stealth, Cure, Ice Wall, Berserk, Basilica, Sheltering Bless and Spear Dynamo."; |
---|
241 | next; |
---|
242 | //this aopears to suposed to fall through. |
---|
243 | case 5: |
---|
244 | mes "[Turbo Track Guide]"; |
---|
245 | mes "Please enjoy your"; |
---|
246 | mes "time in the Al De Baran"; |
---|
247 | mes "Turbo Track. Thank you~"; |
---|
248 | close; |
---|
249 | } |
---|
250 | } |
---|
251 | |
---|
252 | OnInit: |
---|
253 | // This will only ever be run ONCE! |
---|
254 | // Unless you eradicate the variable. |
---|
255 | // |
---|
256 | // This OnInit initiallizes and sets the starting |
---|
257 | // data for the Turbo Track's "Record" Logs. |
---|
258 | // WARNING/ATTENTION: DO NOT MODIFY ANY OF THE DATA. |
---|
259 | // DOING SO WILL CAUSE INTERNAL PROBLEMS IN THE SCRIPT. |
---|
260 | if ($ttnames$[0] == "") { |
---|
261 | setarray $ttnames$[0],"Breezy Havana"; // Solo Mode/Time Attack |
---|
262 | setarray $ttnames$[1],"RS125"; // Normal 4 Player |
---|
263 | setarray $ttnames$[2],"Hollgrehenn"; // Normal 8 Players |
---|
264 | setarray $ttnames$[3],"Antonio"; // Noomal 16 Players |
---|
265 | |
---|
266 | setarray $ttnames$[4],"Aragham"; // Expert 4 Players |
---|
267 | setarray $ttnames$[5],"Kafra Jasmine"; // Expert 8 Players |
---|
268 | setarray $ttnames$[6],"Chris"; // Expert 16 Players |
---|
269 | |
---|
270 | setarray $ttnames$[7],"Breezy Havana"; // Honor Place 1 |
---|
271 | setarray $ttnames$[8],"RS125"; // Honor Place 2 |
---|
272 | |
---|
273 | setarray $ttnames$[9],"Breezy Havana"; // Top 1 |
---|
274 | setarray $ttnames$[10],"Nari"; // Top 2 |
---|
275 | setarray $ttnames$[11],"Senorita Sylvia"; // Top 3 |
---|
276 | setarray $ttnames$[12],"Joo Jahk"; // Top 4 |
---|
277 | setarray $ttnames$[13],"RS125"; // Top 5 |
---|
278 | |
---|
279 | setarray $ttranks[0],999999,0,0,0,0,0; |
---|
280 | } |
---|
281 | end; |
---|
282 | |
---|
283 | Onend_n1: |
---|
284 | mapannounce "turbo_room","A [Normal Mode - Solo] game will end shortly.",bc_map,"0xadff2f"; |
---|
285 | end; |
---|
286 | |
---|
287 | Onend_n4: |
---|
288 | mapannounce "turbo_room","A [Normal Mode - 4 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
289 | end; |
---|
290 | |
---|
291 | Onend_n8: |
---|
292 | mapannounce "turbo_room","A [Normal Mode - 8 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
293 | end; |
---|
294 | |
---|
295 | Onend_n16: |
---|
296 | mapannounce "turbo_room","A [Normal Mode - 16 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
297 | end; |
---|
298 | |
---|
299 | Onend_e4: |
---|
300 | mapannounce "turbo_room","A [Expert Mode - 4 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
301 | end; |
---|
302 | |
---|
303 | Onend_e8: |
---|
304 | mapannounce "turbo_room","A [Expert Mode - 8 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
305 | end; |
---|
306 | |
---|
307 | Onend_e16: |
---|
308 | mapannounce "turbo_room","A [Expert Mode - 16 Person] game will end shortly.",bc_map,"0xadff2f"; |
---|
309 | end; |
---|
310 | |
---|
311 | Onnew_top1: |
---|
312 | mapannounce "turbo_room","Congratulations! " + $ttnames$[9] + " has ranked Number One in the Turbo Track Hall of Honor!",bc_map,"0x00ff00"; |
---|
313 | end; |
---|
314 | |
---|
315 | Onnew_top2: |
---|
316 | mapannounce "turbo_room","Congratulations! " + $ttnames$[10] + " has ranked Second in the Turbo Track Hall of Honor!",bc_map,"0x00ff00"; |
---|
317 | end; |
---|
318 | |
---|
319 | Onnew_top3: |
---|
320 | mapannounce "turbo_room","Congratulations! " + $ttnames$[11] + " has ranked Third in the Turbo Track Hall of Honor!",bc_map,"0x00ff00"; |
---|
321 | end; |
---|
322 | |
---|
323 | Onnew_top4: |
---|
324 | mapannounce "turbo_room","Congratulations! " + $ttnames$[12] + " has ranked Fourth in the Turbo Track Hall of Honor!",bc_map,"0x00ff00"; |
---|
325 | end; |
---|
326 | |
---|
327 | Onnew_top5: |
---|
328 | mapannounce "turbo_room","Congratulations! " + $ttnames$[13] + " has ranked Fifth in the Turbo Track Hall of Honor!",bc_map,"0x00ff00"; |
---|
329 | end; |
---|
330 | |
---|
331 | Onwin_n4: |
---|
332 | mapannounce "turbo_room","Congratulations! " + $ttnames$[1] + " just won a [Normal Mode - 4 Person] game!",bc_map,"0x70DBDB"; |
---|
333 | end; |
---|
334 | |
---|
335 | Onwin_n8: |
---|
336 | mapannounce "turbo_room","Congratulations! " + $ttnames$[2] + " just won a [Normal Mode - 8 Person] game!",bc_map,"0x70DBDB"; |
---|
337 | end; |
---|
338 | |
---|
339 | Onwin_n16: |
---|
340 | mapannounce "turbo_room","Congratulations! " + $ttnames$[3] + " just won a [Normal Mode - 16 Person] game!",bc_map,"0x70DBDB"; |
---|
341 | end; |
---|
342 | |
---|
343 | Onwin_e4: |
---|
344 | mapannounce "turbo_room","Congratulations! " + $ttnames$[4] + " just won an [Expert Mode - 4 Person] game!",bc_map,"0x70DBDB"; |
---|
345 | end; |
---|
346 | |
---|
347 | Onwin_e8: |
---|
348 | mapannounce "turbo_room","Congratulations! " + $ttnames$[5] + " just won an [Expert Mode - 8 Person] game!",bc_map,"0x70DBDB"; |
---|
349 | end; |
---|
350 | |
---|
351 | Onwin_e16: |
---|
352 | mapannounce "turbo_room","Congratulations! " + $ttnames$[6] + " just won an [Expert Mode - 16 Person] game!",bc_map,"0x70DBDB"; |
---|
353 | end; |
---|
354 | } |
---|
355 | |
---|
356 | turbo_room,102,117,3 script Hall of Honor#tt 857,{ |
---|
357 | mes "^2F4F4FTurbo Track Hall of Honor^000000"; |
---|
358 | mes " "; |
---|
359 | mes "The First:"; |
---|
360 | mes "^4d4dff" + $ttnames$[7] + "^000000"; |
---|
361 | mes " "; |
---|
362 | mes "The Last:"; |
---|
363 | mes "^4d4dff" + $ttnames$[8] + "^000000"; |
---|
364 | close; |
---|
365 | } |
---|
366 | |
---|
367 | turbo_room,77,115,5 script Solo Mode#tt::TurboSoloNames 857,{ |
---|
368 | mes "^2F4F4FSolo Mode Record^000000"; |
---|
369 | mes " "; |
---|
370 | mes "The best player"; |
---|
371 | mes "in Solo Mode..."; |
---|
372 | mes "^4d4dff" + $ttnames$[0] + "^000000 !"; |
---|
373 | close; |
---|
374 | } |
---|
375 | |
---|
376 | turbo_room,87,114,5 script Normal Mode Record#tt::TurboNormalNames 857,{ |
---|
377 | mes "<<Recent Top Players>>"; |
---|
378 | mes "Winners of Normal Mode - 4 Person"; |
---|
379 | mes "^4d4dff" + $ttnames$[1] + "^000000"; |
---|
380 | mes "Winners of Normal Mode - 8 Person"; |
---|
381 | mes "^4d4dff" + $ttnames$[2] + "^000000"; |
---|
382 | mes "Winners of Normal Mode - 16 Person"; |
---|
383 | mes "^4d4dff" + $ttnames$[3] + "^000000"; |
---|
384 | close; |
---|
385 | } |
---|
386 | |
---|
387 | turbo_room,112,114,3 script Expert Mode Record::TurboExpertNames 857,{ |
---|
388 | mes "<<Recent Top Players>>"; |
---|
389 | mes "Winners of Expert Mode - 4 Person"; |
---|
390 | mes "^4d4dff" + $ttnames$[4] + "^000000"; |
---|
391 | mes "Winners of Expert Mode - 8 Person"; |
---|
392 | mes "^4d4dff" + $ttnames$[5] + "^000000"; |
---|
393 | mes "Winners of Expert Mode - 16 Person"; |
---|
394 | mes "^4d4dff" + $ttnames$[6] + "^000000"; |
---|
395 | close; |
---|
396 | } |
---|
397 | |
---|
398 | turbo_room,97,117,5 script Hall of Honor#tt2 857,{ |
---|
399 | mes "^2F4F4FTurbo Track Hall of Honor^000000"; |
---|
400 | mes " "; |
---|
401 | mes "1st: ^4d4dff" + $ttnames$[9] + "^000000"; |
---|
402 | mes "2nd: ^4d4dff" + $ttnames$[10] + "^000000"; |
---|
403 | mes "3rd: ^4d4dff" + $ttnames$[11] + "^000000"; |
---|
404 | mes "4th: ^4d4dff" + $ttnames$[12] + "^000000"; |
---|
405 | mes "5th: ^4d4dff" + $ttnames$[13] + "^000000"; |
---|
406 | close; |
---|
407 | } |
---|
408 | |
---|
409 | turbo_room,75,95,5 duplicate(TurboSoloNames) Solo Mode#1 857 |
---|
410 | turbo_room,67,95,5 duplicate(TurboNormalNames) Normal Mode Records#1 857 |
---|
411 | turbo_room,71,95,5 duplicate(TurboExpertNames) Expert Mode Records#1 857 |
---|
412 | |
---|
413 | // Turbo Track Item Exchanger |
---|
414 | turbo_room,93,117,5 script Point Exchange Helper 125,{ |
---|
415 | if ((MaxWeight-Weight) < 2000 || checkweight(1201,1) == 0) { |
---|
416 | mes "^3355FFWait a second!"; |
---|
417 | mes "Right now, you're carrying"; |
---|
418 | mes "too many items with you."; |
---|
419 | mes "Please come back after"; |
---|
420 | mes "putting storing some of your"; |
---|
421 | mes "things using the Kafra Service.^000000"; |
---|
422 | close; |
---|
423 | } |
---|
424 | if (tt_point < 10) { |
---|
425 | mes "[Item Exchange Helper]"; |
---|
426 | mes "Good day,"; |
---|
427 | mes "" + strcharinfo(0) + "."; |
---|
428 | mes "You've got a total of"; |
---|
429 | mes "" + tt_point + " Turbo Track Points."; |
---|
430 | next; |
---|
431 | mes "[Item Exchange Helper]"; |
---|
432 | mes "If you have at least"; |
---|
433 | mes "10 Turbo Track Points,"; |
---|
434 | mes "you can exchange these"; |
---|
435 | mes "points for items. Would"; |
---|
436 | mes "you like to see the Turbo"; |
---|
437 | mes "Track Point exchange list?"; |
---|
438 | next; |
---|
439 | if (select("Yes.:Cancel.") == 1) { |
---|
440 | mes "[Item Exchange Helper]"; |
---|
441 | mes "^3355FF10 TTP^000000: 1 Free Ticket"; |
---|
442 | mes "for Kafra Transportation"; |
---|
443 | mes "^3355FF12 TTP^000000: 1 Level 5 Magic Scroll"; |
---|
444 | mes "^3355FF40 TTP^000000: Experience Points"; |
---|
445 | next; |
---|
446 | mes "[Item Exchange Helper]"; |
---|
447 | mes "^3355FF150 TTP^000000: 1 3 Carat Diamond"; |
---|
448 | mes "^3355FF300 TTP^000000: 1 Gift Box"; |
---|
449 | mes "^3355FF400 TTP^000000: 1 Speed Potion"; |
---|
450 | next; |
---|
451 | mes "[Item Exchange Helper]"; |
---|
452 | mes "You can also convert Turbo Track Points into Arena Points. For more information, please speak to the Arena Point Manager. Thank you."; |
---|
453 | close; |
---|
454 | } |
---|
455 | mes "[Item Exchange Helper]"; |
---|
456 | mes "We hope that you enjoy"; |
---|
457 | mes "Al De Baran's Turbo Track."; |
---|
458 | mes "Try to earn as many points"; |
---|
459 | mes "as you can so that you can"; |
---|
460 | mes "exchange them for useful"; |
---|
461 | mes "stuff later. Happy racing~"; |
---|
462 | close; |
---|
463 | } |
---|
464 | else { |
---|
465 | mes "[Item Exchange Helper]"; |
---|
466 | mes "Good day,"; |
---|
467 | mes "" + strcharinfo(0) + "."; |
---|
468 | mes "You've got a total of"; |
---|
469 | mes "" + tt_point + " Turbo Track Points."; |
---|
470 | mes "Would you like to exchange"; |
---|
471 | mes "these points for items?"; |
---|
472 | next; |
---|
473 | switch(select("Exchange.:Cancel.")) { |
---|
474 | case 1: |
---|
475 | mes "[Item Exchange Helper]"; |
---|
476 | mes "Please choose the item for"; |
---|
477 | mes "which you'd like to exchange"; |
---|
478 | mes "your Turbo Track Points."; |
---|
479 | next; |
---|
480 | switch(select("Free Ticket for Kafra Transportation:Level 5 Magic Scroll:Experience Points:3 Carat Diamond:Gift Box:Speed Potion:Cancel.")) { |
---|
481 | case 1: |
---|
482 | mes "[Item Exchange Helper]"; |
---|
483 | mes "Each Free Ticket for"; |
---|
484 | mes "Kafra Transportation"; |
---|
485 | mes "costs 10 Turbo Track Points."; |
---|
486 | mes "Please enter the amount that"; |
---|
487 | mes "you wish to have. To cancel,"; |
---|
488 | mes "please enter ''^3355FF0^000000.''"; |
---|
489 | next; |
---|
490 | input .@input; |
---|
491 | if (.@input == 0) { |
---|
492 | mes "[Item Exchange Helper]"; |
---|
493 | mes "You have"; |
---|
494 | mes "canceled"; |
---|
495 | mes "your request."; |
---|
496 | close; |
---|
497 | } |
---|
498 | else if (.@input < 0 || .@input > 50) { |
---|
499 | mes "[Item Exchange Helper]"; |
---|
500 | mes "Your request exceeds"; |
---|
501 | mes "the maximum limit. You"; |
---|
502 | mes "can only receive a maximum"; |
---|
503 | mes "of 50 tickets at once."; |
---|
504 | close; |
---|
505 | } |
---|
506 | else { |
---|
507 | set .@total_point,10 * .@input; |
---|
508 | if (.@total_point > tt_point) { |
---|
509 | mes "[Item Exchange Helper]"; |
---|
510 | mes "I'm sorry, but you do"; |
---|
511 | mes "not have enough Turbo"; |
---|
512 | mes "Track Points. Please check"; |
---|
513 | mes "the amount of Turbo Track"; |
---|
514 | mes "Points you have earned before"; |
---|
515 | mes "redeeming your points again."; |
---|
516 | close; |
---|
517 | } |
---|
518 | set tt_point,tt_point-.@total_point; |
---|
519 | getitem 7060,.@input; //Warp_Free_Ticket |
---|
520 | mes "[Item Exchange Helper]"; |
---|
521 | mes "Thank you for"; |
---|
522 | mes "your patronage."; |
---|
523 | mes "We hope you enjoy"; |
---|
524 | mes "your time here in"; |
---|
525 | mes "the Turbo Track~"; |
---|
526 | close; |
---|
527 | } |
---|
528 | case 2: |
---|
529 | mes "[Item Exchange Helper]"; |
---|
530 | mes "Each Magic Scroll costs"; |
---|
531 | mes "12 Turbo Track Points. Please"; |
---|
532 | mes "select the Magic Scroll you would like to receive. Each scroll enables a one time use of a Level 5 spell or skill."; |
---|
533 | next; |
---|
534 | switch(select("Earth Spike:Cold Bolt:Fire Bolt:Lightning Bolt:Soul Strike:Fire Ball:Fire Wall:Frost Diver:Heal")) { |
---|
535 | case 1: |
---|
536 | set .@scroll,687; //Earth_Scroll_1_5 |
---|
537 | set .@name$,"Earth Spike"; |
---|
538 | break; |
---|
539 | case 2: |
---|
540 | set .@scroll,689; //Cold_Scroll_1_5 |
---|
541 | set .@name$,"Cold Boltl"; |
---|
542 | break; |
---|
543 | case 3: |
---|
544 | set .@scroll,691; //Fire_Scroll_1_5 |
---|
545 | set .@name$,"Fire Bolt"; |
---|
546 | break; |
---|
547 | case 4: |
---|
548 | set .@scroll,693; //Wind_Scroll_1_5 |
---|
549 | set .@name$,"Lightning Bolt"; |
---|
550 | break; |
---|
551 | case 5: |
---|
552 | set .@scroll,695; //Ghost_Scroll_1_5 |
---|
553 | set .@name$,"Soul Strike"; |
---|
554 | break; |
---|
555 | case 6: |
---|
556 | set .@scroll,697; //Fire_Scroll_2_5 |
---|
557 | set .@name$,"Fire Ball"; |
---|
558 | break; |
---|
559 | case 7: |
---|
560 | set .@scroll,699; //Fire_Scroll_3_5 |
---|
561 | set .@name$,"Fire Wall"; |
---|
562 | break; |
---|
563 | case 8: |
---|
564 | set .@scroll,12000; //Cold_Scroll_2_5 |
---|
565 | set .@name$,"Frost Diver"; |
---|
566 | break; |
---|
567 | case 9: |
---|
568 | set .@scroll,12002; //Holy_Scroll_1_5 |
---|
569 | set .@name$,"Heal"; |
---|
570 | break; |
---|
571 | } |
---|
572 | mes "[Item Exchange Helper]"; |
---|
573 | mes "Please enter the number"; |
---|
574 | mes "of ^4d4dff"+.@name$+"^000000 Magic Scrolls that"; |
---|
575 | mes "you would like to receive."; |
---|
576 | mes "To cancel, enter ''^3355FF0^000000.''"; |
---|
577 | next; |
---|
578 | input .@input; |
---|
579 | if (.@input == 0) { |
---|
580 | mes "[Item Exchange Helper]"; |
---|
581 | mes "You have"; |
---|
582 | mes "canceled"; |
---|
583 | mes "your request."; |
---|
584 | close; |
---|
585 | } |
---|
586 | else if (.@input < 0 || .@input > 50) { |
---|
587 | mes "[Item Exchange Helper]"; |
---|
588 | mes "I'm sorry, but your"; |
---|
589 | mes "request has exceeded the"; |
---|
590 | mes "maximum limit. You can only"; |
---|
591 | mes "request up to 50 scrolls at once. ^FFFFFFcobo^000000"; |
---|
592 | close; |
---|
593 | } |
---|
594 | else { |
---|
595 | set .@total_point,12 * .@input; |
---|
596 | if (.@total_point > tt_point) { |
---|
597 | mes "[Item Exchange Helper]"; |
---|
598 | mes "I'm sorry, but you do"; |
---|
599 | mes "not have enough Turbo"; |
---|
600 | mes "Track Points. Please check"; |
---|
601 | mes "the amount of Turbo Track"; |
---|
602 | mes "Points you have earned before"; |
---|
603 | mes "redeeming your points again."; |
---|
604 | close; |
---|
605 | } |
---|
606 | set tt_point,tt_point-.@total_point; |
---|
607 | getitem .@scroll,.@input; |
---|
608 | mes "[Item Exchange Helper]"; |
---|
609 | mes "Thank you for"; |
---|
610 | mes "your patronage."; |
---|
611 | mes "We hope you enjoy"; |
---|
612 | mes "your time here in"; |
---|
613 | mes "the Turbo Track~"; |
---|
614 | close; |
---|
615 | } |
---|
616 | case 3: |
---|
617 | mes "[Item Exchange Helper]"; |
---|
618 | mes "You can exchange"; |
---|
619 | mes "40 Turbo Track Points"; |
---|
620 | mes "to receive Base Level"; |
---|
621 | mes "Experience. Would you"; |
---|
622 | mes "like to exchange your Turbo"; |
---|
623 | mes "Track Points for Experience?"; |
---|
624 | next; |
---|
625 | if (select("No:Yes") == 2) { |
---|
626 | if (tt_point < 40) { |
---|
627 | mes "[Item Exchange Helper]"; |
---|
628 | mes "I'm sorry, but you do"; |
---|
629 | mes "not have enough Turbo"; |
---|
630 | mes "Track Points. Please check"; |
---|
631 | mes "the amount of Turbo Track"; |
---|
632 | mes "Points you have earned before"; |
---|
633 | mes "redeeming your points again."; |
---|
634 | close; |
---|
635 | |
---|
636 | } |
---|
637 | set tt_point,tt_point-40; |
---|
638 | if (BaseLevel < 70) |
---|
639 | getexp 3000,0; |
---|
640 | else if (BaseLevel < 80) |
---|
641 | getexp 9000,0; |
---|
642 | else if (BaseLevel < 90) |
---|
643 | getexp 10000,0; |
---|
644 | else if (BaseLevel < 100) |
---|
645 | getexp 30000,0; |
---|
646 | mes "[Item Exchange Helper]"; |
---|
647 | mes "Thank you, your"; |
---|
648 | mes "Turbo Track Points"; |
---|
649 | mes "have been converted into"; |
---|
650 | mes "Base Level Experience."; |
---|
651 | close; |
---|
652 | } |
---|
653 | mes "[Item Exchange Helper]"; |
---|
654 | mes "You have"; |
---|
655 | mes "canceled"; |
---|
656 | mes "your request."; |
---|
657 | close; |
---|
658 | case 4: |
---|
659 | mes "[Item Exchange Helper]"; |
---|
660 | mes "You can exchange"; |
---|
661 | mes "150 Turbo Track Points"; |
---|
662 | mes "for ^3131FF1 3 Carat Diamond^000000."; |
---|
663 | mes "Please enter the number of"; |
---|
664 | mes "diamonds you would like to receive."; |
---|
665 | mes "To cancel, enter ''^3355FF0^000000.''"; |
---|
666 | next; |
---|
667 | input .@input; |
---|
668 | if (.@input == 0) { |
---|
669 | mes "[Item Exchange Helper]"; |
---|
670 | mes "You have"; |
---|
671 | mes "canceled"; |
---|
672 | mes "your request."; |
---|
673 | close; |
---|
674 | } |
---|
675 | else if (.@input < 0 || .@input > 10) { |
---|
676 | mes "[Item Exchange Helper]"; |
---|
677 | mes "Your request exceeds"; |
---|
678 | mes "the maximum limit. You"; |
---|
679 | mes "can only receive a maximum"; |
---|
680 | mes "of 10 diamonds at once."; |
---|
681 | close; |
---|
682 | } |
---|
683 | else { |
---|
684 | set .@total_point,150 * .@input; |
---|
685 | if (.@total_point > tt_point) { |
---|
686 | mes "[Item Exchange Helper]"; |
---|
687 | mes "I'm sorry, but you do"; |
---|
688 | mes "not have enough Turbo"; |
---|
689 | mes "Track Points. Please check"; |
---|
690 | mes "the amount of Turbo Track"; |
---|
691 | mes "Points you have earned before"; |
---|
692 | mes "redeeming your points again."; |
---|
693 | close; |
---|
694 | } |
---|
695 | set tt_point,tt_point-.@total_point; |
---|
696 | getitem 732,.@input; //Crystal_Jewel__ |
---|
697 | mes "[Item Exchange Helper]"; |
---|
698 | mes "Thank you for"; |
---|
699 | mes "your patronage."; |
---|
700 | mes "We hope you enjoy"; |
---|
701 | mes "your time here in"; |
---|
702 | mes "the Turbo Track~"; |
---|
703 | close; |
---|
704 | } |
---|
705 | case 5: |
---|
706 | mes "[Item Exchange Helper]"; |
---|
707 | mes "You can exchange"; |
---|
708 | mes "300 Turbo Track Points"; |
---|
709 | mes "for ^3131FF1 Gift Box^000000. Please enter"; |
---|
710 | mes "the number of Gift Boxes"; |
---|
711 | mes "that you'd like to receive."; |
---|
712 | mes "To cancel, enter ''^3355FF0^000000.''"; |
---|
713 | next; |
---|
714 | input .@input; |
---|
715 | if (.@input == 0) { |
---|
716 | mes "[Item Exchange Helper]"; |
---|
717 | mes "You have"; |
---|
718 | mes "canceled"; |
---|
719 | mes "your request."; |
---|
720 | close; |
---|
721 | } |
---|
722 | else if (.@input < 0 || .@input > 10) { |
---|
723 | mes "[Item Exchange Helper]"; |
---|
724 | mes "Your request exceeds"; |
---|
725 | mes "the maximum limit. You"; |
---|
726 | mes "can only receive a maximum"; |
---|
727 | mes "of 10 Gift Boxes at once."; |
---|
728 | close; |
---|
729 | } |
---|
730 | else { |
---|
731 | set .@total_point,300 * .@input; |
---|
732 | if (.@total_point > tt_point) { |
---|
733 | mes "[Item Exchange Helper]"; |
---|
734 | mes "I'm sorry, but you do"; |
---|
735 | mes "not have enough Turbo"; |
---|
736 | mes "Track Points. Please check"; |
---|
737 | mes "the amount of Turbo Track"; |
---|
738 | mes "Points you have earned before"; |
---|
739 | mes "redeeming your points again."; |
---|
740 | close; |
---|
741 | } |
---|
742 | set tt_point,tt_point-.@total_point; |
---|
743 | getitem 644,.@input; //Gift_Box |
---|
744 | mes "[Item Exchange Helper]"; |
---|
745 | mes "Thank you for"; |
---|
746 | mes "your patronage."; |
---|
747 | mes "We hope you enjoy"; |
---|
748 | mes "your time here in"; |
---|
749 | mes "the Turbo Track~"; |
---|
750 | close; |
---|
751 | } |
---|
752 | case 6: |
---|
753 | mes "[Item Exchange Helper]"; |
---|
754 | mes "You can exchange"; |
---|
755 | mes "400 Turbo Track Points"; |
---|
756 | mes "for ^3131FF1 Speed Potion^000000. Please"; |
---|
757 | mes "enter the number of potions"; |
---|
758 | mes "that you'd like to receive."; |
---|
759 | mes "To cancel, enter ''^3355FF0^000000.''"; |
---|
760 | next; |
---|
761 | input .@input; |
---|
762 | if (.@input == 0) { |
---|
763 | mes "[Item Exchange Helper]"; |
---|
764 | mes "You have"; |
---|
765 | mes "canceled"; |
---|
766 | mes "your request."; |
---|
767 | close; |
---|
768 | } |
---|
769 | else if (.@input < 0 || .@input > 10) { |
---|
770 | mes "[Item Exchange Helper]"; |
---|
771 | mes "Your request exceeds"; |
---|
772 | mes "the maximum limit. You"; |
---|
773 | mes "can only receive a maximum"; |
---|
774 | mes "of 10 potions at once."; |
---|
775 | close; |
---|
776 | } |
---|
777 | else { |
---|
778 | set .@total_point,400 * .@input; |
---|
779 | if (.@total_point > tt_point) { |
---|
780 | mes "[Item Exchange Helper]"; |
---|
781 | mes "I'm sorry, but you do"; |
---|
782 | mes "not have enough Turbo"; |
---|
783 | mes "Track Points. Please check"; |
---|
784 | mes "the amount of Turbo Track"; |
---|
785 | mes "Points you have earned before"; |
---|
786 | mes "redeeming your points again."; |
---|
787 | close; |
---|
788 | } |
---|
789 | set tt_point,tt_point-.@total_point; |
---|
790 | getitem 12016,.@input; //Speed_Up_Potion |
---|
791 | mes "[Item Exchange Helper]"; |
---|
792 | mes "Thank you for"; |
---|
793 | mes "your patronage."; |
---|
794 | mes "We hope you enjoy"; |
---|
795 | mes "your time here in"; |
---|
796 | mes "the Turbo Track~"; |
---|
797 | close; |
---|
798 | } |
---|
799 | case 7: |
---|
800 | mes "[Item Exchange Helper]"; |
---|
801 | mes "This Item Exchange"; |
---|
802 | mes "Service is brought"; |
---|
803 | mes "to you by..."; |
---|
804 | next; |
---|
805 | mes "[Item Exchange Helper]"; |
---|
806 | mes "This Item Exchange Service"; |
---|
807 | mes "is brought to you by the Kafra"; |
---|
808 | mes "Corporation, Blacksmith Guild"; |
---|
809 | mes "and the Comodo Casino and"; |
---|
810 | mes "the Al De Baran Guild Castle"; |
---|
811 | mes "Management Luina."; |
---|
812 | close; |
---|
813 | } |
---|
814 | case 2: |
---|
815 | mes "[Item Exchange Helper]"; |
---|
816 | mes "Turbo Track Points can be"; |
---|
817 | mes "converted into Arena Points."; |
---|
818 | mes "You can save a maximum of"; |
---|
819 | mes "^4D4DFF29,000 Turbo Track Points."; |
---|
820 | next; |
---|
821 | mes "[Item Exchange Helper]"; |
---|
822 | mes "Before reaching the maximum"; |
---|
823 | mes "amount of Turbo Track Points,"; |
---|
824 | mes "you might want to spend some"; |
---|
825 | mes "of them so that you can keep"; |
---|
826 | mes "getting your point rewards after winning Turbo Track races."; |
---|
827 | close; |
---|
828 | } |
---|
829 | } |
---|
830 | } |
---|
831 | |
---|
832 | turbo_room,106,117,3 script Point Manager#tt 833,{ |
---|
833 | mes "[Turbo Track Point Manager]"; |
---|
834 | mes "Good day."; |
---|
835 | mes "Did you enjoy your"; |
---|
836 | mes "time in Turbo Track?"; |
---|
837 | mes "How may I be of"; |
---|
838 | mes "assistance?"; |
---|
839 | next; |
---|
840 | switch(select("Check Points:Convert Points:^660000Conversion Info^000000")) { |
---|
841 | case 1: |
---|
842 | mes "[Turbo Track Point Manager]"; |
---|
843 | mes "" + strcharinfo(0) + ","; |
---|
844 | mes "you currently have"; |
---|
845 | mes "" + tt_point + " Turbo Track Points"; |
---|
846 | mes "and " + arena_point + " Arena Points."; |
---|
847 | close; |
---|
848 | case 2: |
---|
849 | mes "[Turbo Track Point Manager]"; |
---|
850 | mes "" + strcharinfo(0) + ","; |
---|
851 | mes "you currently have"; |
---|
852 | mes "" + tt_point + " Turbo Track Points"; |
---|
853 | mes "and " + arena_point + " Arena Points."; |
---|
854 | next; |
---|
855 | mes "[Turbo Track Point Manager]"; |
---|
856 | mes "Please choose from among the following Arena Point conversions. When converting more than"; |
---|
857 | mes "10 Arena Points at once, you"; |
---|
858 | mes "can only convert Arena Points"; |
---|
859 | mes "in ^4D4DFFmultiples of 10^000000."; |
---|
860 | next; |
---|
861 | switch(select("2 AP -> 1 TTP:4 AP -> 2 TTP:6 AP -> 3 TTP:8 AP -> 4 TTP:10 AP or more:Cancel")) { |
---|
862 | case 1: |
---|
863 | callsub S_ExchangePoints,28999,2,1; |
---|
864 | case 2: |
---|
865 | callsub S_ExchangePoints,28998,4,2; |
---|
866 | case 3: |
---|
867 | callsub S_ExchangePoints,28997,6,2; |
---|
868 | case 4: |
---|
869 | callsub S_ExchangePoints,28996,8,4; |
---|
870 | case 5: |
---|
871 | mes "[Turbo Track Point Manager]"; |
---|
872 | mes "Please enter the number of times you wish to convert 10 Arena Points into Turbo Track Points. The largest value you may enter"; |
---|
873 | mes "is 20. To cancel, enter '^3355FF0^000000.'"; |
---|
874 | next; |
---|
875 | input .@input; |
---|
876 | if (.@input == 0) { |
---|
877 | mes "[Turbo Track Point Manager]"; |
---|
878 | mes "You have"; |
---|
879 | mes "canceled"; |
---|
880 | mes "your request."; |
---|
881 | close; |
---|
882 | } |
---|
883 | else if (.@input > 20) { |
---|
884 | mes "[Turbo Track Point Manager]"; |
---|
885 | mes "Your request exceeds"; |
---|
886 | mes "the maximum limit. Please"; |
---|
887 | mes "enter a value no greater than 20."; |
---|
888 | close; |
---|
889 | } |
---|
890 | else { |
---|
891 | set .@want_point1,10 * .@input; |
---|
892 | set .@want_point,5 * .@input; |
---|
893 | set .@my_turbo_all,tt_point+.@want_point; |
---|
894 | set .@my_arena_all,arena_point-.@want_point1; |
---|
895 | if (.@my_turbo_all > 28999) { |
---|
896 | mes "[Turbo Track Point Manager]"; |
---|
897 | mes "Unfortunately, your Turbo Track Points will exceed the maximum limit if we proceed with point conversion. Please spend more"; |
---|
898 | mes "of your Turbo Track Points before using this service. Thank you."; |
---|
899 | close; |
---|
900 | } |
---|
901 | if (.@my_arena_all < 0) { |
---|
902 | mes "[Turbo Track Point Manager]"; |
---|
903 | mes "I am sorry, but you do"; |
---|
904 | mes "not have enough Arena Points"; |
---|
905 | mes "to perform this Turbo Track"; |
---|
906 | mes "Point conversion."; |
---|
907 | close; |
---|
908 | } |
---|
909 | else { |
---|
910 | mes "[Turbo Track Point Manager]"; |
---|
911 | mes "You have converted"; |
---|
912 | mes "10 Arena Points into"; |
---|
913 | mes "Turbo Track Points " + .@input + " times."; |
---|
914 | mes "A total of " + .@want_point1 + " Arena Points"; |
---|
915 | mes "has been converted into"; |
---|
916 | mes "" + .@want_point +" Turbo Track Points."; |
---|
917 | set arena_point,.@my_arena_all; //arena_point |
---|
918 | set tt_point,.@my_turbo_all; |
---|
919 | next; |
---|
920 | mes "[Turbo Track Point Manager]"; |
---|
921 | mes "" + strcharinfo(0) + ","; |
---|
922 | mes "you now have"; |
---|
923 | mes "^00688B" + tt_point + "^000000 Turbo Track Points"; |
---|
924 | mes "and ^4682B4" + arena_point + "^000000 Arena Points."; |
---|
925 | mes "Thank you for your patronage."; |
---|
926 | close; |
---|
927 | } |
---|
928 | } |
---|
929 | case 6: |
---|
930 | mes "[Turbo Track Point Manager]"; |
---|
931 | mes "You have"; |
---|
932 | mes "canceled"; |
---|
933 | mes "your request."; |
---|
934 | close; |
---|
935 | } |
---|
936 | case 3: |
---|
937 | // There is no dialog for this option. |
---|
938 | // It's possible it's missing, or maybe |
---|
939 | // the dialog was never translated. XD |
---|
940 | close; |
---|
941 | } |
---|
942 | |
---|
943 | S_ExchangePoints: |
---|
944 | if (tt_point > getarg(0)) { |
---|
945 | mes "[Turbo Track Point Manager]"; |
---|
946 | mes "Unfortunately, your Turbo Track Points will exceed the maximum limit if we proceed with point conversion. Please spend more"; |
---|
947 | mes "of your Turbo Track Points before using this service. Thank you."; |
---|
948 | close; |
---|
949 | } |
---|
950 | if (arena_point >= getarg(1)) { |
---|
951 | mes "[Turbo Track Point Manager]"; |
---|
952 | mes "As requested,"; |
---|
953 | mes "2 Arena Points"; |
---|
954 | mes "have been converted"; |
---|
955 | mes "into 1 Turbo Track Point."; |
---|
956 | set arena_point,arena_point-getarg(1); |
---|
957 | set tt_point,tt_point+getarg(2); |
---|
958 | next; |
---|
959 | mes "[Turbo Track Point Manager]"; |
---|
960 | mes "" + strcharinfo(0) + ","; |
---|
961 | mes "you now have"; |
---|
962 | mes "^00688B" + tt_point + "^000000 Turbo Track Points"; |
---|
963 | mes "and ^4682B4" + arena_point + "^000000 Arena Points."; |
---|
964 | mes "Thank you for your patronage."; |
---|
965 | close; |
---|
966 | } |
---|
967 | else { |
---|
968 | mes "[Turbo Track Point Manager]"; |
---|
969 | mes "I'm sorry, but you do not have enough Arena Points. You need"; |
---|
970 | mes "at least 2 Arena Points in order"; |
---|
971 | mes "to use this service."; |
---|
972 | close; |
---|
973 | } |
---|
974 | } |
---|
975 | |
---|
976 | alde_gld,183,204,0 script en_turbo 45,1,1,{ |
---|
977 | OnTouch: |
---|
978 | if (checkweight(1201,1) == 0) { |
---|
979 | mes "^3355FFWait a second!"; |
---|
980 | mes "Right now, you're carrying"; |
---|
981 | mes "too many items with you."; |
---|
982 | mes "Please come back after"; |
---|
983 | mes "putting storing some of your"; |
---|
984 | mes "things using the Kafra Service.^000000"; |
---|
985 | close; |
---|
986 | } |
---|
987 | set .@now_weight,MaxWeight-Weight; |
---|
988 | if ((BaseJob == Job_Knight || BaseJob == Job_Crusader) && checkriding()) { |
---|
989 | if (.@now_weight < 20000) { |
---|
990 | mes "[Helper]"; |
---|
991 | mes "Peco Pecos are prohibited"; |
---|
992 | mes "in the Turbo Track Arena."; |
---|
993 | mes "Please dismount from your"; |
---|
994 | mes "Peco Peco and you will receive"; |
---|
995 | mes "a Free Ticket for Peco Ride"; |
---|
996 | mes "for retrieving your Peco Peco."; |
---|
997 | close2; |
---|
998 | warp "alde_gld",183,199; |
---|
999 | end; |
---|
1000 | } |
---|
1001 | else { |
---|
1002 | setriding 0; |
---|
1003 | getitem 7310,1; //Free_Peco_Ticket |
---|
1004 | warp "turbo_room",100,65; |
---|
1005 | } |
---|
1006 | } |
---|
1007 | else |
---|
1008 | warp "turbo_room",100,65; |
---|
1009 | end; |
---|
1010 | } |
---|
1011 | |
---|
1012 | alde_gld,186,199,3 script Turbo Track Guide#Entran 845,{ |
---|
1013 | mes "[Guide]"; |
---|
1014 | mes "Welcome to"; |
---|
1015 | mes "the Al De Baran"; |
---|
1016 | mes "Turbo Track~"; |
---|
1017 | next; |
---|
1018 | mes "[Guide]"; |
---|
1019 | mes "Peco Pecos are prohibited inside the Turbo Track Arena. But anyone riding on a Peco Peco will receive a Free Peco Peco Mount Ticket at the Turbo Track Entrance and automatically dismount."; |
---|
1020 | next; |
---|
1021 | mes "[Guide]"; |
---|
1022 | mes "Well then,"; |
---|
1023 | mes "enjoy your time"; |
---|
1024 | mes "in Turbo Track~!"; |
---|
1025 | close; |
---|
1026 | } |
---|
1027 | |
---|
1028 | alde_gld,181,199,5 script Peco Peco Manager 845,{ |
---|
1029 | mes "[Peco Peco Manager]"; |
---|
1030 | if (BaseJob == Job_Knight || BaseJob == Job_Crusader) { |
---|
1031 | mes "Welcome, would you like"; |
---|
1032 | mes "to retrieve your Peco Peco?"; |
---|
1033 | mes "Please show me your Free"; |
---|
1034 | mes "Ticket for Peco Ride. You"; |
---|
1035 | mes "may also pay a rental fee"; |
---|
1036 | mes "of 2,500 zeny."; |
---|
1037 | next; |
---|
1038 | switch(select("Use:Cancel")) { |
---|
1039 | case 1: |
---|
1040 | if (getskilllv(63) == 0) { |
---|
1041 | mes "[Peco Peco Manager]"; |
---|
1042 | mes "I'm sorry, but you're"; |
---|
1043 | mes "not eligible for this"; |
---|
1044 | mes "service. Please go learn"; |
---|
1045 | mes "the Peco Peco Ride skill first."; |
---|
1046 | close; |
---|
1047 | } |
---|
1048 | else { |
---|
1049 | if (checkriding()) { |
---|
1050 | mes "[Peco Peco Manager]"; |
---|
1051 | mes "You're already"; |
---|
1052 | mes "mounted on a"; |
---|
1053 | mes "Peco Peco."; |
---|
1054 | mes "Thank you~"; |
---|
1055 | close; |
---|
1056 | } |
---|
1057 | else { |
---|
1058 | if (countitem(7310) < 1 && Zeny < 2500) { |
---|
1059 | mes "[Peco Peco Manager]"; |
---|
1060 | mes "I'm sorry, but you"; |
---|
1061 | mes "don't have a Free Ticket"; |
---|
1062 | mes "for Peco Ride or 2,500 zeny."; |
---|
1063 | mes "to use the Peco rental service."; |
---|
1064 | close; |
---|
1065 | } |
---|
1066 | else { |
---|
1067 | if (countitem(7310) > 0) |
---|
1068 | delitem 7310,1; //Free_Peco_Ticket |
---|
1069 | else |
---|
1070 | set zeny,zeny-2500; |
---|
1071 | setriding; |
---|
1072 | mes "[Peco Peco Manager]"; |
---|
1073 | mes "Thank you for"; |
---|
1074 | mes "your patronage~"; |
---|
1075 | close; |
---|
1076 | } |
---|
1077 | } |
---|
1078 | } |
---|
1079 | case 2: |
---|
1080 | mes "[Peco Peco Manager]"; |
---|
1081 | mes "Are you going"; |
---|
1082 | mes "back to race in"; |
---|
1083 | mes "the Turbo Track?"; |
---|
1084 | mes "Good luck!"; |
---|
1085 | close; |
---|
1086 | } |
---|
1087 | } |
---|
1088 | else { |
---|
1089 | mes "Thank you for"; |
---|
1090 | mes "visiting Al De Baran's"; |
---|
1091 | mes "Turbo Track~"; |
---|
1092 | close; |
---|
1093 | } |
---|
1094 | } |
---|
1095 | |
---|
1096 | alde_gld,178,180,0 script Sign#TBT 837,{ |
---|
1097 | mes "[Al De Baran Turbo Track]"; |
---|
1098 | mes "This way..."; |
---|
1099 | mes "to the Al De Baran"; |
---|
1100 | mes "Turbo Track Arena!"; |
---|
1101 | next; |
---|
1102 | mes "[Al De Baran Turbo Track]"; |
---|
1103 | mes "Turbo Track is"; |
---|
1104 | mes "an arena where"; |
---|
1105 | mes "participants compete to be the first to reach the Finish Line! Don't miss the chance to race against your friends!"; |
---|
1106 | close; |
---|
1107 | } |
---|