powernpc.txt 8.4 KB

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