monster_arena.txt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  1. //===== rAthena Script =======================================
  2. //= Monster vs Monster
  3. //===== By: ==================================================
  4. //= acky
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  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.
  16. //= Added Duel Room
  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. //============================================================
  25. // Entrance //
  26. prontera,158,193,6 script Monster Arena 702,{
  27. mes "[Monster Arena]";
  28. mes "Would you like to enter the Monster Arena?";
  29. mes "Currently ^FF0000" + getmapusers("gon_test") + "^000000 players";
  30. mes "^FF0000Note:^000000 Pecos, Falcons and Carts will be lost on entry.";
  31. L_Menu:
  32. next;
  33. menu "Enter",-,"Information",L_Info,"Cancel",L_Exit;
  34. set @marena,1;
  35. savepoint "gon_test",56,99;
  36. set @battle,0;
  37. warp "gon_test",57,99;
  38. close;
  39. L_Exit:
  40. mes "[Monster Arena]";
  41. mes "Come back any time.";
  42. close;
  43. L_Info:
  44. mes "[Monster Arena]";
  45. mes "You must purchase a pet from the Monster Tamer to start fighting.";
  46. next;
  47. mes "[Monster Arena]";
  48. mes "Then talk to the Usher and tell him you would like to compete.";
  49. next;
  50. mes "[Monster Arena]";
  51. mes "Talk to the referee to summon your monster.";
  52. mes "Once your monster has fought, you must talk to the Usher again and choose to spectate.";
  53. next;
  54. mes "[Monster Arena]";
  55. mes "Talk to the Monster Trainer, he will ask you to heal your pet.";
  56. next;
  57. mes "[Monster Arena]";
  58. mes "To do this, click the Nurse repearedly until it says your pet is healed.";
  59. next;
  60. mes "[Monster Arena]";
  61. mes "The more monsters you kill, the more exp you get and the quicker you can upgrade.";
  62. next;
  63. mes "[Monster Arena]";
  64. mes "The stronger your monster is, the longer it will take to summon again.";
  65. goto L_Menu;
  66. }
  67. // Monster Summon Function //
  68. function script monstersummon {
  69. // 1. ---Change to Add Monsters--- //
  70. if (#monster == 10) summon strcharinfo(0) + "'s Poring",1002, "OnPoringKilled";
  71. if (#monster == 20) summon strcharinfo(0) + "'s Fabre",1007, "OnFaberKilled";
  72. if (#monster == 30) summon strcharinfo(0) + "'s Lunatic",1063, "OnLunaticKilled";
  73. if (#monster == 31) summon strcharinfo(0) + "'s Drops",1113, "OnDropsKilled";
  74. if (#monster == 32) summon strcharinfo(0) + "'s Picky",1049, "OnPickyKilled";
  75. if (#monster == 40) summon strcharinfo(0) + "'s ChonChon",1011, "OnChonChonKilled";
  76. if (#monster == 41) summon strcharinfo(0) + "'s Super Picky",1050, "OnSPickyKilled";
  77. if (#monster == 42) summon strcharinfo(0) + "'s Willow",1010, "OnWillowKilled";
  78. if (#monster == 50) summon strcharinfo(0) + "'s Roda Frog",1012, "OnRodaKilled";
  79. if (#monster == 51) summon strcharinfo(0) + "'s Condor",1009, "OnCondorKilled";
  80. if (#monster == 60) summon strcharinfo(0) + "'s Thief Bug Larva",1051, "OnThiefKilled";
  81. if (#monster == 70) summon strcharinfo(0) + "'s Savage Babe",1167, "OnSavageKilled";
  82. if (#monster == 80) summon strcharinfo(0) + "'s Familiar",1005, "OnFamiliarKilled";
  83. if (#monster == 81) summon strcharinfo(0) + "'s Hornet",1004, "OnHornetKilled";
  84. if (#monster == 90) summon strcharinfo(0) + "'s Desert Wolf Puppy",1107, "OnPuppyKilled";
  85. if (#monster == 91) summon strcharinfo(0) + "'s Spore",1014, "OnSporeKilled";
  86. if (#monster == 92) summon strcharinfo(0) + "'s Rocker",1052, "OnRockerKilled";
  87. if (#monster == 100) summon strcharinfo(0) + "'s Skeleton",1076, "OnSkeletonKilled";
  88. if (#monster == 101) summon strcharinfo(0) + "'s Plankton",1161, "OnPlanktonKilled";
  89. if (#monster == 102) summon strcharinfo(0) + "'s Antonio",1247, "OnAntonioKilled";
  90. if (#monster == 103) summon strcharinfo(0) + "'s Thief Bug Female",1053, "OnThiefFemaleKilled";
  91. close;
  92. }
  93. // Referee //
  94. - script monsterreferee 61,{
  95. if (@fighting == 1) end;
  96. if (@battle == 1) goto L_Start;
  97. end;
  98. L_Start:
  99. mes "[Referee]";
  100. mes "Your monster is:";
  101. // 2. ---Change to Add Monsters--- //
  102. if (#monster == 10) mes "Poring";
  103. if (#monster == 20) mes "Faber";
  104. if (#monster == 30) mes "Lunatic";
  105. if (#monster == 31) mes "Drops";
  106. if (#monster == 32) mes "Picky";
  107. if (#monster == 40) mes "ChonChon";
  108. if (#monster == 41) mes "Super Picky";
  109. if (#monster == 42) mes "Willow";
  110. if (#monster == 50) mes "Roda Frog";
  111. if (#monster == 51) mes "Condor";
  112. if (#monster == 60) mes "Thief Bug Larva";
  113. if (#monster == 70) mes "Savage Babe";
  114. if (#monster == 80) mes "Familiar";
  115. if (#monster == 81) mes "Hornet";
  116. if (#monster == 90) mes "Desert Wolf Puppy";
  117. if (#monster == 91) mes "Spore";
  118. if (#monster == 92) mes "Rocker";
  119. if (#monster == 100) mes "Skeleton";
  120. if (#monster == 101) mes "Plankton";
  121. if (#monster == 102) mes "Antonio";
  122. if (#monster == 103) mes "Thief Bug Female";
  123. mes "Would you like to fight?";
  124. next;
  125. menu "Fight",-,"Cancel",L_Exit;
  126. set @fighting,1;
  127. set #heal,1;
  128. set @special,rand (100); // Chance of special summon
  129. if (@special == 1) goto Special1;
  130. if (@special == 2) goto Special2;
  131. if (@special == 3) goto Special3;
  132. if (@special == 4) goto Special4;
  133. if (@special == 5) goto Special5;
  134. callfunc "monstersummon";
  135. close;
  136. // Special Summons //
  137. Special1:
  138. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  139. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  140. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  141. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  142. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  143. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  144. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  145. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  146. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  147. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  148. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  149. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  150. summon strcharinfo(0) + "'s Assault Team",1002, "OnPoringKilled";
  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. close;
  163. Special2:
  164. summon strcharinfo(0) + "'s Mastering",1090, "OnSpecialKilled";
  165. close;
  166. Special3:
  167. summon strcharinfo(0) + "'s Eclipse",1093, "OnSpecialKilled";
  168. close;
  169. Special4:
  170. summon strcharinfo(0) + "'s Dragon Fly",1091, "OnSpecialKilled";
  171. close;
  172. Special5:
  173. summon strcharinfo(0) + "'s Toad",1089, "OnSpecialKilled";
  174. close;
  175. L_Exit:
  176. mes "[Referee]";
  177. mes "Alright";
  178. close;
  179. }
  180. gon_test,56,91,6 duplicate(monsterreferee) Referee#01 61
  181. // Usher //
  182. gon_test,58,94,6 script Usher 86,{
  183. set @marena,1;
  184. mes "[Usher]";
  185. mes "What would you like to do?";
  186. next;
  187. menu "^0000FFSpectate",L_Spec,"^FF0000Compete^000000",-,"Return to Town",L_Exit,"Cancel",L_Cancel;
  188. if (#monster == 0) goto L_NoMon;
  189. if (#heal == 1) goto L_Heal;
  190. if (#monster < 40) goto L_Low;
  191. if (#monster > 30 && #monster < 80) goto L_Med;
  192. if (#monster > 70) goto L_High;
  193. L_Low:
  194. menu "Level 1-3",L_1to3,"^FF0000All Levels",L_High;
  195. close;
  196. L_Med:
  197. menu "Level 4-7",L_4to6,"^FF0000All Levels",L_High;
  198. close;
  199. L_High:
  200. close2;
  201. savepoint "gon_test",56,99;
  202. set @battle,1;
  203. atcommand "@option 64 0 64";
  204. warp "gon_test",72,87;
  205. end;
  206. L_4to6:
  207. close2;
  208. savepoint "gon_test",56,99;
  209. set @battle,1;
  210. atcommand "@option 64 0 64";
  211. warp "gon_test",57,86;
  212. end;
  213. L_1to3:
  214. close2;
  215. savepoint "gon_test",56,99;
  216. set @battle,1;
  217. atcommand "@option 64 0 64";
  218. warp "gon_test",43,87;
  219. end;
  220. L_Exit:
  221. close2;
  222. savepoint "prontera",149,186;
  223. set @battle,0;
  224. atcommand "@option 0 0 0";
  225. warp "prontera",149,186;
  226. end;
  227. L_Spec:
  228. close2;
  229. savepoint "gon_test",56,99;
  230. set @battle,0;
  231. atcommand "@option 0 0 0";
  232. warp "gon_test",57,99;
  233. end;
  234. L_NoMon:
  235. mes "[Usher]";
  236. mes "You haven't got a monster, you can only spectate.";
  237. close;
  238. L_Heal:
  239. mes "[Usher]";
  240. mes "You have to heal your monster before you can fight again.";
  241. close;
  242. L_Cancel:
  243. close;
  244. }
  245. // Monster Trainer //
  246. gon_test,52,103,6 script Monster Trainer 87,{
  247. mes "[Monster Trainer]";
  248. if (#monster != 0) goto L_Mon;
  249. mes "Welcome to the monster arena, would you like to start training?";
  250. next;
  251. menu "Yes",-,"No",L_Exit;
  252. mes "[Monster Trainer]";
  253. mes "New trainers may only start with Porings.";
  254. mes "They cost 1000z, Would you like to buy one?";
  255. next;
  256. menu "Yes",-,"No",L_Exit;
  257. if (Zeny < 1000) goto L_NoZeny;
  258. set Zeny, Zeny-1000;
  259. set #monster,10;
  260. mes "[Monster Trainer]";
  261. mes "Congratulations!";
  262. mes "When your Poring earns enough experience, talk to me to upgrade.";
  263. close;
  264. L_Mon:
  265. mes "Welcome back, " + strcharinfo(0) + ".";
  266. mes "Your monster has " + #monpoints + " exp points.";
  267. next;
  268. if (@fighting == 1) goto L_Heal;
  269. menu "Upgrade Monster",L_Upgrade,"Sell Experience",L_Sell,"^FF0000Abandon Monster^000000",L_Abandon,"Cancel",L_Exit;
  270. L_Abandon:
  271. mes "[Monster Trainer]";
  272. mes "Are you sure you want to abandon your monster?";
  273. next;
  274. menu "Yes",-,"No",L_Exit;
  275. set #monster,0;
  276. set #monpoints,0;
  277. mes "[Monster Trainer]";
  278. mes "Monster released into the wild.";
  279. close;
  280. L_Sell:
  281. mes "[Monster Trainer]";
  282. mes "You can sell your monster's experience for 100z each.";
  283. next;
  284. menu "Sell",-,"Cancel",L_Exit;
  285. mes "[Monster Trainer]";
  286. mes "You have: ^FF0000" + #monpoints + "^000000 experience points";
  287. mes "How many would you like to sell?";
  288. next;
  289. input .@sellexp;
  290. if (.@sellexp > #monpoints) goto L_NoExp;
  291. set #monpoints,#monpoints-.@sellexp;
  292. set .@sellearn,100*.@sellexp; // Price of exp
  293. set Zeny, Zeny+.@sellearn;
  294. mes "[Monster Trainer]";
  295. mes "You earned ^0000FF" + .@sellearn + "^000000z.";
  296. close;
  297. L_NoExp:
  298. mes "[Monster Trainer]";
  299. mes "You do not have enough experience.";
  300. next;
  301. goto L_Exit;
  302. // Monster Upgrades //
  303. L_Upgrade:
  304. mes "[Monster Trainer]";
  305. // 3. ---Change to Add Monsters - May not be required--- //
  306. if (#monster > 1 && #monster < 20) mes "You need 10 exp points to upgrade your monster.";
  307. if (#monster > 19 && #monster < 30) mes "You need 20 exp points to upgrade your monster.";
  308. if (#monster > 29 && #monster < 40) mes "You need 40 exp points to upgrade your monster.";
  309. if (#monster > 39 && #monster < 50) mes "You need 80 exp points to upgrade your monster.";
  310. if (#monster > 49 && #monster < 60) mes "You need 160 exp points to upgrade your monster.";
  311. if (#monster > 59 && #monster < 70) mes "You need 320 exp points to upgrade your monster.";
  312. if (#monster > 69 && #monster < 80) mes "You need 640 exp points to upgrade your monster.";
  313. if (#monster > 79 && #monster < 90) mes "You need 1280 exp points to upgrade your monster.";
  314. if (#monster > 89 && #monster < 100) mes "You need 2560 exp points to upgrade your monster.";
  315. next;
  316. menu "Continue",-,"Cancel",L_Exit;
  317. mes "[Monster Trainer]";
  318. // 4. ---Change to Add Monsters - May not be required--- //
  319. if (#monster > 1 && #monster < 20 && #monpoints > 9) goto L_Up1;
  320. if (#monster > 19 && #monster < 30 && #monpoints > 19) goto L_Up2;
  321. if (#monster > 29 && #monster < 40 && #monpoints > 39) goto L_Up3;
  322. if (#monster > 39 && #monster < 50 && #monpoints > 79) goto L_Up4;
  323. if (#monster > 49 && #monster < 60 && #monpoints > 159) goto L_Up5;
  324. if (#monster > 59 && #monster < 70 && #monpoints > 319) goto L_Up6;
  325. if (#monster > 69 && #monster < 80 && #monpoints > 639) goto L_Up7;
  326. if (#monster > 79 && #monster < 90 && #monpoints > 1279) goto L_Up8;
  327. if (#monster > 89 && #monster < 100 && #monpoints > 2559) goto L_Up9;
  328. mes "Unable to upgrade.";
  329. close;
  330. // 5. ---Change to Add Monsters--- //
  331. L_Up1:
  332. set #monster,20;
  333. set #monpoints,#monpoints-10;
  334. mes "Upgraded to Fabre!";
  335. close;
  336. L_Up2:
  337. mes "Which monster would you like to upgrade to?";
  338. next;
  339. menu "Lunatic",U_Lunatic,"Drops",U_Drops,"Picky",U_Picky;
  340. U_Drops:
  341. set #monster,31;
  342. set #monpoints,#monpoints-20;
  343. mes "[Monster Trainer]";
  344. mes "Upgraded to Drops!";
  345. close;
  346. U_Picky:
  347. set #monster,32;
  348. set #monpoints,#monpoints-20;
  349. mes "[Monster Trainer]";
  350. mes "Upgraded to Picky!";
  351. close;
  352. U_Lunatic:
  353. set #monster,30;
  354. set #monpoints,#monpoints-20;
  355. mes "[Monster Trainer]";
  356. mes "Upgraded to Lunatic!";
  357. close;
  358. L_Up3:
  359. mes "Which monster would you like to upgrade to?";
  360. next;
  361. menu "ChonChon",U_ChonChon,"Super Picky",U_SPicky,"Willow",U_Willow;
  362. U_ChonChon:
  363. set #monster,40;
  364. set #monpoints,#monpoints-40;
  365. mes "[Monster Trainer]";
  366. mes "Upgraded to ChonChon!";
  367. close;
  368. U_SPicky:
  369. set #monster,41;
  370. set #monpoints,#monpoints-40;
  371. mes "[Monster Trainer]";
  372. mes "Upgraded to Super Picky!";
  373. close;
  374. U_Willow:
  375. set #monster,42;
  376. set #monpoints,#monpoints-40;
  377. mes "[Monster Trainer]";
  378. mes "Upgraded to Willow!";
  379. close;
  380. L_Up4:
  381. mes "Which monster would you like to upgrade to?";
  382. next;
  383. menu "Condor",U_Condor,"Roda Frog",U_Roda;
  384. U_Condor:
  385. set #monster,51;
  386. set #monpoints,#monpoints-80;
  387. mes "[Monster Trainer]";
  388. mes "Upgraded to Condor!";
  389. close;
  390. U_Roda:
  391. set #monster,50;
  392. set #monpoints,#monpoints-80;
  393. mes "[Monster Trainer]";
  394. mes "Upgraded to Roda Frog!";
  395. close;
  396. L_Up5:
  397. set #monster,60;
  398. set #monpoints,#monpoints-160;
  399. mes "Upgraded to Thief Bug Larva!";
  400. close;
  401. L_Up6:
  402. set #monster,70;
  403. set #monpoints,#monpoints-320;
  404. mes "Upgraded to Savage Babe!";
  405. close;
  406. L_Up7:
  407. mes "Which monster would you like to upgrade to?";
  408. next;
  409. menu "Familiar",U_Familiar,"Hornet",U_Hornet;
  410. U_Hornet:
  411. set #monster,81;
  412. set #monpoints,#monpoints-640;
  413. mes "[Monster Trainer]";
  414. mes "Upgraded to Hornet!";
  415. close;
  416. U_Familiar:
  417. set #monster,80;
  418. set #monpoints,#monpoints-640;
  419. mes "[Monster Trainer]";
  420. mes "Upgraded to Familiar!";
  421. close;
  422. L_Up8:
  423. mes "[Monster Trainer]";
  424. mes "Which monster would you like to upgrade to?";
  425. next;
  426. menu "Desert Wolf Puppy",U_Puppy,"Spore",U_Spore,"Rocker",U_Rocker;
  427. U_Spore:
  428. set #monster,91;
  429. set #monpoints,#monpoints-1280;
  430. mes "[Monster Trainer]";
  431. mes "Upgraded to Spore!";
  432. close;
  433. U_Rocker:
  434. set #monster,92;
  435. set #monpoints,#monpoints-1280;
  436. mes "[Monster Trainer]";
  437. mes "Upgraded to Rocker!";
  438. close;
  439. U_Puppy:
  440. set #monster,90;
  441. set #monpoints,#monpoints-1280;
  442. mes "[Monster Trainer]";
  443. mes "Upgraded to Desert Wolf Puppy!";
  444. close;
  445. L_Up9:
  446. mes "Which monster would you like to upgrade to?";
  447. next;
  448. menu "Skeleton",U_Skeleton,"Antonio",U_Antonio,"Plankton",U_Plankton,"Thief Bug Female",U_ThiefFemale;
  449. U_Plankton:
  450. set #monster,101;
  451. set #monpoints,#monpoints-2560;
  452. mes "[Monster Trainer]";
  453. mes "Upgraded to Plankton!";
  454. close;
  455. U_Antonio:
  456. set #monster,102;
  457. set #monpoints,#monpoints-2560;
  458. mes "[Monster Trainer]";
  459. mes "Upgraded to Antonio!";
  460. close;
  461. U_ThiefFemale:
  462. set #monster,103;
  463. set #monpoints,#monpoints-2560;
  464. mes "[Monster Trainer]";
  465. mes "Upgraded to Thief Bug Female!";
  466. close;
  467. U_Skeleton:
  468. set #monster,100;
  469. set #monpoints,#monpoints-2560;
  470. mes "[Monster Trainer]";
  471. mes "Upgraded to Skeleton!";
  472. close;
  473. L_NoZeny:
  474. mes "[Monster Trainer]";
  475. mes "You don't have enough zeny!";
  476. close;
  477. L_Exit:
  478. mes "[Monster Trainer]";
  479. mes "Goodbye.";
  480. close;
  481. L_Heal:
  482. mes "[Monster Trainer]";
  483. mes "Your monster needs to heal.";
  484. mes "It will heal faster if you click the nurse faster.";
  485. set #heal,1;
  486. close;
  487. }
  488. // Kill Trigger //
  489. // 6/Final. ---Change to Add Monsters--- //
  490. gon_test,56,91,6 script OnPoringKilled -1,{
  491. if (@marena == 0) callfunc "illegalkill";
  492. set #monpoints,#monpoints+1;
  493. announce "You killed a Poring - Gained 1 exp",19;
  494. callfunc "duelkill";
  495. }
  496. gon_test,56,91,6 script OnFaberKilled -1,{
  497. if (@marena == 0) callfunc "illegalkill";
  498. set #monpoints,#monpoints+2;
  499. announce "You killed a Faber - Gained 2 exp",19;
  500. callfunc "duelkill";
  501. }
  502. gon_test,56,91,6 script OnLunaticKilled -1,{
  503. if (@marena == 0) callfunc "illegalkill";
  504. set #monpoints,#monpoints+4;
  505. announce "You killed a Lunatic - Gained 4 exp",19;
  506. callfunc "duelkill";
  507. }
  508. gon_test,56,91,6 script OnDropsKilled -1,{
  509. if (@marena == 0) callfunc "illegalkill";
  510. set #monpoints,#monpoints+4;
  511. announce "You killed a Drops - Gained 4 exp",19;
  512. callfunc "duelkill";
  513. }
  514. gon_test,56,91,6 script OnPickyKilled -1,{
  515. if (@marena == 0) callfunc "illegalkill";
  516. set #monpoints,#monpoints+4;
  517. announce "You killed a Picky - Gained 4 exp",19;
  518. callfunc "duelkill";
  519. }
  520. gon_test,56,91,6 script OnChonChonKilled -1,{
  521. if (@marena == 0) callfunc "illegalkill";
  522. set #monpoints,#monpoints+8;
  523. announce "You killed a ChonChon - Gained 8 exp",19;
  524. callfunc "duelkill";
  525. }
  526. gon_test,56,91,6 script OnSPickyKilled -1,{
  527. if (@marena == 0) callfunc "illegalkill";
  528. set #monpoints,#monpoints+8;
  529. announce "You killed a Super Picky - Gained 8 exp",19;
  530. callfunc "duelkill";
  531. }
  532. gon_test,56,91,6 script OnWillowKilled -1,{
  533. if (@marena == 0) callfunc "illegalkill";
  534. set #monpoints,#monpoints+8;
  535. announce "You killed a Willow - Gained 8 exp",19;
  536. callfunc "duelkill";
  537. }
  538. gon_test,56,91,6 script OnRodaKilled -1,{
  539. if (@marena == 0) callfunc "illegalkill";
  540. set #monpoints,#monpoints+16;
  541. announce "You killed a Roda Frog - Gained 16 exp",19;
  542. callfunc "duelkill";
  543. }
  544. gon_test,56,91,6 script OnCondorKilled -1,{
  545. if (@marena == 0) callfunc "illegalkill";
  546. set #monpoints,#monpoints+16;
  547. announce "You killed a Condor - Gained 16 exp",19;
  548. callfunc "duelkill";
  549. }
  550. gon_test,56,91,6 script OnThiefKilled -1,{
  551. if (@marena == 0) callfunc "illegalkill";
  552. set #monpoints,#monpoints+32;
  553. announce "You killed a Theif Bug Larva - Gained 32 exp",19;
  554. callfunc "duelkill";
  555. }
  556. gon_test,56,91,6 script OnSavageKilled -1,{
  557. if (@marena == 0) callfunc "illegalkill";
  558. set #monpoints,#monpoints+64;
  559. announce "You killed a Savage Babe - Gained 64 exp",19;
  560. callfunc "duelkill";
  561. }
  562. gon_test,56,91,6 script OnFamiliarKilled -1,{
  563. if (@marena == 0) callfunc "illegalkill";
  564. set #monpoints,#monpoints+128;
  565. announce "You killed a Familiar - Gained 128 exp",19;
  566. callfunc "duelkill";
  567. }
  568. gon_test,56,91,6 script OnHornetKilled -1,{
  569. if (@marena == 0) callfunc "illegalkill";
  570. set #monpoints,#monpoints+128;
  571. announce "You killed a Hornet - Gained 128 exp",19;
  572. callfunc "duelkill";
  573. }
  574. gon_test,56,91,6 script OnPuppyKilled -1,{
  575. if (@marena == 0) callfunc "illegalkill";
  576. set #monpoints,#monpoints+256;
  577. announce "You killed a Desert Wolf Puppy - Gained 256 exp",19;
  578. callfunc "duelkill";
  579. }
  580. gon_test,56,91,6 script OnRockerKilled -1,{
  581. if (@marena == 0) callfunc "illegalkill";
  582. set #monpoints,#monpoints+256;
  583. announce "You killed a Rocker - Gained 256 exp",19;
  584. callfunc "duelkill";
  585. }
  586. gon_test,56,91,6 script OnSporeKilled -1,{
  587. if (@marena == 0) callfunc "illegalkill";
  588. set #monpoints,#monpoints+256;
  589. announce "You killed a Spore - Gained 256 exp",19;
  590. callfunc "duelkill";
  591. }
  592. gon_test,56,91,6 script OnSkeletonKilled -1,{
  593. if (@marena == 0) callfunc "illegalkill";
  594. set #monpoints,#monpoints+512;
  595. announce "You killed a Skeleton - Gained 512 exp",19;
  596. callfunc "duelkill";
  597. }
  598. gon_test,56,91,6 script OnPlanktonKilled -1,{
  599. if (@marena == 0) callfunc "illegalkill";
  600. set #monpoints,#monpoints+512;
  601. announce "You killed a Plankton - Gained 512 exp",19;
  602. callfunc "duelkill";
  603. }
  604. gon_test,56,91,6 script OnAntonioKilled -1,{
  605. if (@marena == 0) callfunc "illegalkill";
  606. set #monpoints,#monpoints+512;
  607. announce "You killed an Antonio - Gained 512 exp",19;
  608. callfunc "duelkill";
  609. }
  610. gon_test,56,91,6 script OnThiefFemaleKilled -1,{
  611. if (@marena == 0) callfunc "illegalkill";
  612. set #monpoints,#monpoints+512;
  613. announce "You killed a Thief Bug Female - Gained 512 exp",19;
  614. callfunc "duelkill";
  615. }
  616. gon_test,56,91,6 script OnSpecialKilled -1,{
  617. if (@marena == 0) callfunc "illegalkill";
  618. set #monpoints,#monpoints+512;
  619. announce "You killed a Special Monster - Gained 1024 exp",19;
  620. callfunc "duelkill";
  621. }
  622. function script duelkill {
  623. if (strcharinfo(0) != $@duelist1$ && strcharinfo(0) != $@duelist2$) end;
  624. announce strcharinfo(0) + " won the Duel",1;
  625. set @fighting,0;
  626. set #heal,0;
  627. set @healing,0;
  628. end;
  629. }
  630. function script illegalkill {
  631. announce "Illegal Kill by " + strcharinfo(0) + " Detected",1;
  632. percentheal -100,-100;
  633. end;
  634. }
  635. // Healer //
  636. gon_test,55,103,6 script Nurse 90,{
  637. if (@battle == 1 || #heal == 0) goto L_NoHeal;
  638. if (#heal == 1 && @healing < 100) goto L_Heal; //Total healing required
  639. set @fighting,0;
  640. set #heal,0;
  641. set @healing,0;
  642. specialeffect2 EF_VALLENTINE2;
  643. announce "Your monster has healed.",19;
  644. end;
  645. L_Heal:
  646. set .@healrate,140 / #monster; //Rate of heal per click
  647. set @healing,@healing + .@healrate;
  648. end;
  649. L_NoHeal:
  650. announce "Your monster does not need healing yet.",19;
  651. end;
  652. }
  653. // Warps players //
  654. gon_test,57,86,5 script Summon Pad 1::SummonPad 111,2,2,{
  655. end;
  656. OnTouch:
  657. set @marena,1;
  658. warp "gon_test",57,99;
  659. }
  660. gon_test,43,87,5 duplicate(SummonPad) Summon Pad 2 111,2,2
  661. gon_test,72,87,5 duplicate(SummonPad) Summon Pad 3 111,2,2
  662. // Skill Disabler //
  663. gon_test mapflag noskill
  664. // Duel Arena //
  665. gon_test,58,103,5 script Duel Master#01 92,{
  666. if ($@duelist1$ == "" || $@monster1 == 0) set $@duel,0;
  667. set @marena,1;
  668. if (#monster == 0) goto L_NoMon;
  669. mes "[Duel Master]";
  670. if ($@duel == 1) goto L_Waiting;
  671. if ($@duel == 2) goto L_Dueling;
  672. mes "There are currently no players dueling.";
  673. next;
  674. menu "Join",-,"Spectate",L_Spec,"Cancel",L_Exit;
  675. // Player 1 Enters Duel Area //
  676. if (#heal == 1) goto L_NeedHeal;
  677. if ($@duel == 1) goto L_Duel2;
  678. set $@duel,1;
  679. if (#monster > 1 && #monster < 20) set $@monster1,1;
  680. if (#monster > 19 && #monster < 30) set $@monster1,2;
  681. if (#monster > 29 && #monster < 40) set $@monster1,3;
  682. if (#monster > 39 && #monster < 50) set $@monster1,4;
  683. if (#monster > 49 && #monster < 60) set $@monster1,5;
  684. if (#monster > 59 && #monster < 70) set $@monster1,6;
  685. if (#monster > 69 && #monster < 80) set $@monster1,7;
  686. if (#monster > 79 && #monster < 90) set $@monster1,8;
  687. if (#monster > 89 && #monster < 100) set $@monster1,9;
  688. if (#monster > 99 && #monster < 110) set $@monster1,10;
  689. set $@duelist1$,strcharinfo(0);
  690. set @battle,1;
  691. announce strcharinfo(0) + " [Monster Level: " + $@monster1 + "] is waiting for a duel",1;
  692. atcommand "@option 64 0 64";
  693. warp "gon_test",49,5;
  694. close;
  695. L_Waiting:
  696. mes "^0000FF " + $@duelist1$ + "^000000 [Monster Level: ^FF0000" + $@monster1 + "^000000]";
  697. mes "Is waiting for an opponent";
  698. next;
  699. menu "Join",-,"Spectate",L_Spec,"Cancel",L_Exit;
  700. // Player 2 Enters Duel Area //
  701. if (#heal == 1) goto L_NeedHeal;
  702. L_Duel2:
  703. if ($@duel == 2) goto L_Spec;
  704. set $@duel,2;
  705. if (#monster > 1 && #monster < 20) set $@monster2,1;
  706. if (#monster > 19 && #monster < 30) set $@monster2,2;
  707. if (#monster > 29 && #monster < 40) set $@monster2,3;
  708. if (#monster > 39 && #monster < 50) set $@monster2,4;
  709. if (#monster > 49 && #monster < 60) set $@monster2,5;
  710. if (#monster > 59 && #monster < 70) set $@monster2,6;
  711. if (#monster > 69 && #monster < 80) set $@monster2,7;
  712. if (#monster > 79 && #monster < 90) set $@monster2,8;
  713. if (#monster > 89 && #monster < 100) set $@monster2,9;
  714. if (#monster > 99 && #monster < 110) set $@monster2,10;
  715. set $@duelist2$,strcharinfo(0);
  716. set @battle,1;
  717. announce strcharinfo(0) + " [Monster Level: " + $@monster2 + "] has joined the duel",1;
  718. atcommand "@option 64 0 64";
  719. warp "gon_test",49,5;
  720. close;
  721. L_Dueling:
  722. mes "^0000FF" + $@duelist1$ + "^000000 [Monster Level: ^0000FF" + $@monster1 + "^000000]";
  723. mes " VS.";
  724. mes "^FF0000" + $@duelist2$ + "^000000 [Monster Level: ^FF0000" + $@monster2 + "^000000]";
  725. next;
  726. menu "Spectate",L_Spec,"Cancel",L_Exit;
  727. L_Spec:
  728. set @battle,0;
  729. atcommand "@option 64 0 64";
  730. warp "gon_test",49,5;
  731. close;
  732. L_Exit:
  733. mes "[Duel Master]";
  734. mes "Goodbye.";
  735. close;
  736. L_NoMon:
  737. mes "[Duel Master]";
  738. mes "You haven't got a monster, you can't participate.";
  739. close;
  740. L_NeedHeal:
  741. mes "[Duel Master]";
  742. mes "You need to heal before you can join.";
  743. close;
  744. }
  745. // Duel Exit //
  746. gon_test,42,8,5 script Duel Master#02 92,{
  747. mes "[Duel Master]";
  748. mes "Would you like to return?";
  749. menu "Yes",L_Leave,"No",-;
  750. mes "Alright";
  751. close;
  752. L_Leave:
  753. if ($@duelist1$ == strcharinfo(0)) goto L_Leave1;
  754. if ($@duelist2$ == strcharinfo(0)) goto L_Leave2;
  755. L_Leave3:
  756. atcommand "@option 0 0 0";
  757. set @battle,0;
  758. warp "gon_test",57,99;
  759. close;
  760. L_Leave1:
  761. set $@duelist1$,"";
  762. set $@monster1,0;
  763. set $@duel,$@duel-1;
  764. announce strcharinfo(0) + " stopped dueling",1;
  765. goto L_Leave3;
  766. L_Leave2:
  767. set $@duelist2$,"";
  768. set $@monster2,0;
  769. set $@duel,$@duel-1;
  770. announce strcharinfo(0) + " stopped dueling",1;
  771. goto L_Leave3;
  772. }
  773. gon_test,49,5,5 duplicate(SummonPad) Summon Pad 4 111,2,2
  774. gon_test,55,8,6 duplicate(monsterreferee) Referee#02 61