Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.66 KB | None | 0 0
  1. //===== Hercules Script ======================================
  2. //= Octopus Cave
  3. //===== By: ==================================================
  4. //= Muad_Dib
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Description: =========================================
  8. //= [Official Conversion]
  9. //= Defeat the Disgusting Octopus.
  10. //===== Additional Comments: =================================
  11. //= 1.0 First version. [Euphy]
  12. //= 1.1 Instance system rewrite. [Euphy]
  13. //============================================================
  14.  
  15. 1@cash mapflag src4instance
  16. //============================================================
  17.  
  18. // Instance Creation
  19. //============================================================
  20. mal_dun01,151,235,5 script Starfish 4_ASTER,{
  21.  
  22. set .@party_id,getcharid(1);
  23. set .@md_name$,"Octopus Cave";
  24.  
  25. if (!.@party_id) {
  26. mes "[Starfish]";
  27. mes "You alone is powerless, hehe!";
  28. mes "Better get someone to help you out.";
  29. mes "Make a party, and come back later.";
  30. close;
  31. }
  32. if (getcharid(0) != getpartyleader(.@party_id,2)) {
  33. mes "[Starfish]";
  34. mes "Where is your leader, hehe.";
  35. mes "I don't talk to some random people.";
  36. mes "Bring your boss to me.";
  37. close;
  38. }
  39. mes "[Starfish]";
  40. mes "I am guarding here, hehe!";
  41. mes "It is just roughly blocked for now.";
  42. mes "But someday this cave must be sealed forever, hehe!";
  43. next;
  44. while(1) {
  45. switch(select("Ask what's going on.:Ask to open the gate.:Go to other location.")) {
  46. case 1:
  47. mes "[Starfish]";
  48. mes "Lately, our Starfish lady is";
  49. mes "suffering with some issues, ooh ooh.";
  50. mes "Something bad happen in this";
  51. mes "peaceful place, hehe!";
  52. next;
  53. mes "[Starfish]";
  54. mes "Weird looking limbs came out";
  55. mes "from the hole there,";
  56. mes "tried to kidnap our lady Starfish.";
  57. mes "Ooh Ooh.";
  58. next;
  59. mes "[Starfish]";
  60. mes "It seems those limbs belong to";
  61. mes "that ugly octopus.";
  62. mes "That monster should be taken care of,";
  63. mes "but it's hard for ourselves only to make it happen, hehe.";
  64. next;
  65. mes "[Starfish]";
  66. mes "I want to find someone special,";
  67. mes "and ask to punish this ugly octopus.";
  68. mes "I hope this octopus won't ever";
  69. mes "harass our lady, hehe.";
  70. next;
  71. mes "[Starfish]";
  72. mes "Go catch that octopus and stick it to this pick.";
  73. mes "If you bring back the pick, I will";
  74. mes "open this gate for a while.";
  75. mes "You should challenge if you are interested, hehe.";
  76. next;
  77. break;
  78. case 2:
  79. set .@playtime, checkquest(4197,PLAYTIME);
  80. if (.@playtime == 0 || .@playtime == 1) {
  81. mes "[Starfish]";
  82. mes "Octopus is not around now, hehe.";
  83. mes "Please come back later.";
  84. close;
  85. }
  86. if (.@playtime == 2) erasequest 4197;
  87. if (countitem(6442)) {
  88. set .@instance,instance_create(.@md_name$,.@party_id);
  89. if (.@instance < 0) {
  90. mes "[Starfish]";
  91. mes "Party name is... "+getpartyname(.@party_id)+".";
  92. mes "Party leader is... "+strcharinfo(0)+".";
  93. mes "^0000ff"+.@md_name$+"^000000, I cannot open now, hehe.";
  94. mes "Now is not the time, please wait.";
  95. close;
  96. }
  97. if (instance_attachmap("1@cash",.@instance) == "") {
  98. mes "^0000ff"+.@md_name$+"^000000 - Reservation Failed!";
  99. instance_destroy(.@instance);
  100. close;
  101. }
  102. instance_set_timeout 3600,300,.@instance;
  103. instance_init(.@instance);
  104.  
  105. mes "[Starfish]";
  106. mes "I will open the gate for a while to ^0000ff"+.@md_name$+"^000000.";
  107. mes "Please catch that pervert octopus,";
  108. mes "and come back with it sticked to the pick, hehe.";
  109. close;
  110. }
  111. mes "[Starfish]";
  112. mes "Prepare a pick first,";
  113. mes "so you can thread that octopus";
  114. mes "with that pick.";
  115. mes "Then, I will let you in for a while, hehe.";
  116. close;
  117. case 3:
  118. mes "[Starfish]";
  119. mes "This is not a good location, check someplace else.";
  120. close;
  121. }
  122. }
  123. }
  124.  
  125. mal_dun01,153,237,5 script Weird Entrance CLEAR_NPC,{
  126. mes "There is a strange entrance";
  127. mes "blocked roughly with some boards.";
  128. next;
  129. switch(select("Go in.:Stop.")) {
  130. case 1:
  131. if (countitem(6442)) {
  132. if (has_instance("1@cash") == "") {
  133. if (checkquest(4197,PLAYTIME) == 0 || checkquest(4197,PLAYTIME) == 1) {
  134. mes "[Starfish]";
  135. mes "Ah, now is not the time...";
  136. mes "Would you come back later? Hehe.";
  137. close;
  138. }
  139. mes "[Starfish]";
  140. mes "Shhh... Weird aura is";
  141. mes "coming from that entrance.";
  142. mes "Big trouble is waiting, if you go in now.";
  143. close;
  144. }
  145. mapannounce "mal_dun01", getpartyname(getcharid(1))+" party's "+strcharinfo(0)+" member started to hunt the Octopus!",bc_map,"0x00ff99";
  146. if (checkquest(4197) == -1) setquest 4197;
  147. warp "1@cash",199,99;
  148. end;
  149. }
  150. mes "[Starfish]";
  151. mes "You should definitely prepare";
  152. mes "hunting stick if you want to";
  153. mes "punish the Octopus.";
  154. mes "Or I will not let you in! Hehe.";
  155. close;
  156. case 2:
  157. mes "[Starfish]";
  158. mes "Yes Yes, you better quit.";
  159. close;
  160. }
  161. }
  162.  
  163. // Instance Scripts
  164. //============================================================
  165. 1@cash,199,99,0 script oct_enter HIDDEN_WARP_NPC,4,4,{
  166. end;
  167. OnTouch:
  168. donpcevent instance_npcname("oct_enter_broad")+"::OnEnable";
  169. specialeffect EF_BASH;
  170. disablenpc instance_npcname("oct_enter");
  171. end;
  172. }
  173.  
  174. 1@cash,1,1,0 script oct_enter_broad -1,{
  175. end;
  176. OnInstanceInit:
  177. donpcevent instance_npcname("oct_enter_broad")+"::OnDisable";
  178. end;
  179. OnEnable:
  180. enablenpc instance_npcname("oct_enter_broad");
  181. donpcevent instance_npcname("oct_foot_4")+"::OnEnable";
  182. donpcevent instance_npcname("oct_mob_con")+"::OnEnable";
  183. initnpctimer;
  184. end;
  185. OnDisable:
  186. disablenpc instance_npcname("oct_enter_broad");
  187. end;
  188. OnTimer1000:
  189. mapannounce instance_mapname("1@cash"),"Pervert Octopus : How dare you to come inside of my place!",bc_map,"0xFFFF00";
  190. end;
  191. OnTimer4000:
  192. mapannounce instance_mapname("1@cash"),"Pervert Octopus : But I blocked all the cave gates!! There is nothing you can do!",bc_map,"0xFFFF00";
  193. end;
  194. OnTimer7000:
  195. mapannounce instance_mapname("1@cash"),"Pervert Octopus : My juniors~ There is your toy! Play with it~ kakaka",bc_map,"0xFFFF00";
  196. stopnpctimer;
  197. donpcevent instance_npcname("oct_enter_broad")+"::OnDisable";
  198. end;
  199. }
  200.  
  201. 1@cash,3,3,0 script oct_foot_4 -1,{
  202. end;
  203. OnInstanceInit:
  204. donpcevent instance_npcname("oct_foot_4")+"::OnDisable";
  205. end;
  206. OnEnable:
  207. enablenpc instance_npcname("oct_foot_4");
  208. donpcevent instance_npcname("oct_foot1")+"::OnEnable";
  209. donpcevent instance_npcname("oct_foot2")+"::OnEnable";
  210. donpcevent instance_npcname("oct_foot3")+"::OnEnable";
  211. donpcevent instance_npcname("oct_foot4")+"::OnEnable";
  212. set .@map$, instance_mapname("1@cash");
  213. monster .@map$,20,114,"Octopus Leg#1",2193,1,instance_npcname("oct_foot_4")+"::OnMyMobDead";
  214. monster .@map$,88,190,"Octopus Leg#2",2193,1,instance_npcname("oct_foot_4")+"::OnMyMobDead";
  215. monster .@map$,307,215,"Octopus Leg#3",2193,1,instance_npcname("oct_foot_4")+"::OnMyMobDead";
  216. monster .@map$,372,131,"Octopus Leg#4",2193,1,instance_npcname("oct_foot_4")+"::OnMyMobDead";
  217. end;
  218. OnDisable:
  219. disablenpc instance_npcname("oct_foot_4");
  220. end;
  221. OnMyMobDead:
  222. set .@map$, instance_mapname("1@cash");
  223. if (mobcount(.@map$,instance_npcname("oct_foot_4")+"::OnMyMobDead") < 1) {
  224. donpcevent instance_npcname("oct_boss_con")+"::OnEnable";
  225. mapannounce .@map$,"Hey you!! I'll personally take care of you all! Let's bring it on!",bc_map,"0x00ff99";
  226. enablenpc instance_npcname("oct_boss_warp");
  227. instance_warpall .@map$,199,99;
  228. end;
  229. }
  230. mapannounce .@map$,"Arrgg!! That hurts!!! I need another strategy...",bc_map,"0x00ff99";
  231. end;
  232. }
  233.  
  234. 1@cash,20,114,0 script oct_foot1 HIDDEN_WARP_NPC,6,6,{
  235. end;
  236. OnInstanceInit:
  237. donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
  238. end;
  239. OnEnable:
  240. enablenpc instance_npcname(strnpcinfo(0));
  241. set .@label$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
  242. set .@i, atoi(charat(strnpcinfo(0),8));
  243. set .@map$, instance_mapname("1@cash");
  244. switch(.@i) {
  245. case 1:
  246. areamonster .@map$,34,96,38,100,"Octopus's Henchman",2192,3,.@label$;
  247. areamonster .@map$,39,90,41,92,"Octopus's Henchman",2192,2,.@label$;
  248. areamonster .@map$,38,76,40,78,"Octopus's Henchman",2192,2,.@label$;
  249. areamonster .@map$,39,58,41,60,"Octopus's Henchman",2192,2,.@label$;
  250. areamonster .@map$,50,38,56,44,"Octopus's Henchman",2192,5,.@label$;
  251. areamonster .@map$,68,32,72,36,"Octopus's Henchman",2192,5,.@label$;
  252. areamonster .@map$,83,26,85,28,"Octopus's Henchman",2192,2,.@label$;
  253. areamonster .@map$,107,28,109,30,"Octopus's Henchman",2192,1,.@label$;
  254. areamonster .@map$,123,28,125,30,"Octopus's Henchman",2192,2,.@label$;
  255. areamonster .@map$,134,31,138,35,"Octopus's Henchman",2192,5,.@label$;
  256. areamonster .@map$,142,39,146,43,"Octopus's Henchman",2192,2,.@label$;
  257. break;
  258. case 2:
  259. areamonster .@map$,139,113,143,117,"Octopus's Henchman",2192,5,.@label$;
  260. areamonster .@map$,135,104,137,106,"Octopus's Henchman",2192,2,.@label$;
  261. areamonster .@map$,123,93,127,97,"Octopus's Henchman",2192,3,.@label$;
  262. areamonster .@map$,113,90,115,92,"Octopus's Henchman",2192,2,.@label$;
  263. areamonster .@map$,103,89,105,91,"Octopus's Henchman",2192,2,.@label$;
  264. areamonster .@map$,89,90,91,92,"Octopus's Henchman",2192,2,.@label$;
  265. areamonster .@map$,74,104,76,106,"Octopus's Henchman",2192,2,.@label$;
  266. areamonster .@map$,74,120,76,122,"Octopus's Henchman",2192,2,.@label$;
  267. areamonster .@map$,83,131,87,135,"Octopus's Henchman",2192,3,.@label$;
  268. areamonster .@map$,92,142,94,144,"Octopus's Henchman",2192,2,.@label$;
  269. areamonster .@map$,98,159,100,161,"Octopus's Henchman",2192,2,.@label$;
  270. areamonster .@map$,94,180,98,184,"Octopus's Henchman",2192,5,.@label$;
  271. break;
  272. case 3:
  273. areamonster .@map$,299,209,303,213,"Octopus's Henchman",2192,3,.@label$;
  274. areamonster .@map$,292,203,296,207,"Octopus's Henchman",2192,3,.@label$;
  275. areamonster .@map$,291,186,293,188,"Octopus's Henchman",2192,2,.@label$;
  276. areamonster .@map$,292,166,294,168,"Octopus's Henchman",2192,2,.@label$;
  277. areamonster .@map$,293,151,295,153,"Octopus's Henchman",2192,2,.@label$;
  278. areamonster .@map$,299,137,303,141,"Octopus's Henchman",2192,2,.@label$;
  279. areamonster .@map$,300,123,304,127,"Octopus's Henchman",2192,2,.@label$;
  280. areamonster .@map$,300,104,304,108,"Octopus's Henchman",2192,3,.@label$;
  281. areamonster .@map$,279,101,281,103,"Octopus's Henchman",2192,2,.@label$;
  282. monster .@map$,260,103,"Octopus's Henchman",2192,1,.@label$;
  283. break;
  284. case 4:
  285. areamonster .@map$,363,123,367,127,"Octopus's Henchman",2192,2,.@label$;
  286. areamonster .@map$,364,108,368,112,"Octopus's Henchman",2192,5,.@label$;
  287. areamonster .@map$,363,93,367,97,"Octopus's Henchman",2192,3,.@label$;
  288. areamonster .@map$,364,72,366,74,"Octopus's Henchman",2192,2,.@label$;
  289. areamonster .@map$,364,58,366,60,"Octopus's Henchman",2192,2,.@label$;
  290. areamonster .@map$,355,44,359,48,"Octopus's Henchman",2192,3,.@label$;
  291. areamonster .@map$,346,36,350,40,"Octopus's Henchman",2192,3,.@label$;
  292. areamonster .@map$,319,28,325,34,"Octopus's Henchman",2192,5,.@label$;
  293. areamonster .@map$,305,27,307,29,"Octopus's Henchman",2192,2,.@label$;
  294. areamonster .@map$,276,29,280,33,"Octopus's Henchman",2192,5,.@label$;
  295. areamonster .@map$,258,37,262,41,"Octopus's Henchman",2192,2,.@label$;
  296. break;
  297. }
  298. end;
  299. OnDisable:
  300. killmonster instance_mapname("1@cash"),instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; // Not in official script.
  301. disablenpc instance_npcname(strnpcinfo(0));
  302. end;
  303. OnTouch:
  304. if (getd("."+strnpcinfo(0)+instance_id())) end;
  305. setd "."+strnpcinfo(0)+instance_id(),1;
  306. hideonnpc instance_npcname(strnpcinfo(0));
  307. mapannounce instance_mapname("1@cash"),"Come out all my babies and help me out!",bc_map,"0xFFFF00";
  308. initnpctimer;
  309. end;
  310. OnTimer5000:
  311. set .@map$, instance_mapname("1@cash");
  312. mapannounce .@map$,"Let's give them a lesson!",bc_map,"0xFFFF00";
  313. set .@label$, instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
  314. set .@i, atoi(charat(strnpcinfo(0),8));
  315. switch(.@i) {
  316. case 1:
  317. areamonster .@map$,18,112,22,116,"Octopus's Henchman",2192,3,.@label$;
  318. areamonster .@map$,18,112,22,116,"Octopus's Henchman",2192,3,.@label$;
  319. break;
  320. case 2:
  321. areamonster .@map$,86,188,90,192,"Octopus's Henchman",2192,3,.@label$;
  322. areamonster .@map$,96,98,100,102,"Octopus's Henchman",2192,3,.@label$;
  323. break;
  324. case 3:
  325. areamonster .@map$,305,213,309,217,"Octopus's Henchman",2192,3,.@label$;
  326. areamonster .@map$,305,213,309,217,"Octopus's Henchman",2192,3,.@label$;
  327. break;
  328. case 4:
  329. areamonster .@map$,370,129,374,133,"Octopus's Henchman",2192,3,.@label$;
  330. areamonster .@map$,370,129,374,133,"Octopus's Henchman",2192,3,.@label$;
  331. break;
  332. }
  333. end;
  334. OnTimer30000:
  335. setd "."+strnpcinfo(0)+instance_id(),0;
  336. stopnpctimer;
  337. set .@i, atoi(charat(strnpcinfo(0),8));
  338. donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
  339. donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
  340. end;
  341. OnMyMobDead:
  342. set .@map$, instance_mapname("1@cash");
  343. if (mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead") < 1) {
  344. mapannounce .@map$,"You hurt my babies!!? You'll have to pay for this!!!",bc_map,"0x00ff99";
  345. setd "."+strnpcinfo(0)+instance_id(),0;
  346. stopnpctimer;
  347. set .@i, atoi(charat(strnpcinfo(0),8));
  348. donpcevent instance_npcname("oct_foot_exit"+.@i)+"::OnEnable";
  349. donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable";
  350. end;
  351. }
  352. end;
  353. }
  354. 1@cash,88,190,0 duplicate(oct_foot1) oct_foot2 HIDDEN_WARP_NPC,6,6
  355. 1@cash,307,215,0 duplicate(oct_foot1) oct_foot3 HIDDEN_WARP_NPC,6,6
  356. 1@cash,372,131,0 duplicate(oct_foot1) oct_foot4 HIDDEN_WARP_NPC,6,6
  357.  
  358. 1@cash,16,117,0 script oct_foot_exit1 WARPNPC,2,2,{
  359. end;
  360. OnInstanceInit:
  361. disablenpc instance_npcname(strnpcinfo(0));
  362. end;
  363. OnEnable:
  364. enablenpc instance_npcname(strnpcinfo(0));
  365. end;
  366. OnTouch:
  367. warp instance_mapname("1@cash"),198,99;
  368. end;
  369. }
  370. 1@cash,77,193,0 duplicate(oct_foot_exit1) oct_foot_exit2 WARPNPC,2,2
  371. 1@cash,312,214,0 duplicate(oct_foot_exit1) oct_foot_exit3 WARPNPC,2,2
  372. 1@cash,370,139,0 duplicate(oct_foot_exit1) oct_foot_exit4 WARPNPC,2,2
  373.  
  374. 1@cash,15,15,0 script oct_mob_con -1,{
  375. end;
  376. OnInstanceInit:
  377. donpcevent instance_npcname("oct_mob_con")+"::OnDisable";
  378. end;
  379. OnEnable:
  380. set .@map$, instance_mapname("1@cash");
  381. enablenpc instance_npcname("oct_mob_con");
  382. monster .@map$,32,94,"Hydra",1068,1;
  383. monster .@map$,41,101,"Hydra",1068,1;
  384. monster .@map$,35,78,"Hydra",1068,1;
  385. monster .@map$,35,62,"Hydra",1068,1;
  386. monster .@map$,49,54,"Hydra",1068,1;
  387. monster .@map$,70,28,"Hydra",1068,1;
  388. monster .@map$,83,22,"Hydra",1068,1;
  389. monster .@map$,99,23,"Hydra",1068,1;
  390. monster .@map$,115,23,"Hydra",1068,1;
  391. monster .@map$,132,25,"Hydra",1068,1;
  392. monster .@map$,100,185,"Hydra",1068,1;
  393. monster .@map$,92,178,"Hydra",1068,1;
  394. monster .@map$,92,162,"Hydra",1068,1;
  395. monster .@map$,70,121,"Hydra",1068,1;
  396. monster .@map$,70,105,"Hydra",1068,1;
  397. monster .@map$,105,85,"Hydra",1068,1;
  398. monster .@map$,121,84,"Hydra",1068,1;
  399. monster .@map$,292,209,"Hydra",1068,1;
  400. monster .@map$,303,206,"Hydra",1068,1;
  401. monster .@map$,290,163,"Hydra",1068,1;
  402. monster .@map$,299,150,"Hydra",1068,1;
  403. monster .@map$,308,141,"Hydra",1068,1;
  404. monster .@map$,308,125,"Hydra",1068,1;
  405. monster .@map$,295,97,"Hydra",1068,1;
  406. monster .@map$,279,97,"Hydra",1068,1;
  407. monster .@map$,370,111,"Hydra",1068,1;
  408. monster .@map$,370,110,"Hydra",1068,1;
  409. monster .@map$,371,96,"Hydra",1068,1;
  410. monster .@map$,371,80,"Hydra",1068,1;
  411. monster .@map$,367,55,"Hydra",1068,1;
  412. monster .@map$,343,29,"Hydra",1068,1;
  413. monster .@map$,327,24,"Hydra",1068,1;
  414. monster .@map$,311,22,"Hydra",1068,1;
  415. monster .@map$,295,22,"Hydra",1068,1;
  416. monster .@map$,279,22,"Hydra",1068,1;
  417. areamonster .@map$,30,67,50,87,"Stapo",1784,1;
  418. areamonster .@map$,102,19,122,39,"Stapo",1784,1;
  419. areamonster .@map$,89,138,109,158,"Stapo",1784,1;
  420. areamonster .@map$,112,83,132,103,"Stapo",1784,1;
  421. areamonster .@map$,283,168,303,188,"Stapo",1784,1;
  422. areamonster .@map$,292,97,312,117,"Stapo",1784,1;
  423. areamonster .@map$,355,64,375,84,"Stapo",1784,1;
  424. areamonster .@map$,317,17,337,37,"Stapo",1784,1;
  425. donpcevent instance_npcname("oct_backattack1")+"::OnEnable";
  426. donpcevent instance_npcname("oct_backattack2")+"::OnEnable";
  427. donpcevent instance_npcname("oct_backattack3")+"::OnEnable";
  428. donpcevent instance_npcname("oct_backattack4")+"::OnEnable";
  429. donpcevent instance_npcname("oct_mob_con")+"::OnDisable";
  430. end;
  431. OnDisable:
  432. disablenpc instance_npcname("oct_mob_con");
  433. end;
  434. }
  435.  
  436. 1@cash,45,53,0 script oct_backattack1 HIDDEN_WARP_NPC,3,3,{
  437. end;
  438. OnInstanceInit:
  439. disablenpc instance_npcname("oct_backattack1");
  440. end;
  441. OnTouch:
  442. set .@map$, instance_mapname("1@cash");
  443. monster .@map$,39,59,"Hydra",1068,1;
  444. monster .@map$,40,59,"Hydra",1068,1;
  445. monster .@map$,41,59,"Hydra",1068,1;
  446. monster .@map$,47,50,"Hydra",1068,1;
  447. monster .@map$,48,50,"Hydra",1068,1;
  448. monster .@map$,49,50,"Hydra",1068,1;
  449. monster .@map$,41,53,"Octopus's Henchman",2192,1;
  450. mapannounce .@map$,"Don't let them break through, stop them!!!",bc_map,"0x00ff99";
  451. specialeffect EF_BASH;
  452. disablenpc instance_npcname("oct_backattack1");
  453. end;
  454. OnEnable:
  455. enablenpc instance_npcname("oct_backattack1");
  456. end;
  457. }
  458.  
  459. 1@cash,78,99,0 script oct_backattack2 HIDDEN_WARP_NPC,3,3,{
  460. end;
  461. OnInstanceInit:
  462. disablenpc instance_npcname("oct_backattack2");
  463. end;
  464. OnTouch:
  465. if (getd("."+instance_id())) end;
  466. setd "."+instance_id(),1;
  467. initnpctimer;
  468. set .@map$, instance_mapname("1@cash");
  469. monster .@map$,71,105,"Octopus's Henchman ",2192,1;
  470. mapannounce .@map$,"Headquarters are empty, GO!!!",bc_map,"0x00ff99";
  471. hideonnpc instance_npcname("oct_backattack2");
  472. end;
  473. OnTimer2000:
  474. set .@map$, instance_mapname("1@cash");
  475. monster .@map$,71,105,"Octopus's Henchman ",2192,1;
  476. mapannounce .@map$,"Run, RUN! Go, GO!!!",bc_map,"0x00ff99";
  477. end;
  478. OnTimer4000:
  479. set .@map$, instance_mapname("1@cash");
  480. monster .@map$,71,105,"Octopus's Henchman ",2192,1;
  481. mapannounce .@map$,"No time, come out fast!",bc_map,"0x00ff99";
  482. end;
  483. OnTimer6000:
  484. set .@map$, instance_mapname("1@cash");
  485. monster .@map$,71,105,"Octopus's Henchman ",2192,3;
  486. mapannounce .@map$,"Let's take over the headquarters!!!",bc_map,"0x00ff99";
  487. end;
  488. OnTimer8000:
  489. set .@map$, instance_mapname("1@cash");
  490. monster .@map$,71,105,"Octopus's Henchman ",2192,1;
  491. mapannounce .@map$,"There is no time to lose, hurry up!!!",bc_map,"0x00ff99";
  492. stopnpctimer;
  493. end;
  494. OnEnable:
  495. enablenpc instance_npcname("oct_backattack2");
  496. end;
  497. }
  498.  
  499. 1@cash,299,144,0 script oct_backattack3 HIDDEN_WARP_NPC,3,3,{
  500. end;
  501. OnInstanceInit:
  502. disablenpc instance_npcname("oct_backattack3");
  503. end;
  504. OnTouch:
  505. if (getd("."+instance_id())) end;
  506. setd "."+instance_id(),1;
  507. set .@map$, instance_mapname("1@cash");
  508. monster .@map$,293,153,"Octopus's Henchman ",2192,1;
  509. monster .@map$,294,152,"Octopus's Henchman ",2192,1;
  510. monster .@map$,292,153,"Octopus's Henchman ",2192,1;
  511. monster .@map$,293,151,"Octopus's Henchman ",2192,1;
  512. monster .@map$,293,152,"Octopus's Henchman ?",2175,1;
  513. mapannounce .@map$,"Kakaka! Suprised??!!",bc_map,"0x00ff99";
  514. initnpctimer;
  515. hideonnpc instance_npcname("oct_backattack3");
  516. end;
  517. OnTimer5000:
  518. mapannounce instance_mapname("1@cash"),"... Looks like we have a spy among us.",bc_map,"0x00ff99";
  519. stopnpctimer;
  520. end;
  521. OnEnable:
  522. enablenpc instance_npcname("oct_backattack3");
  523. end;
  524. }
  525.  
  526. 1@cash,336,36,0 script oct_backattack4 HIDDEN_WARP_NPC,3,3,{
  527. end;
  528. OnInstanceInit:
  529. disablenpc instance_npcname("oct_backattack4");
  530. end;
  531. OnTouch:
  532. if (getd("."+instance_id())) end;
  533. setd "."+instance_id(),1;
  534. set .@map$, instance_mapname("1@cash");
  535. monster .@map$,332,37,"Octopus's Henchman ",2192,1;
  536. monster .@map$,332,36,"Octopus's Henchman ",2192,1;
  537. monster .@map$,332,35,"Octopus's Henchman ",2192,1;
  538. monster .@map$,332,34,"Octopus's Henchman ",2192,1;
  539. monster .@map$,341,37,"Octopus's Henchman ",2192,1;
  540. monster .@map$,341,36,"Octopus's Henchman ",2192,1;
  541. monster .@map$,341,35,"Octopus's Henchman ",2192,1;
  542. monster .@map$,341,34,"Octopus's Henchman ",2192,1;
  543. monster .@map$,260,40,"Mercenary Squid",2175,1;
  544. monster .@map$,260,41,"Mercenary Squid",2175,1;
  545. monster .@map$,260,39,"Mercenary Squid",2175,1;
  546. monster .@map$,259,40,"Mercenary Squid",2175,1;
  547. monster .@map$,261,40,"Mercenary Squid",2175,1;
  548. mapannounce .@map$,"What a successful pincer tactic! The enemy is strong! Let's not lose yourselves! Anyway, where are all the mercenaries??",bc_map,"0x00ff99";
  549. initnpctimer;
  550. hideonnpc instance_npcname("oct_backattack4");
  551. end;
  552. OnTimer5000:
  553. mapannounce instance_mapname("1@cash"),"Mercenary Squid : eh...eh... wrong direction. No enemies are shown in this direction.",bc_map,"0x00ff99";
  554. end;
  555. OnTimer7000:
  556. mapannounce instance_mapname("1@cash"),"Pervert Octopus : Fools! Can't you read the map??!! Useless!!",bc_map,"0x00ff99";
  557. stopnpctimer;
  558. end;
  559. OnEnable:
  560. enablenpc instance_npcname("oct_backattack4");
  561. end;
  562. }
  563.  
  564. 1@cash,2,2,0 script oct_boss_con -1,{
  565. end;
  566. OnInstanceInit:
  567. donpcevent instance_npcname("oct_boss_con")+"::OnDisable";
  568. end;
  569. OnDisable:
  570. disablenpc instance_npcname("oct_boss_con");
  571. end;
  572. OnEnable:
  573. enablenpc instance_npcname("oct_boss_con");
  574. donpcevent instance_npcname("oct_boss_foot")+"::OnEnable";
  575. monster instance_mapname("1@cash"),199,188,"Disgusting Octopus",2194,1,instance_npcname("oct_boss_con")+"::OnMyMobDead";
  576. initnpctimer;
  577. end;
  578. OnTimer7000:
  579. callsub OnAnnounce,
  580. "You won't attack the one man.",
  581. "I got fired from ink manufacturer last week.",
  582. "Disgusting Octopus : Arghhhhh, come on!";
  583. end;
  584. OnTimer14000:
  585. callsub OnAnnounce,
  586. "Why... why can't you know my heart!",
  587. "Do you know how hard it is to live these days because there are not many new adventurers?",
  588. "You.. I'll destroy you all...!";
  589. end;
  590. OnTimer21000:
  591. callsub OnAnnounce,
  592. "What? I'm a disgusting octopus? You're sadists.",
  593. "Let's not do this and how about we look for the best solution, huh??",
  594. "Even if I fail here, I will keep coming back, forever!!!";
  595. end;
  596. OnTimer28000:
  597. callsub OnAnnounce,
  598. "Instinct of mating is for males, what did I do wrong?",
  599. "Do you really want to solve the problem between humans by violence?? Ah, I'm an octopus...",
  600. "That's enough! Back off!";
  601. end;
  602. OnTimer35000:
  603. callsub OnAnnounce,
  604. "Do I have to spend Christmas alone again...",
  605. "Youth unemployment became a big issue these days... You won't get a job if you keep playing with me here.",
  606. "This is as far as I can go!";
  607. end;
  608. OnTimer42000:
  609. callsub OnAnnounce,
  610. "Hand on your heart and think if you come onto anyone...",
  611. "Let's not do this here and follow the law!",
  612. "You'll keep on doing this til the end, is that it?";
  613. end;
  614. OnTimer49000:
  615. callsub OnAnnounce,
  616. "errrrrrrrrrrrrrrrrrrrrrrrr... Cough! Cough!",
  617. "Disgusting Octopus : Violence cannot be justified in any case.",
  618. "This is my place!!!";
  619. stopnpctimer;
  620. initnpctimer;
  621. end;
  622. OnAnnounce:
  623. mapannounce instance_mapname("1@cash"),"Disgusting Octopus : "+getarg(rand(3)),bc_map,"0xFFFF00";
  624. return;
  625. OnMyMobDead:
  626. set .@map$, instance_mapname("1@cash");
  627. if (mobcount(.@map$,instance_npcname("oct_boss_con")+"::OnMyMobDead") < 1) {
  628. mapannounce .@map$,"Disgusting Octopus : That's it for the today! Next time, I will play with you badly!",bc_map,"0xFFFF00";
  629. enablenpc instance_npcname("oct_exit_1");
  630. enablenpc instance_npcname("oct_exit_2");
  631. donpcevent instance_npcname("oct_boss_foot")+"::OnDisable";
  632. stopnpctimer;
  633. donpcevent instance_npcname("oct_boss_con")+"::OnDisable";
  634. end;
  635. }
  636. end;
  637. }
  638.  
  639. 1@cash,4,4,0 script oct_boss_foot -1,{
  640. end;
  641. OnInstanceInit:
  642. donpcevent instance_npcname("oct_boss_foot")+"::OnDisable";
  643. end;
  644. OnEnable:
  645. enablenpc instance_npcname("oct_boss_foot");
  646. initnpctimer;
  647. end;
  648. OnCall:
  649. set .@map$, instance_mapname("1@cash");
  650. if (mobcount(.@map$,instance_npcname("oct_boss_foot")+"::OnMyMobDead") < 100) {
  651. switch(rand(2)) {
  652. case 0:
  653. mapannounce .@map$,"Disgusting Octopus : Do you know how many legs octopus have? It doesn't matter, I have unlimited legs!!",bc_map,"0xFFFF00";
  654. areamonster .@map$,192,181,206,195,"Octopus Leg",2193,1,instance_npcname("oct_boss_foot")+"::OnMyMobDead";
  655. break;
  656. case 1:
  657. mapannounce .@map$,"Disgusting Octopus : I...cannot..hold anymore, my babies~ please come out and fight!",bc_map,"0xFFFF00";
  658. areamonster .@map$,192,181,206,195,"Octopus's Henchman ",2192,5,instance_npcname("oct_boss_foot")+"::OnMyMobDead";
  659. break;
  660. }
  661. }
  662. initnpctimer;
  663. end;
  664. OnTimer10000:
  665. stopnpctimer;
  666. donpcevent instance_npcname("oct_boss_foot")+"::OnCall";
  667. end;
  668. OnDisable:
  669. stopnpctimer;
  670. killmonster instance_mapname("1@cash"),instance_npcname("oct_boss_foot")+"::OnMyMobDead"; // Not in official script.
  671. disablenpc instance_npcname("oct_boss_foot");
  672. end;
  673. OnMyMobDead:
  674. end;
  675. }
  676.  
  677. 1@cash,198,116,0 script oct_boss_warp WARPNPC,2,2,{
  678. end;
  679. OnInstanceInit:
  680. disablenpc instance_npcname("oct_boss_warp");
  681. end;
  682. OnTouch:
  683. warp instance_mapname("1@cash"),210,172;
  684. end;
  685. }
  686.  
  687. 1@cash,190,208,0 script oct_exit_1 WARPNPC,2,2,{
  688. end;
  689. OnInstanceInit:
  690. disablenpc instance_npcname(strnpcinfo(0));
  691. end;
  692. OnTouch:
  693. mes "Do you want to go out from the octopus dungeon?";
  694. next;
  695. if(select("No!:Yes!") == 2)
  696. warp "mal_dun01",153,233;
  697. close;
  698. }
  699. 1@cash,198,82,0 duplicate(oct_exit_1) oct_exit_2 WARPNPC,2,2
  700. // This is never enabled in the official script.
  701. //1@cash,200,161,0 duplicate(oct_exit_1) oct_exit_3 WARPNPC,2,2
  702.  
  703. // Warp Portals
  704. //============================================================
  705. 1@cash,193,82,0 warp oct_door1 2,2,1@cash,151,48
  706. 1@cash,154,53,0 warp oct_door2 2,2,1@cash,197,87
  707. 1@cash,187,99,0 warp oct_door3 2,2,1@cash,148,128
  708. 1@cash,153,133,0 warp oct_door4 2,2,1@cash,197,99
  709. 1@cash,209,100,0 warp oct_door5 2,2,1@cash,250,111
  710. 1@cash,244,118,0 warp oct_door6 2,2,1@cash,199,100
  711. 1@cash,209,83,0 warp oct_door7 2,2,1@cash,252,46
  712. 1@cash,246,53,0 warp oct_door8 2,2,1@cash,203,83
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement