mvm.txt 25 KB

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