powernpc.txt 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. //===== eAthena Script =======================================
  2. //= Official Gonryun Power Arena
  3. //===== By: ==================================================
  4. //= KarLaeda (Aegis script cnversion)
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= Athena SVN 9000+
  9. //===== Additional Comments: =================================
  10. //= 1.1 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
  11. //============================================================
  12. gonryun,180,118,4 script Iron man#gnp 85,{
  13. if (countitem(1201) > 0) {
  14. mes "- Wait a minute !! -";
  15. mes "- Currently you're carrying -";
  16. mes "- too many items with you. -";
  17. mes "- Please try again -";
  18. mes "- after you loose some weight. -";
  19. close;
  20. }
  21. if (BaseJob == Job_Novice) {
  22. mes "[Songmoodoo]";
  23. mes "Children are not allowed in here.";
  24. close;
  25. }
  26. if (in_battle == 3) set in_battle,1;
  27. if (in_battle < 1) {
  28. mes "[Songmoodoo]";
  29. mes "Hey hey~ This is not something";
  30. mes "You can see everyday.";
  31. mes "Oh~ you look strong!";
  32. mes "Wanna try?";
  33. next;
  34. switch(select("Why not?:?????:No thanks.")){
  35. case 1:
  36. mes "[Songmoodoo]";
  37. mes "Haha~ I knew you would try.";
  38. mes "If you could lift this up,";
  39. mes "I'll tell you something interesting.";
  40. mes "Ready?";
  41. next;
  42. mes "^0000FFSongmoodoo pointed to a rock";
  43. mes "and asked you to lift.";
  44. if (BaseJob < Job_Knight) {
  45. if (checkweight(7049,690)) {
  46. mes "^0000FFYou lifted the Stone lightly.^000000";
  47. set in_battle,1;
  48. getitem 7049,690; // Stone
  49. next;
  50. emotion e_no1;
  51. mes "[Songmoodoo]";
  52. mes "Wow~ Excellent~";
  53. mes "I'll take you to someplace nice";
  54. mes "next time I see you.";
  55. mes "See ya~";
  56. } else {
  57. mes "Looks too heavy for you.^000000";
  58. next;
  59. mes "[Songmoodoo]";
  60. mes "You are yet lack of training.";
  61. mes "Come after more practice.";
  62. }
  63. } else if (BaseClass == Job_Swordman || BaseClass == Job_Thief || BaseClass == Job_Merchant || BaseJob == Job_Monk) {
  64. if (checkweight(7049,1100)) {
  65. mes "^0000FFYou lifted the Stone lightly.^000000";
  66. set in_battle,1;
  67. getitem 7049,1100; // Stone
  68. next;
  69. emotion e_no1;
  70. mes "[Songmoodoo]";
  71. mes "Wow~ Excellent~";
  72. mes "I'll take you to someplace nice";
  73. mes "next time I see you.";
  74. mes "See ya~";
  75. } else {
  76. mes "Seemed too heavy to lift.^000000";
  77. next;
  78. mes "[Songmoodoo]";
  79. mes "You are yet lack of training.";
  80. mes "come after more practice.";
  81. }
  82. } else {
  83. if (checkweight(7049,730)) {
  84. mes "^0000FFYou lifted the Stone lightly.^000000";
  85. set in_battle,1;
  86. getitem 7049,730; // Stone
  87. next;
  88. emotion e_no1;
  89. mes "[Songmoodoo]";
  90. mes "Wow~ Excellent~";
  91. mes "I'll take you to someplace nice";
  92. mes "next time I see you.";
  93. mes "See ya~";
  94. } else {
  95. mes "Seemed too heavy to lift.^000000";
  96. next;
  97. mes "[Songmoodoo]";
  98. mes "You are yet lack of training.";
  99. mes "come after more practice.";
  100. }
  101. }
  102. break;
  103. case 2:
  104. mes "[Songmoodoo]";
  105. mes "That's not a big deal.";
  106. mes "If you believe you're strong,";
  107. mes "This might be a good chance to experience";
  108. mes "something new. Wanna try??";
  109. break;
  110. case 3:
  111. mes "[Songmoodoo]";
  112. mes "I guess not..";
  113. mes "....";
  114. emotion e_pif;
  115. break;
  116. }
  117. } else if (in_battle == 1) {
  118. mes "[Songmoodoo]";
  119. mes "Good to see you again!";
  120. mes "Wanna go??";
  121. next;
  122. if (select("Sure:Maybe next time") == 1) {
  123. mes "[Songmoodoo]";
  124. mes "Good! Haha.";
  125. mes "I like your confidence.";
  126. mes "Good luck on you~";
  127. close2;
  128. warp "gon_test",53,6;
  129. end;
  130. } else {
  131. mes "[Songmoodoo]";
  132. mes "well..";
  133. mes "alright.";
  134. mes "I'll see you next time then.";
  135. }
  136. } else {
  137. mes "[Songmoodoo]";
  138. mes "You ran away from there?";
  139. mes "Guess you're not strong enough?";
  140. mes "I'll give you another chance.";
  141. mes "See you again.";
  142. emotion e_pif;
  143. set in_battle,1;
  144. }
  145. close;
  146. }
  147. gon_test,50,14,4 script Administrator#gnp 780,{
  148. mes "[Administrator]";
  149. if (BaseJob == Job_Novice) {
  150. mes "Children are not allowed in here.";
  151. close;
  152. }
  153. if ($@in_battle) {
  154. mes "Sorry, a field of fight";
  155. mes "is occupied right now.";
  156. mes "Try again later.";
  157. close;
  158. }
  159. mes "Are you ready?";
  160. mes "";
  161. mes "Remember, you have to pay";
  162. mes "500z to fight.";
  163. next;
  164. if (select("Yes, let me fight!:One moment, please.") == 2) {
  165. mes "[Administrator]";
  166. mes "Ok, see you later.";
  167. close;
  168. }
  169. if (Zeny < 500) {
  170. mes "[Administrator]";
  171. mes "I'm sorry but you don't have enough zeny.";
  172. close;
  173. }
  174. set Zeny,Zeny - 500;
  175. set in_battle,1;
  176. warp "gon_test",42,86;
  177. set $@in_battle,1;
  178. setnpctimer 0,"Summoner#gnp";
  179. startnpctimer "Summoner#gnp";
  180. end;
  181. }
  182. gon_test,42,89,4 script Summoner#gnp 774,{
  183. mes "[SongYeunWoo]";
  184. if (in_battle == 3) {
  185. mes "Please come back after registration.";
  186. close;
  187. } else if (in_battle == 2) {
  188. mes "You had a single match already.";
  189. mes "You can have a match once at a time.";
  190. mes "Please re-enter if you want a match";
  191. mes "with other monsters.";
  192. close;
  193. }
  194. mes "Welcome.";
  195. mes "Which monster would you recall?";
  196. next;
  197. set @gnpGroup,select("Group 1:Group 2:Group 3:Group 4:Group 5:Group 6:Group 7:Group 8:Group 9:Group 10:Group 11");
  198. set @gnpGroupMob$,.gnpMobsName$[(@gnpGroup-1)*6];
  199. for (set @i,1; @i < 6; set @i, @i+1) {
  200. set @gnpGroupMob$, @gnpGroupMob$ + ":" + .gnpMobsName$[(@gnpGroup-1)*6 + @i];
  201. }
  202. set @gnpMob,select(@gnpGroupMob$);
  203. mes "[SongYeunWoo]";
  204. mes "Let the fight begin!";
  205. close2;
  206. set in_battle,2;
  207. if (getnpctimer(0) < 180000) monster "gon_test",56,86,.gnpMobsName$[(@gnpGroup-1)*6 + @gnpMob - 1],.gnpMobsId[(@gnpGroup-1)*6 + @gnpMob - 1],1,"Summoner#gnp::OnGnpMobDead";
  208. // do init timer on mob select ?
  209. // setnpctimer 0;
  210. end;
  211. OnInit:
  212. initnpctimer;
  213. stopnpctimer;
  214. setarray .gnpMobsName$[0],"Leather ribbon","Sitotoxism","Certificate of blood donation","Tarantulla","DangRangKwon","Molar of Desert";
  215. setarray .gnpMobsId[0],1419,1428,1434,1430,1457,1432;
  216. setarray .gnpMobsName$[6],"Hog Skeleton","Cannibal Bear","Miner","Fighting Dog","Mermaid Princess","Only Son";
  217. setarray .gnpMobsId[6],1462,1442,1469,1460,1425,1472;
  218. setarray .gnpMobsName$[12],"SamYeupchoom","Hunting Dog","Nutcracker","Sea Horse","JAKK","Corpse";
  219. setarray .gnpMobsId[12],1454,1455,1443,1426,1436,1423;
  220. setarray .gnpMobsName$[18],"Marduk","Onion Stem","Worm","Autodoll","Girl with Matches","Red Evil";
  221. setarray .gnpMobsId[18],1458,1440,1429,1459,1444,1422;
  222. setarray .gnpMobsName$[24],"Naga","Mold","Tracing Missiles","Aryong","Abiryong","Bacterium";
  223. setarray .gnpMobsId[24],1421,1481,1424,1465,1466,1433;
  224. setarray .gnpMobsName$[30],"Winning System","Fat Archer","Little black goat","Perverted","Treasure Box","Greenhorn";
  225. setarray .gnpMobsId[30],1427,1473,1431,1446,1474,1471;
  226. setarray .gnpMobsName$[36],"Hurricane","External Hog","Landlord of Maze","Knight of grudge","Archer of grudge","Papillon";
  227. setarray .gnpMobsId[36],1450,1439,1461,1467,1453,1479;
  228. setarray .gnpMobsName$[42],"Lip","Wendigo","E Card","Tentacle Monster","Muscular Alarm","Devil Cross";
  229. setarray .gnpMobsId[42],1451,1475,1437,1441,1476,1435;
  230. setarray .gnpMobsName$[48],"Maggot","Large Frame","Season of reading","Shining Fingers","Handbag","Major knight of grudge";
  231. setarray .gnpMobsId[48],1477,1448,1478,1489,1488,1438;
  232. setarray .gnpMobsName$[54],"Queen","Man of Fire","Sword of Executor","Mutant Dragon","Mixed Soup","Great Sword";
  233. setarray .gnpMobsId[54],1482,1464,1487,1449,1456,1486;
  234. setarray .gnpMobsName$[60],"Monster Bird","Torturer","Warrior","Vice-Torturer","Huge Sword";
  235. setarray .gnpMobsId[60],1447,1483,1490,1484,1485;
  236. end;
  237. OnTimer120000:
  238. areaannounce "gon_test",41,81,74,92,"1 min. left",0;
  239. end;
  240. OnTimer180000:
  241. killmonster "gon_test","Summoner#gnp::OnGnpMobDead";
  242. end;
  243. OnTimer182000:
  244. areaannounce "gon_test",41,81,74,92,"Time Over.",0;
  245. end;
  246. OnGnpMobDead:
  247. setnpctimer 0;
  248. set in_battle,1;
  249. areaannounce "gon_test",41,81,74,92,"Thank you. Please, come again.",0;
  250. sleep 4000;
  251. OnTimer184000:
  252. stopnpctimer;
  253. areawarp "gon_test",41,81,74,92,"gon_test",44,4;
  254. set $@in_battle,0;
  255. end;
  256. }
  257. gon_test,46,14,3 script Guide of field of fight 770,{
  258. mes "[SongHeeYeon]";
  259. mes ".....";
  260. mes "Hi, there~";
  261. mes "This is a field of fight.";
  262. mes "Got any questions?";
  263. next;
  264. switch(select("A field of fight?:You got a minute lady?:Get in.:Out.:Nope.")){
  265. case 1:
  266. mes "[SongHeeYeon]";
  267. mes "Just like the name of this place,";
  268. mes "it is a field for matches.";
  269. mes "We have various monsters";
  270. mes "in different levels.";
  271. next;
  272. mes "[SongHeeYeon]";
  273. mes "1st Class Boss Monsters are in middle of preparation yet.";
  274. mes "We charge you a small fee to enter here.";
  275. break;
  276. case 2:
  277. mes "[SongHeeYeon]";
  278. mes "eh.... excuse me?";
  279. mes "ah..I'm afraid I have to work right now...";
  280. mes "I am sorry..";
  281. break;
  282. case 3:
  283. mes "[SongHeeYeon]";
  284. mes "Yes, Thank you.";
  285. mes "Have a good time.";
  286. close2;
  287. set in_battle,3;
  288. warp "gon_test",25,98;
  289. end;
  290. case 4:
  291. mes "[SongHeeYeon]";
  292. mes "Thank you.";
  293. mes "Please come again.";
  294. close2;
  295. warp "gonryun",177,112;
  296. end;
  297. case 5:
  298. mes "[SongHeeYeon]";
  299. mes "........";
  300. mes "Good bye..";
  301. break;
  302. }
  303. close;
  304. }
  305. gon_test,70,103,3 script ChowAnAn#gnp 773,{
  306. mes "[ChowAnAn]";
  307. mes "Want to go back?";
  308. next;
  309. if (select("Yes.:No.") == 1) {
  310. mes "[ChowAnAn]";
  311. mes "Thank you.";
  312. mes "Please come again.";
  313. close2;
  314. set in_battle,1;
  315. warp "gon_test",44,4;
  316. end;
  317. }
  318. mes "[ChowAnAn]";
  319. mes "Thank you.";
  320. close;
  321. }