mvm.txt 26 KB

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