mvm.txt 26 KB

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