1 //===== rAthena Script =======================================
3 //===== By: ==================================================
5 //===== Current Version: =====================================
7 //===== Compatible With: =====================================
9 //===== Description: =========================================
10 //= Players train monsters and battle other players.
11 //= Experience can be earned and monsters upgraded.
12 //===== Additional Comments: =================================
13 //= To add monsters, add lines after the commends labled:
14 //= '// #. ---Change to Add Monsters--- //'
15 //= There are 6 steps to add a monster at the moment.
17 //= ---------------------------------------------------------
18 //= Script is messy! Be careful!
19 //= 1.1.2 Changed all gmcommand to atcommand as Poki#3 suggested. [Vicious]
20 //= 1.1.3 Removed Duplicate Names [Silent]
21 //= 1.1.4 Fixed SummonPad syntax. [KarLaeda]
22 //= 1.1.5 Some cleanup & optimization [KarLaeda]
23 //= 1.2 Replaced effect numerics with constants. [Samuray22]
24 //============================================================
27 prontera,158,193,6 script Monster Arena 702,{
28 mes "[Monster Arena]";
29 mes "Would you like to enter the Monster Arena?";
30 mes "Currently ^FF0000" + getmapusers("gon_test") + "^000000 players";
31 mes "^FF0000Note:^000000 Pecos, Falcons and Carts will be lost on entry.";
34 menu "Enter",-,"Information",L_Info,"Cancel",L_Exit;
37 savepoint "gon_test",56,99;
39 warp "gon_test",57,99;
43 mes "[Monster Arena]";
44 mes "Come back any time.";
48 mes "[Monster Arena]";
49 mes "You must purchase a pet from the Monster Tamer to start fighting.";
51 mes "[Monster Arena]";
52 mes "Then talk to the Usher and tell him you would like to compete.";
54 mes "[Monster Arena]";
55 mes "Talk to the referee to summon your monster.";
56 mes "Once your monster has fought, you must talk to the Usher again and choose to spectate.";
58 mes "[Monster Arena]";
59 mes "Talk to the Monster Trainer, he will ask you to heal your pet.";
61 mes "[Monster Arena]";
62 mes "To do this, click the Nurse repearedly until it says your pet is healed.";
64 mes "[Monster Arena]";
65 mes "The more monsters you kill, the more exp you get and the quicker you can upgrade.";
67 mes "[Monster Arena]";
68 mes "The stronger your monster is, the longer it will take to summon again.";
73 // Monster Summon Function //
74 function script monstersummon {
75 // 1. ---Change to Add Monsters--- //
76 if (#monster == 10) summon strcharinfo(0) + "'s Poring",1002, "OnPoringKilled";
77 if (#monster == 20) summon strcharinfo(0) + "'s Fabre",1007, "OnFaberKilled";
78 if (#monster == 30) summon strcharinfo(0) + "'s Lunatic",1063, "OnLunaticKilled";
79 if (#monster == 31) summon strcharinfo(0) + "'s Drops",1113, "OnDropsKilled";
80 if (#monster == 32) summon strcharinfo(0) + "'s Picky",1049, "OnPickyKilled";
81 if (#monster == 40) summon strcharinfo(0) + "'s ChonChon",1011, "OnChonChonKilled";
82 if (#monster == 41) summon strcharinfo(0) + "'s Super Picky",1050, "OnSPickyKilled";
83 if (#monster == 42) summon strcharinfo(0) + "'s Willow",1010, "OnWillowKilled";
84 if (#monster == 50) summon strcharinfo(0) + "'s Roda Frog",1012, "OnRodaKilled";
85 if (#monster == 51) summon strcharinfo(0) + "'s Condor",1009, "OnCondorKilled";
86 if (#monster == 60) summon strcharinfo(0) + "'s Thief Bug Larva",1051, "OnThiefKilled";
87 if (#monster == 70) summon strcharinfo(0) + "'s Savage Babe",1167, "OnSavageKilled";
88 if (#monster == 80) summon strcharinfo(0) + "'s Familiar",1005, "OnFamiliarKilled";
89 if (#monster == 81) summon strcharinfo(0) + "'s Hornet",1004, "OnHornetKilled";
90 if (#monster == 90) summon strcharinfo(0) + "'s Desert Wolf Puppy",1107, "OnPuppyKilled";
91 if (#monster == 91) summon strcharinfo(0) + "'s Spore",1014, "OnSporeKilled";
92 if (#monster == 92) summon strcharinfo(0) + "'s Rocker",1052, "OnRockerKilled";
93 if (#monster == 100) summon strcharinfo(0) + "'s Skeleton",1076, "OnSkeletonKilled";
94 if (#monster == 101) summon strcharinfo(0) + "'s Plankton",1161, "OnPlanktonKilled";
95 if (#monster == 102) summon strcharinfo(0) + "'s Antonio",1247, "OnAntonioKilled";
96 if (#monster == 103) summon strcharinfo(0) + "'s Thief Bug Female",1053, "OnThiefFemaleKilled";
101 - script monsterreferee 61,{
102 if (@fighting == 1) end;
103 if (@battle == 1) goto L_Start;
108 mes "Your monster is:";
110 // 2. ---Change to Add Monsters--- //
111 if (#monster == 10) mes "Poring";
112 if (#monster == 20) mes "Faber";
113 if (#monster == 30) mes "Lunatic";
114 if (#monster == 31) mes "Drops";
115 if (#monster == 32) mes "Picky";
116 if (#monster == 40) mes "ChonChon";
117 if (#monster == 41) mes "Super Picky";
118 if (#monster == 42) mes "Willow";
119 if (#monster == 50) mes "Roda Frog";
120 if (#monster == 51) mes "Condor";
121 if (#monster == 60) mes "Thief Bug Larva";
122 if (#monster == 70) mes "Savage Babe";
123 if (#monster == 80) mes "Familiar";
124 if (#monster == 81) mes "Hornet";
125 if (#monster == 90) mes "Desert Wolf Puppy";
126 if (#monster == 91) mes "Spore";
127 if (#monster == 92) mes "Rocker";
128 if (#monster == 100) mes "Skeleton";
129 if (#monster == 101) mes "Plankton";
130 if (#monster == 102) mes "Antonio";
131 if (#monster == 103) mes "Thief Bug Female";
133 mes "Would you like to fight?";
135 menu "Fight",-,"Cancel",L_Exit;
139 set @special,rand (100); // Chance of special summon
140 if (@special == 1) goto Special1;
141 if (@special == 2) goto Special2;
142 if (@special == 3) goto Special3;
143 if (@special == 4) goto Special4;
144 if (@special == 5) goto Special5;
146 callfunc "monstersummon";
149 // Special Summons //
151 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
152 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
153 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
154 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
155 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
156 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
157 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
158 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
159 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
160 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
161 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
162 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
163 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
164 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
165 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
166 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
167 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
168 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
169 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
170 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
171 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
172 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
173 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
174 summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
178 summon strcharinfo(0) + "'s Mastering",1090, "OnSpecialKilled";
182 summon strcharinfo(0) + "'s Eclipse",1093, "OnSpecialKilled";
186 summon strcharinfo(0) + "'s Dragon Fly",1091, "OnSpecialKilled";
190 summon strcharinfo(0) + "'s Toad",1089, "OnSpecialKilled";
198 gon_test,56,91,6 duplicate(monsterreferee) Referee#01 61
202 gon_test,58,94,6 script Usher 86,{
205 mes "What would you like to do?";
207 menu "^0000FFSpectate",L_Spec,"^FF0000Compete^000000",-,"Return to Town",L_Exit,"Cancel",L_Cancel;
209 if (#monster == 0) goto L_NoMon;
210 if (#heal == 1) goto L_Heal;
212 if (#monster < 40) goto L_Low;
213 if (#monster > 30 && #monster < 80) goto L_Med;
214 if (#monster > 70) goto L_High;
217 menu "Level 1-3",L_1to3,"^FF0000All Levels",L_High;
221 menu "Level 4-7",L_4to6,"^FF0000All Levels",L_High;
226 savepoint "gon_test",56,99;
228 atcommand "@option 64 0 64";
229 warp "gon_test",72,87;
234 savepoint "gon_test",56,99;
236 atcommand "@option 64 0 64";
237 warp "gon_test",57,86;
242 savepoint "gon_test",56,99;
244 atcommand "@option 64 0 64";
245 warp "gon_test",43,87;
250 savepoint "prontera",149,186;
252 atcommand "@option 0 0 0";
253 warp "prontera",149,186;
258 savepoint "gon_test",56,99;
260 atcommand "@option 0 0 0";
261 warp "gon_test",57,99;
266 mes "You haven't got a monster, you can only spectate.";
271 mes "You have to heal your monster before you can fight again.";
278 // Monster Trainer //
279 gon_test,52,103,6 script Monster Trainer 87,{
280 mes "[Monster Trainer]";
281 if (#monster != 0) goto L_Mon;
283 mes "Welcome to the monster arena, would you like to start training?";
285 menu "Yes",-,"No",L_Exit;
287 mes "[Monster Trainer]";
288 mes "New trainers may only start with Porings.";
289 mes "They cost 1000z, Would you like to buy one?";
291 menu "Yes",-,"No",L_Exit;
293 if (Zeny < 1000) goto L_NoZeny;
296 mes "[Monster Trainer]";
297 mes "Congratulations!";
298 mes "When your Poring earns enough experience, talk to me to upgrade.";
302 mes "Welcome back, " + strcharinfo(0) + ".";
303 mes "Your monster has " + #monpoints + " exp points.";
305 if (@fighting == 1) goto L_Heal;
306 menu "Upgrade Monster",L_Upgrade,"Sell Experience",L_Sell,"^FF0000Abandon Monster^000000",L_Abandon,"Cancel",L_Exit;
309 mes "[Monster Trainer]";
310 mes "Are you sure you want to abandon your monster?";
312 menu "Yes",-,"No",L_Exit;
315 mes "[Monster Trainer]";
316 mes "Monster released into the wild.";
320 mes "[Monster Trainer]";
321 mes "You can sell your monster's experience for 100z each.";
323 menu "Sell",-,"Cancel",L_Exit;
324 mes "[Monster Trainer]";
325 mes "You have: ^FF0000" + #monpoints + "^000000 experience points";
326 mes "How many would you like to sell?";
329 if (.@sellexp > #monpoints) goto L_NoExp;
330 set #monpoints,#monpoints-.@sellexp;
331 set .@sellearn,100*.@sellexp; // Price of exp
332 set Zeny, Zeny+.@sellearn;
333 mes "[Monster Trainer]";
334 mes "You earned ^0000FF" + .@sellearn + "^000000z.";
339 mes "[Monster Trainer]";
340 mes "You do not have enough experience.";
344 // Monster Upgrades //
346 mes "[Monster Trainer]";
347 // 3. ---Change to Add Monsters - May not be required--- //
348 if (#monster > 1 && #monster < 20) mes "You need 10 exp points to upgrade your monster.";
349 if (#monster > 19 && #monster < 30) mes "You need 20 exp points to upgrade your monster.";
350 if (#monster > 29 && #monster < 40) mes "You need 40 exp points to upgrade your monster.";
351 if (#monster > 39 && #monster < 50) mes "You need 80 exp points to upgrade your monster.";
352 if (#monster > 49 && #monster < 60) mes "You need 160 exp points to upgrade your monster.";
353 if (#monster > 59 && #monster < 70) mes "You need 320 exp points to upgrade your monster.";
354 if (#monster > 69 && #monster < 80) mes "You need 640 exp points to upgrade your monster.";
355 if (#monster > 79 && #monster < 90) mes "You need 1280 exp points to upgrade your monster.";
356 if (#monster > 89 && #monster < 100) mes "You need 2560 exp points to upgrade your monster.";
358 menu "Continue",-,"Cancel",L_Exit;
359 mes "[Monster Trainer]";
361 // 4. ---Change to Add Monsters - May not be required--- //
362 if (#monster > 1 && #monster < 20 && #monpoints > 9) goto L_Up1;
363 if (#monster > 19 && #monster < 30 && #monpoints > 19) goto L_Up2;
364 if (#monster > 29 && #monster < 40 && #monpoints > 39) goto L_Up3;
365 if (#monster > 39 && #monster < 50 && #monpoints > 79) goto L_Up4;
366 if (#monster > 49 && #monster < 60 && #monpoints > 159) goto L_Up5;
367 if (#monster > 59 && #monster < 70 && #monpoints > 319) goto L_Up6;
368 if (#monster > 69 && #monster < 80 && #monpoints > 639) goto L_Up7;
369 if (#monster > 79 && #monster < 90 && #monpoints > 1279) goto L_Up8;
370 if (#monster > 89 && #monster < 100 && #monpoints > 2559) goto L_Up9;
372 mes "Unable to upgrade.";
375 // 5. ---Change to Add Monsters--- //
378 set #monpoints,#monpoints-10;
379 mes "Upgraded to Fabre!";
383 mes "Which monster would you like to upgrade to?";
385 menu "Lunatic",U_Lunatic,"Drops",U_Drops,"Picky",U_Picky;
389 set #monpoints,#monpoints-20;
390 mes "[Monster Trainer]";
391 mes "Upgraded to Drops!";
396 set #monpoints,#monpoints-20;
397 mes "[Monster Trainer]";
398 mes "Upgraded to Picky!";
403 set #monpoints,#monpoints-20;
404 mes "[Monster Trainer]";
405 mes "Upgraded to Lunatic!";
409 mes "Which monster would you like to upgrade to?";
411 menu "ChonChon",U_ChonChon,"Super Picky",U_SPicky,"Willow",U_Willow;
415 set #monpoints,#monpoints-40;
416 mes "[Monster Trainer]";
417 mes "Upgraded to ChonChon!";
422 set #monpoints,#monpoints-40;
423 mes "[Monster Trainer]";
424 mes "Upgraded to Super Picky!";
429 set #monpoints,#monpoints-40;
430 mes "[Monster Trainer]";
431 mes "Upgraded to Willow!";
435 mes "Which monster would you like to upgrade to?";
437 menu "Condor",U_Condor,"Roda Frog",U_Roda;
441 set #monpoints,#monpoints-80;
442 mes "[Monster Trainer]";
443 mes "Upgraded to Condor!";
448 set #monpoints,#monpoints-80;
449 mes "[Monster Trainer]";
450 mes "Upgraded to Roda Frog!";
455 set #monpoints,#monpoints-160;
456 mes "Upgraded to Thief Bug Larva!";
461 set #monpoints,#monpoints-320;
462 mes "Upgraded to Savage Babe!";
466 mes "Which monster would you like to upgrade to?";
468 menu "Familiar",U_Familiar,"Hornet",U_Hornet;
472 set #monpoints,#monpoints-640;
473 mes "[Monster Trainer]";
474 mes "Upgraded to Hornet!";
479 set #monpoints,#monpoints-640;
480 mes "[Monster Trainer]";
481 mes "Upgraded to Familiar!";
485 mes "[Monster Trainer]";
486 mes "Which monster would you like to upgrade to?";
488 menu "Desert Wolf Puppy",U_Puppy,"Spore",U_Spore,"Rocker",U_Rocker;
492 set #monpoints,#monpoints-1280;
493 mes "[Monster Trainer]";
494 mes "Upgraded to Spore!";
499 set #monpoints,#monpoints-1280;
500 mes "[Monster Trainer]";
501 mes "Upgraded to Rocker!";
506 set #monpoints,#monpoints-1280;
507 mes "[Monster Trainer]";
508 mes "Upgraded to Desert Wolf Puppy!";
512 mes "Which monster would you like to upgrade to?";
514 menu "Skeleton",U_Skeleton,"Antonio",U_Antonio,"Plankton",U_Plankton,"Thief Bug Female",U_ThiefFemale;
518 set #monpoints,#monpoints-2560;
519 mes "[Monster Trainer]";
520 mes "Upgraded to Plankton!";
525 set #monpoints,#monpoints-2560;
526 mes "[Monster Trainer]";
527 mes "Upgraded to Antonio!";
532 set #monpoints,#monpoints-2560;
533 mes "[Monster Trainer]";
534 mes "Upgraded to Thief Bug Female!";
539 set #monpoints,#monpoints-2560;
540 mes "[Monster Trainer]";
541 mes "Upgraded to Skeleton!";
545 mes "[Monster Trainer]";
546 mes "You don't have enough zeny!";
550 mes "[Monster Trainer]";
555 mes "[Monster Trainer]";
556 mes "Your monster needs to heal.";
557 mes "It will heal faster if you click the nurse faster.";
563 // 6/Final. ---Change to Add Monsters--- //
564 gon_test,56,91,6 script OnPoringKilled -1,{
565 if (@marena == 0) callfunc "illegalkill";
566 set #monpoints,#monpoints+1;
567 announce "You killed a Poring - Gained 1 exp",19;
571 gon_test,56,91,6 script OnFaberKilled -1,{
572 if (@marena == 0) callfunc "illegalkill";
573 set #monpoints,#monpoints+2;
574 announce "You killed a Faber - Gained 2 exp",19;
578 gon_test,56,91,6 script OnLunaticKilled -1,{
579 if (@marena == 0) callfunc "illegalkill";
580 set #monpoints,#monpoints+4;
581 announce "You killed a Lunatic - Gained 4 exp",19;
585 gon_test,56,91,6 script OnDropsKilled -1,{
586 if (@marena == 0) callfunc "illegalkill";
587 set #monpoints,#monpoints+4;
588 announce "You killed a Drops - Gained 4 exp",19;
592 gon_test,56,91,6 script OnPickyKilled -1,{
593 if (@marena == 0) callfunc "illegalkill";
594 set #monpoints,#monpoints+4;
595 announce "You killed a Picky - Gained 4 exp",19;
599 gon_test,56,91,6 script OnChonChonKilled -1,{
600 if (@marena == 0) callfunc "illegalkill";
601 set #monpoints,#monpoints+8;
602 announce "You killed a ChonChon - Gained 8 exp",19;
606 gon_test,56,91,6 script OnSPickyKilled -1,{
607 if (@marena == 0) callfunc "illegalkill";
608 set #monpoints,#monpoints+8;
609 announce "You killed a Super Picky - Gained 8 exp",19;
613 gon_test,56,91,6 script OnWillowKilled -1,{
614 if (@marena == 0) callfunc "illegalkill";
615 set #monpoints,#monpoints+8;
616 announce "You killed a Willow - Gained 8 exp",19;
620 gon_test,56,91,6 script OnRodaKilled -1,{
621 if (@marena == 0) callfunc "illegalkill";
622 set #monpoints,#monpoints+16;
623 announce "You killed a Roda Frog - Gained 16 exp",19;
627 gon_test,56,91,6 script OnCondorKilled -1,{
628 if (@marena == 0) callfunc "illegalkill";
629 set #monpoints,#monpoints+16;
630 announce "You killed a Condor - Gained 16 exp",19;
634 gon_test,56,91,6 script OnThiefKilled -1,{
635 if (@marena == 0) callfunc "illegalkill";
636 set #monpoints,#monpoints+32;
637 announce "You killed a Theif Bug Larva - Gained 32 exp",19;
641 gon_test,56,91,6 script OnSavageKilled -1,{
642 if (@marena == 0) callfunc "illegalkill";
643 set #monpoints,#monpoints+64;
644 announce "You killed a Savage Babe - Gained 64 exp",19;
648 gon_test,56,91,6 script OnFamiliarKilled -1,{
649 if (@marena == 0) callfunc "illegalkill";
650 set #monpoints,#monpoints+128;
651 announce "You killed a Familiar - Gained 128 exp",19;
655 gon_test,56,91,6 script OnHornetKilled -1,{
656 if (@marena == 0) callfunc "illegalkill";
657 set #monpoints,#monpoints+128;
658 announce "You killed a Hornet - Gained 128 exp",19;
662 gon_test,56,91,6 script OnPuppyKilled -1,{
663 if (@marena == 0) callfunc "illegalkill";
664 set #monpoints,#monpoints+256;
665 announce "You killed a Desert Wolf Puppy - Gained 256 exp",19;
669 gon_test,56,91,6 script OnRockerKilled -1,{
670 if (@marena == 0) callfunc "illegalkill";
671 set #monpoints,#monpoints+256;
672 announce "You killed a Rocker - Gained 256 exp",19;
676 gon_test,56,91,6 script OnSporeKilled -1,{
677 if (@marena == 0) callfunc "illegalkill";
678 set #monpoints,#monpoints+256;
679 announce "You killed a Spore - Gained 256 exp",19;
683 gon_test,56,91,6 script OnSkeletonKilled -1,{
684 if (@marena == 0) callfunc "illegalkill";
685 set #monpoints,#monpoints+512;
686 announce "You killed a Skeleton - Gained 512 exp",19;
690 gon_test,56,91,6 script OnPlanktonKilled -1,{
691 if (@marena == 0) callfunc "illegalkill";
692 set #monpoints,#monpoints+512;
693 announce "You killed a Plankton - Gained 512 exp",19;
697 gon_test,56,91,6 script OnAntonioKilled -1,{
698 if (@marena == 0) callfunc "illegalkill";
699 set #monpoints,#monpoints+512;
700 announce "You killed an Antonio - Gained 512 exp",19;
704 gon_test,56,91,6 script OnThiefFemaleKilled -1,{
705 if (@marena == 0) callfunc "illegalkill";
706 set #monpoints,#monpoints+512;
707 announce "You killed a Thief Bug Female - Gained 512 exp",19;
711 gon_test,56,91,6 script OnSpecialKilled -1,{
712 if (@marena == 0) callfunc "illegalkill";
713 set #monpoints,#monpoints+512;
714 announce "You killed a Special Monster - Gained 1024 exp",19;
718 function script duelkill {
719 if (strcharinfo(0) != $@duelist1$ && strcharinfo(0) != $@duelist2$) end;
720 announce strcharinfo(0) + " won the Duel",1;
727 function script illegalkill {
728 announce "Illegal Kill by " + strcharinfo(0) + " Detected",1;
729 percentheal -100,-100;
734 gon_test,55,103,6 script Nurse 90,{
735 if (@battle == 1 || #heal == 0) goto L_NoHeal;
736 if (#heal == 1 && @healing < 100) goto L_Heal; //Total healing required
740 specialeffect2 EF_VALLENTINE2;
741 announce "Your monster has healed.",19;
745 set .@healrate,140 / #monster; //Rate of heal per click
746 set @healing,@healing + .@healrate;
750 announce "Your monster does not need healing yet.",19;
755 gon_test,57,86,5 script Summon Pad 1::SummonPad 111,2,2,{
759 warp "gon_test",57,99;
761 gon_test,43,87,5 duplicate(SummonPad) Summon Pad 2 111,2,2
762 gon_test,72,87,5 duplicate(SummonPad) Summon Pad 3 111,2,2
767 gon_test mapflag noskill
770 gon_test,58,103,5 script Duel Master#01 92,{
771 if ($@duelist1$ == "" || $@monster1 == 0) set $@duel,0;
773 if (#monster == 0) goto L_NoMon;
775 if ($@duel == 1) goto L_Waiting;
776 if ($@duel == 2) goto L_Dueling;
778 mes "There are currently no players dueling.";
780 menu "Join",-,"Spectate",L_Spec,"Cancel",L_Exit;
782 // Player 1 Enters Duel Area //
783 if (#heal == 1) goto L_NeedHeal;
784 if ($@duel == 1) goto L_Duel2;
786 if (#monster > 1 && #monster < 20) set $@monster1,1;
787 if (#monster > 19 && #monster < 30) set $@monster1,2;
788 if (#monster > 29 && #monster < 40) set $@monster1,3;
789 if (#monster > 39 && #monster < 50) set $@monster1,4;
790 if (#monster > 49 && #monster < 60) set $@monster1,5;
791 if (#monster > 59 && #monster < 70) set $@monster1,6;
792 if (#monster > 69 && #monster < 80) set $@monster1,7;
793 if (#monster > 79 && #monster < 90) set $@monster1,8;
794 if (#monster > 89 && #monster < 100) set $@monster1,9;
795 if (#monster > 99 && #monster < 110) set $@monster1,10;
796 set $@duelist1$,strcharinfo(0);
798 announce strcharinfo(0) + " [Monster Level: " + $@monster1 + "] is waiting for a duel",1;
799 atcommand "@option 64 0 64";
800 warp "gon_test",49,5;
804 mes "^0000FF " + $@duelist1$ + "^000000 [Monster Level: ^FF0000" + $@monster1 + "^000000]";
805 mes "Is waiting for an opponent";
807 menu "Join",-,"Spectate",L_Spec,"Cancel",L_Exit;
809 // Player 2 Enters Duel Area //
810 if (#heal == 1) goto L_NeedHeal;
812 if ($@duel == 2) goto L_Spec;
814 if (#monster > 1 && #monster < 20) set $@monster2,1;
815 if (#monster > 19 && #monster < 30) set $@monster2,2;
816 if (#monster > 29 && #monster < 40) set $@monster2,3;
817 if (#monster > 39 && #monster < 50) set $@monster2,4;
818 if (#monster > 49 && #monster < 60) set $@monster2,5;
819 if (#monster > 59 && #monster < 70) set $@monster2,6;
820 if (#monster > 69 && #monster < 80) set $@monster2,7;
821 if (#monster > 79 && #monster < 90) set $@monster2,8;
822 if (#monster > 89 && #monster < 100) set $@monster2,9;
823 if (#monster > 99 && #monster < 110) set $@monster2,10;
824 set $@duelist2$,strcharinfo(0);
826 announce strcharinfo(0) + " [Monster Level: " + $@monster2 + "] has joined the duel",1;
827 atcommand "@option 64 0 64";
828 warp "gon_test",49,5;
832 mes "^0000FF" + $@duelist1$ + "^000000 [Monster Level: ^0000FF" + $@monster1 + "^000000]";
834 mes "^FF0000" + $@duelist2$ + "^000000 [Monster Level: ^FF0000" + $@monster2 + "^000000]";
836 menu "Spectate",L_Spec,"Cancel",L_Exit;
840 atcommand "@option 64 0 64";
841 warp "gon_test",49,5;
851 mes "You haven't got a monster, you can't participate.";
856 mes "You need to heal before you can join.";
861 gon_test,42,8,5 script Duel Master#02 92,{
863 mes "Would you like to return?";
864 menu "Yes",L_Leave,"No",-;
869 if ($@duelist1$ == strcharinfo(0)) goto L_Leave1;
870 if ($@duelist2$ == strcharinfo(0)) goto L_Leave2;
873 atcommand "@option 0 0 0";
875 warp "gon_test",57,99;
882 announce strcharinfo(0) + " stopped dueling",1;
889 announce strcharinfo(0) + " stopped dueling",1;
893 gon_test,49,5,5 duplicate(SummonPad) Summon Pad 4 111,2,2
894 gon_test,55,8,6 duplicate(monsterreferee) Referee#02 61