BakonawaLake.txt 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. //===== rAthena Script =======================================
  2. //= Bakonawa Lake
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Defeat Bakonawa before he eats the moon.
  12. //= Part of the "Bakonawa Extermination" quest.
  13. //===== Additional Comments: =================================
  14. //= 1.0 First version. [Euphy]
  15. //= 1.1 Added GM management NPC. [Euphy]
  16. //= 1.2 Added VIP features. [Euphy]
  17. //============================================================
  18. // Instance Creation :: ma_baku
  19. //============================================================
  20. ma_scene01,174,179,4 script Taho 541,{
  21. disable_items;
  22. if (checkweight(1201,1) == 0) {
  23. mes "You are carrying too many items. Come back after taking off some of them.";
  24. close;
  25. }
  26. if (MaxWeight - Weight < 10000) {
  27. mes "You are carrying too much weight. Come back after reducing the weight.";
  28. close;
  29. }
  30. if (BaseLevel < 140) {
  31. mes "[Taho]";
  32. mes "Hey. This is too dangerous a place for you. You cannot keep yourself safe. Get out of here and go to the village right now!";
  33. close;
  34. }
  35. if (malaya_bakona1 < 7 && malaya_bakona2 < 15) {
  36. mes "[Taho]";
  37. mes "We are gonna be killed all by that Bakonawa. Ah, we must slay him but unfortunately we are not prepared.";
  38. close;
  39. }
  40. set .@party_id,getcharid(1);
  41. set .@md_name$, "Bakonawa Lake";
  42. set .@baku_time, checkquest(12278,PLAYTIME);
  43. if (.@baku_time == -1) {
  44. if (checkquest(12279) == -1) setquest 12279;
  45. }
  46. if (!.@party_id) {
  47. mes "[Taho]";
  48. mes "Isn't there any company who can go with you? Or even if you wanna go alone, come after organizing a party.";
  49. close;
  50. }
  51. if (.@baku_time == -1) {
  52. if (is_party_leader() == true) {
  53. mes "[Taho]";
  54. mes "Are you the leader of the Bakonawa slayers? The road is not well so we have to go down the cliff with a rope, is that OK?";
  55. next;
  56. set .@i, select("Please weave a rope.:Now I will go down.:Cancel.");
  57. } else {
  58. mes "[Taho]";
  59. mes "You came for slaying Bakonawa. The leader of your party has to help me weaving the rope for going down.";
  60. next;
  61. set .@i, select(":Now I will go down.:Cancel.");
  62. }
  63. switch(.@i) {
  64. case 1:
  65. if (instance_create(.@md_name$) < 0) {
  66. mes "[Taho]";
  67. mes "Oh, the rope got dropped. I have to make a new one.";
  68. close;
  69. }
  70. mes "[Taho]";
  71. mes "Now I'm weaving, so you can go down when I'm done.";
  72. close;
  73. case 2:
  74. switch(instance_enter(.@md_name$)) {
  75. case IE_OTHER:
  76. mes "[Taho]";
  77. mes "An unknown error occurred.";
  78. close;
  79. case IE_NOINSTANCE:
  80. mes "[Taho]";
  81. mes "The rope hasn't been weaved yet. Wait a little.";
  82. close;
  83. case IE_NOMEMBER:
  84. mes "[Taho]";
  85. mes "Civilians cannot enter.";
  86. close;
  87. case IE_OK:
  88. mapannounce "ma_scene01","A party member, "+strcharinfo(0)+" of the party "+getpartyname(.@party_id)+" is entering the dungeon, "+.@md_name$+".",bc_map,"0x00ff99"; //FW_NORMAL 12 0 0
  89. setquest 12278;
  90. //warp "1@ma_b",64,51;
  91. close;
  92. }
  93. case 3:
  94. close;
  95. }
  96. } else if (.@baku_time == 0 || .@baku_time == 1) {
  97. mes "[Taho]";
  98. mes "The rope used for getting to the Lake is already broken. We are now cleaning up the surroundings so come back after some time.";
  99. close;
  100. } else if (.@baku_time == 2) {
  101. mes "[Taho]";
  102. mes "It's all cleaned up around here. Now you can go down again after getting a rope.";
  103. erasequest 12278;
  104. close;
  105. }
  106. }
  107. sec_in02,26,26,4 script Bakonawa's Rage 541,{
  108. callfunc "F_GM_NPC";
  109. mes "[Taho]";
  110. mes "My name is Minky.";
  111. if (callfunc("F_GM_NPC",1854,0) == 1) {
  112. erasequest 12278;
  113. erasequest 12279;
  114. set malaya_bakona1,7;
  115. set malaya_bakona2,15;
  116. }
  117. close;
  118. }
  119. // Instance Scripts :: in_baku01
  120. //============================================================
  121. 1@ma_b,62,52,4 script Taho#nf 541,{
  122. mes "[Taho]";
  123. mes "Heehee, I could join the Bakonawa hunt, but I'd rather hide behind that rock and cheer you guys on.";
  124. next;
  125. mes "[Taho]";
  126. mes "Bakonawa becomes invincible at some point. When that time comes, listen to my guides carefully. Just trust me and all will be good.";
  127. next;
  128. if (is_party_leader() == true) {
  129. mes "[Taho]";
  130. mes "Now I will make Bakonawa spring out from the lake.";
  131. next;
  132. switch(select("Hold on! I'm not ready yet!:Let's do it!")) {
  133. case 1:
  134. mes "[Taho]";
  135. mes "Oh... alright... tell me when you are ready.";
  136. close;
  137. case 2:
  138. mes "[Taho]";
  139. mes "Then I will drop a drop of Albopal to this lake.";
  140. next;
  141. mes "[Taho]";
  142. mes "Once Bakonawa tastes this, he will surface...";
  143. donpcevent instance_npcname("#Bakonawan1")+"::OnStart";
  144. disablenpc instance_npcname("Taho#nf");
  145. close;
  146. }
  147. } else {
  148. mes "[Taho]";
  149. mes "I am dropping the Alpopal to make Bakonawa mad. Bakonawa can be a good source of protein once we get him.";
  150. close;
  151. }
  152. }
  153. 1@ma_b,36,111,4 script #Bakonawan1 844,{
  154. end;
  155. OnInstanceInit:
  156. disablenpc instance_npcname("#Bakonawan1");
  157. end;
  158. OnStart:
  159. enablenpc instance_npcname("#Bakonawan1");
  160. set .@map$, instance_mapname("1@ma_b");
  161. mapannounce .@map$,"Taho: I can see him there on the surface! ATTACK!!!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  162. monster .@map$,78,83,"Bakonawa",2320,1,instance_npcname("#Bakonawan1")+"::OnMyMobDead";
  163. initnpctimer;
  164. end;
  165. OnFail:
  166. killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan1")+"::OnMyMobDead";
  167. end;
  168. OnMyMobDead:
  169. set .@map$, instance_mapname("1@ma_b");
  170. if (mobcount(.@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead") < 1) {
  171. donpcevent instance_npcname("#BakonawaDeadn1")+"::OnStart";
  172. killmonster .@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead";
  173. stopnpctimer;
  174. disablenpc instance_npcname("#Bakonawan1");
  175. }
  176. end;
  177. OnTimer1000: callsub OnAnnounce,"10 minutes";
  178. OnTimer60000: callsub OnAnnounce,"9 minutes";
  179. OnTimer120000: callsub OnAnnounce,"8 minutes";
  180. OnTimer180000: callsub OnAnnounce,"7 minutes";
  181. OnTimer240000: callsub OnAnnounce,"6 minutes";
  182. OnTimer300000: callsub OnAnnounce,"5 minutes";
  183. OnTimer360000: callsub OnAnnounce,"4 minutes";
  184. OnTimer420000: callsub OnAnnounce,"3 minutes";
  185. OnTimer480000: callsub OnAnnounce,"2 minutes";
  186. OnTimer540000: callsub OnAnnounce,"1 minute";
  187. OnTimer570000:
  188. mapannounce instance_mapname("1@ma_b"),"Time Limit: 30 seconds",bc_map,"0xff4400"; //FW_NORMAL 18 0 0
  189. donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
  190. end;
  191. OnTimer600000:
  192. set .@map$, instance_mapname("1@ma_b");
  193. mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
  194. donpcevent instance_npcname("Taho#Fail")+"::OnStart";
  195. donpcevent instance_npcname("#Bakonawan1")+"::OnFail";
  196. killmonster .@map$,instance_npcname("#Bakonawan1")+"::OnMyMobDead";
  197. stopnpctimer;
  198. disablenpc instance_npcname("#Bakonawan1");
  199. end;
  200. OnAnnounce:
  201. mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL 15 0 0
  202. donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
  203. end;
  204. }
  205. 1@ma_b,78,81,0 script #SummonPuppetsn1 139,4,5,{
  206. end;
  207. OnInstanceInit:
  208. disablenpc instance_npcname("#SummonPuppetsn1");
  209. end;
  210. OnStart:
  211. stopnpctimer;
  212. enablenpc instance_npcname("#SummonPuppetsn1");
  213. initnpctimer;
  214. end;
  215. OnTouch:
  216. stopnpctimer;
  217. disablenpc instance_npcname("#SummonPuppetsn1");
  218. end;
  219. OnTimer5000:
  220. setarray .@x[0],79,71,60,61,57,89,95,96,99;
  221. setarray .@y[0],71,72,80,90,99,73,82,90,99;
  222. set .@map$, instance_mapname("1@ma_b");
  223. for(set .@i,0; .@i<9; set .@i,.@i+1) {
  224. set .@rand, rand(1,10);
  225. if (.@rand > 7)
  226. monster .@map$,.@x[.@i],.@y[.@i],"Bakonawa's Will",2337,1,instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
  227. else if (.@rand < 4)
  228. monster .@map$,.@x[.@i],.@y[.@i],"Bakonawa's Will",2343,1,instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
  229. }
  230. end;
  231. OnTimer50000:
  232. killmonster instance_mapname("1@ma_b"),instance_npcname("#SummonPuppetsn1")+"::OnMyMobDead";
  233. stopnpctimer;
  234. disablenpc instance_npcname("#SummonPuppetsn1");
  235. end;
  236. OnMyMobDead:
  237. end;
  238. }
  239. 1@ma_b,1,5,4 script #BakonawaDeadn1 844,{
  240. end;
  241. OnInstanceInit:
  242. disablenpc instance_npcname("#BakonawaDeadn1");
  243. end;
  244. OnStart:
  245. enablenpc instance_npcname("#BakonawaDeadn1");
  246. initnpctimer;
  247. end;
  248. OnTimer100:
  249. mapannounce instance_mapname("1@ma_b"),"Taho: Good! Bakonawa is hidden under water. He will now try to swallow the moon.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  250. end;
  251. OnTimer5000:
  252. mapannounce instance_mapname("1@ma_b"),"Taho: We must make loud noises with caldron and gong so he can never concentrate on the moon!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  253. end;
  254. OnTimer10000:
  255. mapannounce instance_mapname("1@ma_b"),"Taho: Do not engage on him even if he come above the surface. Just make loud noises!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  256. end;
  257. OnTimer15000:
  258. mapannounce instance_mapname("1@ma_b"),"Mission - Destroy 2 caldrons and 2 gongs on left and right sides of the lake.",bc_map,"0xff3300"; //FW_NORMAL 15 0 0
  259. donpcevent instance_npcname("#Bakonawan2")+"::OnStart";
  260. stopnpctimer;
  261. disablenpc instance_npcname("#BakonawaDeadn1");
  262. end;
  263. }
  264. 1@ma_b,36,111,4 script #Bakonawan2 844,{
  265. end;
  266. OnInstanceInit:
  267. disablenpc instance_npcname("#Bakonawan2");
  268. end;
  269. OnStart:
  270. enablenpc instance_npcname("#Bakonawan2");
  271. set .@label$, instance_npcname("#Bakonawan2")+"::OnMyMobDead";
  272. set .@map$, instance_mapname("1@ma_b");
  273. monster .@map$,95,98,"Caldron",2328,1,.@label$;
  274. monster .@map$,60,98,"Caldron",2328,1,.@label$;
  275. monster .@map$,97,104,"Gong",2328,1,.@label$;
  276. monster .@map$,58,104,"Gong",2328,1,.@label$;
  277. donpcevent instance_npcname("#Bakonawan2-1")+"::OnStart";
  278. initnpctimer;
  279. end;
  280. OnMyMobDead:
  281. set .@map$, instance_mapname("1@ma_b");
  282. set .@mob_dead_num, mobcount(.@map$,instance_npcname("#Bakonawan2")+"::OnMyMobDead");
  283. if (.@mob_dead_num < 1) {
  284. donpcevent instance_npcname("#Bakonawan2-1")+"::OnEnd";
  285. stopnpctimer;
  286. disablenpc instance_npcname("#Bakonawan2");
  287. } else
  288. mapannounce .@map$,"Taho: Good! "+.@mob_dead_num+" left to go!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  289. end;
  290. OnTimer1000: callsub OnAnnounce,"5 minutes",15,1;
  291. OnTimer60000: callsub OnAnnounce,"4 minutes",15,1;
  292. OnTimer120000: callsub OnAnnounce,"3 minutes",15,1;
  293. OnTimer180000: callsub OnAnnounce,"2 minutes",15,1;
  294. OnTimer240000: callsub OnAnnounce,"1 minute",15,1;
  295. OnTimer270000: callsub OnAnnounce,"30 seconds",15,0;
  296. OnTimer280000: callsub OnAnnounce,"20 seconds",15,0;
  297. OnTimer290000: callsub OnAnnounce,"10 seconds",15,0;
  298. OnTimer295000: callsub OnAnnounce,"5 seconds",16,0;
  299. OnTimer296000: callsub OnAnnounce,"4 seconds",17,0;
  300. OnTimer297000: callsub OnAnnounce,"3 seconds",18,0;
  301. OnTimer298000: callsub OnAnnounce,"2 seconds",19,0;
  302. OnTimer299000: callsub OnAnnounce,"1 second",20,0;
  303. OnTimer300000:
  304. set .@map$, instance_mapname("1@ma_b");
  305. mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
  306. donpcevent instance_npcname("Taho#Fail")+"::OnStart";
  307. donpcevent instance_npcname("#Bakonawan2-1")+"::OnFail";
  308. killmonster .@map$,instance_npcname("#Bakonawan2")+"::OnMyMobDead";
  309. stopnpctimer;
  310. disablenpc instance_npcname("#Bakonawan2");
  311. end;
  312. OnAnnounce:
  313. mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL getarg(1) 0 0
  314. if (getarg(2)) donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
  315. end;
  316. }
  317. 1@ma_b,36,111,4 script #Bakonawan2-1 844,{
  318. end;
  319. OnInstanceInit:
  320. disablenpc instance_npcname("#Bakonawan2-1");
  321. end;
  322. OnStart:
  323. enablenpc instance_npcname("#Bakonawan2-1");
  324. monster instance_mapname("1@ma_b"),78,93,"Enraged Bakonawa",2321,1,instance_npcname("#Bakonawan2-1")+"::OnMyMobDead";
  325. end;
  326. OnFail:
  327. killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan2-1")+"::OnMyMobDead";
  328. end;
  329. OnEnd:
  330. enablenpc instance_npcname("#Bakonawan2-1");
  331. killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan2-1")+"::OnMyMobDead";
  332. initnpctimer;
  333. end;
  334. OnTimer1000:
  335. mapannounce instance_mapname("1@ma_b"),"Taho: He is back into the lake again. Is it over?",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  336. end;
  337. OnTimer5000:
  338. mapannounce instance_mapname("1@ma_b"),"Taho: UHM! Something is moving up rapidly under the water! Ba... Bakonawa is coming!!",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  339. end;
  340. OnTimer10000:
  341. mapannounce instance_mapname("1@ma_b"),"Mission - Eliminate Bakonawa who became more fierce.",bc_map,"0xff3300"; //FW_NORMAL 15 0 0
  342. donpcevent instance_npcname("#Bakonawan3")+"::OnStart";
  343. stopnpctimer;
  344. disablenpc instance_npcname("#Bakonawan2-1");
  345. end;
  346. OnMyMobDead:
  347. end;
  348. }
  349. 1@ma_b,36,111,4 script #Bakonawan3 844,{
  350. end;
  351. OnInstanceInit:
  352. disablenpc instance_npcname("#Bakonawan3");
  353. end;
  354. OnStart:
  355. enablenpc instance_npcname("#Bakonawan3");
  356. initnpctimer;
  357. monster instance_mapname("1@ma_b"),78,83,"Enraged Bakonawa",2322,1,instance_npcname("#Bakonawan3")+"::OnMyMobDead";
  358. donpcevent instance_npcname("#Bakonawan3-1")+"::OnStart";
  359. end;
  360. OnMyMobDead:
  361. set .@map$, instance_mapname("1@ma_b");
  362. set .@mob_dead_num, mobcount(.@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead");
  363. if (.@mob_dead_num < 1) {
  364. mapannounce .@map$,"Taho: We got him! I can see he has threw up something that looks like a box.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  365. donpcevent instance_npcname("Taho#Completed")+"::OnStart";
  366. donpcevent instance_npcname("#Bakonawan3-1")+"::OnEnd";
  367. killmonster .@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead";
  368. stopnpctimer;
  369. disablenpc instance_npcname("#Bakonawan3");
  370. }
  371. end;
  372. OnTimer1000:
  373. callsub OnAnnounce,"10 minutes",15,1;
  374. end;
  375. OnTimer60000:
  376. OnTimer120000:
  377. OnTimer180000:
  378. OnTimer240000:
  379. donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
  380. end;
  381. OnTimer300000: callsub OnAnnounce,"5 minutes",15,1;
  382. OnTimer360000: callsub OnAnnounce,"4 minutes",15,1;
  383. OnTimer420000: callsub OnAnnounce,"3 minutes",15,1;
  384. OnTimer480000: callsub OnAnnounce,"2 minutes",15,1;
  385. OnTimer540000: callsub OnAnnounce,"1 minute",15,1;
  386. OnTimer570000: callsub OnAnnounce,"30 seconds",15,0;
  387. OnTimer580000: callsub OnAnnounce,"20 seconds",15,0;
  388. OnTimer590000: callsub OnAnnounce,"10 seconds",15,0;
  389. OnTimer595000: callsub OnAnnounce,"5 seconds",16,0;
  390. OnTimer596000: callsub OnAnnounce,"4 seconds",17,0;
  391. OnTimer597000: callsub OnAnnounce,"3 seconds",18,0;
  392. OnTimer598000: callsub OnAnnounce,"2 seconds",19,0;
  393. OnTimer599000: callsub OnAnnounce,"1 second",20,0;
  394. OnTimer600000:
  395. set .@map$, instance_mapname("1@ma_b");
  396. mapannounce .@map$,"Bakonawa has escaped deep into the lake.",bc_map,"0xffff00"; //FW_NORMAL 20 0 0
  397. donpcevent instance_npcname("Taho#Fail")+"::OnStart";
  398. killmonster .@map$,instance_npcname("#Bakonawan3")+"::OnMyMobDead";
  399. stopnpctimer;
  400. disablenpc instance_npcname("#Bakonawan3");
  401. end;
  402. OnAnnounce:
  403. mapannounce instance_mapname("1@ma_b"),"Time Limit: "+getarg(0),bc_map,"0xff4400"; //FW_NORMAL getarg(1) 0 0
  404. if (getarg(2)) donpcevent instance_npcname("#SummonPuppetsn1")+"::OnStart";
  405. end;
  406. }
  407. 1@ma_b,36,111,4 script #Bakonawan3-1 844,{
  408. end;
  409. OnInstanceInit:
  410. disablenpc instance_npcname("#Bakonawan3-1");
  411. end;
  412. OnStart:
  413. initnpctimer;
  414. end;
  415. OnEnd:
  416. killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
  417. //showdigit 0;
  418. stopnpctimer;
  419. end;
  420. OnMyMobDead:
  421. showdigit mobcount(instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead");
  422. end;
  423. OnTimer120000: callsub OnMobSpawn,10;
  424. OnTimer180000: callsub OnMobSpawn,15;
  425. OnTimer240000: callsub OnMobSpawn,20;
  426. //OnTimer300000: callsub OnMobSpawn,25;
  427. OnTimer300000: callsub OnMobSpawn,30;
  428. OnTimer360000: callsub OnMobSpawn,35;
  429. OnTimer420000: callsub OnMobSpawn,40;
  430. OnTimer480000: callsub OnMobSpawn,45;
  431. OnTimer540000: callsub OnMobSpawn,50;
  432. OnTimer600000:
  433. killmonster instance_mapname("1@ma_b"),instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
  434. stopnpctimer;
  435. end;
  436. OnMobSpawn:
  437. set .@label$, instance_npcname("#Bakonawan3-1")+"::OnMyMobDead";
  438. set .@map$, instance_mapname("1@ma_b");
  439. killmonster .@map$,.@label$;
  440. set .@mob_dead_num, mobcount(.@map$,.@label$);
  441. if (.@mob_dead_num < 50) {
  442. set .@mob_rg, 50 - .@mob_dead_num;
  443. if (.@mob_rg > getarg(0))
  444. set .@mob_rg, getarg(0);
  445. while(1) {
  446. areamonster .@map$,74,74,82,74,"Bakonawa's Puppet",2334,1,.@label$;
  447. set .@mob_dead_num, mobcount(.@map$,.@label$);
  448. if (.@mob_dead_num >= .@mob_rg) {
  449. break;
  450. }
  451. }
  452. }
  453. end;
  454. }
  455. 1@ma_b,62,52,4 script Taho#Completed 541,{
  456. disable_items;
  457. if (checkweight(1201,1) == 0) {
  458. mes "It seems you are carrying too many different kinds of items. Please try again after reducing it.";
  459. close;
  460. }
  461. if (MaxWeight - Weight < 10000) {
  462. mes "It seems you are already carrying items of too much weight. Please try again after reducing the weight.";
  463. close;
  464. }
  465. if (checkquest(12279,HUNTING) == 2) {
  466. erasequest 12279;
  467. mes "[Taho]";
  468. mes "This was found from Bakonawa's corpse. It would be better if you take this.";
  469. if (!VIP_SCRIPT || vip_status(VIP_STATUS_ACTIVE))
  470. getitem 6499,7; //Ancient_Grudge
  471. else
  472. getitem 6499,5; //Ancient_Grudge
  473. getexp 0,100000;
  474. next;
  475. }
  476. mes "[Taho]";
  477. mes "We better hurry and get out of this place. This place is still dangerous even without Bakonawa...";
  478. next;
  479. mes "[Taho]";
  480. mes "Then let's use to the rope to go up!";
  481. close2;
  482. warp "ma_scene01",175,176;
  483. end;
  484. OnInstanceInit:
  485. disablenpc instance_npcname("Taho#Completed");
  486. end;
  487. OnStart:
  488. enablenpc instance_npcname("Taho#Completed");
  489. initnpctimer;
  490. end;
  491. OnTimer1000:
  492. monster instance_mapname("1@ma_b"),78,74,"Bakonawa Treasure Box",2335,1;
  493. end;
  494. OnTimer10000:
  495. mapannounce instance_mapname("1@ma_b"),"Taho: After opening the treasure box, please visit me at the top of the hill. I've got something to give to you.",bc_map,"0x00ffff"; //FW_NORMAL 15 0 0
  496. stopnpctimer;
  497. end;
  498. }
  499. 1@ma_b,62,52,4 script Taho#Fail 541,{
  500. mes "[Taho]";
  501. mes "HMM. We almost got him but he is one fast creature...";
  502. next;
  503. if (is_party_leader() == true) {
  504. mes "[Taho]";
  505. mes "Are we going to try again?";
  506. next;
  507. switch(select("Hold on a sec!:Of course! We cannot stand back now!")) {
  508. case 1:
  509. mes "[Taho]";
  510. mes "AWW... I almost brought him out.";
  511. close;
  512. case 2:
  513. mes "[Taho]";
  514. mes "Then I will use Albopal once again to the lake.";
  515. next;
  516. mes "[Taho]";
  517. mes "We are about to see Bakonawa with intenser anger...";
  518. disablenpc instance_npcname("Taho#Fail");
  519. donpcevent instance_npcname("#Bakonawan1")+"::OnStart";
  520. close;
  521. }
  522. close;
  523. } else {
  524. mes "[Taho]";
  525. mes "I am dropping Albopal like I did a while ago. I hope it pisses him off...";
  526. close;
  527. }
  528. OnInstanceInit:
  529. disablenpc instance_npcname("Taho#Fail");
  530. end;
  531. OnStart:
  532. enablenpc instance_npcname("Taho#Fail");
  533. end;
  534. }