Jump to content

LimpBizkit

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Server
    Developing OWN

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LimpBizkit's Achievements

Poring

Poring (1/15)

0

Reputation

  1. I tried to follow the steps of this https://github.com/rathena/rathena/pull/1889 now my server is broken
  2. Hi newbie here can you help me guys. i have error loading the script. OnEnable: hideoffnpc instance_npcname("#fwormboss50"); end; OnDisable: hideonnpc instance_npcname("#fwormboss50"); end; OnTimer15000: if (unitexist('5BOSS)) donpcevent instance_npcname("#fwormboss5")+"::OnCalm"; stopnpctimer; end; } Full script form Github: //===== rAthena Script ======================================= //= Faceworm's Nest //===== By: ================================================== //= exneval //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= [Official Conversion] //= Faceworm Nest Instance //===== Additional Comments: ================================= //= 1.0 First version. //============================================================ // Timeless Item Quests // The Owner Of Old Ring //============================================================ payon,157,54,5 script An Old Woman#pa0829 8_F_GRANDMOTHER,{ if (!checkweight(1201,1)) { mes "You have too many kind of belongings. Let's try again after reducing the kind of items."; close; } if (MaxWeight - Weight < 1000) { mes "Your belongings are too heavy to continue. Let's try again after reducing the weight."; close; } if (BaseLevel < 140) { mes "[Jeum-sun]"; mes "I am still living in the memory. Make more memories..."; next; mes "[Jeum-sun]"; mes "Oh are you level 140 yet? I won't talk to any weak adventurers."; close; } set [email protected]_time,isbegin_quest(12326,PLAYTIME); if ([email protected]_time) { mes "[Jeum-sun]"; mes "When I was a young girl many years ago there was a man who I had crush on. I didn't know to tell him how I felt..."; next; mes "[Jeum-sun]"; mes "I used to tease his Peco Peco and wanted him to notice that I was interested. This went on and on for a while."; next; mes "[Jeum-sun]"; mes "Then we started dating somehow. It's still embarrasing to talk about it."; next; mes "[Jeum-sun]"; mes "Anyway, we got married when we became old enough to marry. He used to say sorry for not being able to afford to buy a ring for me."; next; mes "[Jeum-sun]"; mes "It has been 40 years since we were married and he still says ^0000ff'Darling~ Do you want to have a ring?'^000000."; next; mes "[Jeum-sun]"; mes "I told him.. What good is a ring for an old lady?"; next; mes "[Jeum-sun]"; mes "I should have stopped him. I still remember his face early."; next; select("What happened to him?"); mes "[Jeum-sun]"; mes "He had not came back since he left home to buy a ring."; next; mes "^0000ffThe old lady turned her face down with reddened eyes.^000000"; if (countitem(6650)) { next; if (select("Stop talking.:Show the ring from the Faceworm's Nest.") == 2) { mes "[Jeum-sun]"; mes "What about this ring?"; next; mes "[Jeum-sun]"; mes "Oh... Darling~"; next; mes "^0000ffThe lady read an inscription inside the ring and started weeping."; mes "[Jeum-sun, my darling flower]^000000"; next; mes "^0000ffYou sense a warm energy emanating. Maybe this is the wish of the man who made this ring.^000000"; specialeffect EF_SPHERE; next; mes "The warm energy has inspired you with strength."; delitem 6650,1; //Shabby_Ring setquest 12326; getexp 70000,55000; } } } else if ([email protected]_time == 1) mes "The lady keeps crying over and over holding a ring. It seems to be no use talking to her right now."; else if ([email protected]_time == 2) { mes "Sadly, this woman does not seem to remember the past because of abrupt emotional changes. Let's talk carefully and listen to her story."; erasequest 12326; } close; } // The Memory Of Old Photo Album //============================================================ payon,161,54,3 script Exotic Merchant#pa0829 4W_M_03,{ if (!checkweight(1201,1)) { mes "You have too many types of belongings. Let's try again after reducing the types of items."; close; } if (MaxWeight - Weight < 1000) { mes "Your belongings are too heavy to continue. Let's try again after reducing the weight."; close; } if (BaseLevel < 140) { mes "[Sergio]"; mes "Fortune or fame is not important. The most important thing is family."; next; mes "[Sergio]"; mes "Are you at least level 140 yet?"; close; } set [email protected]_time,isbegin_quest(12327,PLAYTIME); if ([email protected]_time) { mes "[Sergio]"; mes "I have a blurry memory of when I used to travel with my father's armed-merchant group."; next; mes "[Sergio]"; mes "I vaguely remember everyone of the group were scattered after being attacked by a giant snake-like creature."; next; mes "[Sergio]"; mes "I had lost my family at that time. I do not clearly remember even their faces."; next; mes "[Sergio]"; mes "Now I've made my own armed-merchant group and got my life back. But the memory of my past keeps haunting me."; next; mes "[Sergio]"; mes "I just stopped by this town to possibly find a record of my family and the armed-merchant group but so far I've found nothing."; if (countitem(6652)) { next; if (select("Stop talking.:Show him the Old Photo Album") == 2) { mes "[Sergio]"; mes "Yes! I remembered. This is the one who used to work for my father's armed-merchant group."; next; mes "[Sergio]"; mes "Oh my... There are other pictures here too..."; next; mes "^0000ffA smile of lonely satisfaction spreads over the face of Sergio while looking at a photo album.^000000"; next; mes "^0000ffA gentle energy surrounds Sergio.^000000"; specialeffect EF_SPHERE; next; mes "You are touched by seeing the satisfaction on Sergio's face."; delitem 6652,1; setquest 12327; getexp 70000,55000; } } } else if ([email protected]_time == 1) mes "Sergio keeps looking at the photo album. Let's leave him alone."; else if ([email protected]_time == 2) { mes "You can talk to Sergio again when you pick up a new photo album from the Faceworm's Nest."; erasequest 12327; } close; } // Dol-Seoi's Sorrow //============================================================ payon,161,50,1 script Strong Looking Man#pa829 4_M_ORIENT01,{ if (!checkweight(1201,1)) { mes "You have too many types of belongings. Let's try again after reducing the types of items."; close; } if (MaxWeight - Weight < 1000) { mes "Your belongings are too heavy to continue. Let's try again after reducing the weight."; close; } if (BaseLevel < 140) { mes "[Dol-Seoi]"; mes "What can I do for you?"; next; mes "[Dol-Seoi]"; mes "Are you at least level 140 yet?"; close; } set [email protected]_time,isbegin_quest(12328,PLAYTIME); if ([email protected]_time) { mes "[Dol-Seoi]"; mes "I used to be a servant to a very wealthy lady. She was always kind to me but she suffered from a severe cough that wouldn't go away unless she took a special pill."; next; mes "[Dol-Seoi]"; mes "I used to get the pill from a group of armed-merchants but I heard that they were attacked by a snake and that's when I couldn't get any more pills."; next; mes "[Dol-Seoi]"; mes "I searched everywhere but no one could get that pill for me so eventually my lady passed away. If it wasn't for that slithering..."; next; select("Do you want to revenge?"); mes "[Dol-Seoi]"; mes "Well..."; next; mes "[Dol-Seoi]"; mes "Yes... But, I have nothing to do with that snake. I am just a worthless servant who once served for my lady."; next; mes "^0000ffYou catch a glimpse of complicated rage and sorrow in his eyes.^000000"; if (countitem(6653)) { next; if (select("Stop talking.:Show him the Old Pill.") == 2) { mes "[Dol-Seoi]"; mes "Wait! Where did you get this?"; next; select("I killed a snake..."); mes "[Dol-Seoi]"; mes "This pill... My lady, if I had this pill..."; next; mes "^0000ffHe begins to weep like a wounded Muka. She must have meant a lot to him...^000000"; next; mes "^0000ffI feel gentle energy around Dol-Seoi.^000000"; specialeffect EF_SPHERE; delitem 6653,1; setquest 12328; getexp 70000,55000; } } } else if ([email protected]_time == 1) mes "Dol-Seoi is standing absent-mindedly clutching the Old Pill. Let's leave him alone now."; else if ([email protected]_time == 2) { mes "You can talk to Dol-Seoi again if you get another Old Pill from the Faceworm's Nest."; erasequest 12328; } close; } // Keaton's Bracelet //============================================================ payon,139,68,4 script A dreary man#pa0829 4_M_NFDEADMAN,{ if (!checkweight(1201,1)) { mes "You have too many types of belongings. Let's try again after reducing the types of items."; close; } if (MaxWeight - Weight < 1000) { mes "Your belongings are too heavy to continue. Let's try again after reducing the weight."; close; } if (BaseLevel < 140) { mes "[Keaton]"; mes "..."; next; mes "[Keaton]"; mes "Unless you're level 140, I won't have a real conversation with you."; close; } set [email protected]_time,isbegin_quest(12329,PLAYTIME); if ([email protected]_time) { mes "^0000ffIt looks like a dead soul but you don't feel maliciousness from it. His thoughts have been delivered piece by piece so it isn't easy to understand.^000000"; next; mes "^999999[Keaton]"; mes "Keaton... Not good at speaking.^000000"; next; mes "^999999[Keaton]"; mes "Keaton has died long time ago. Keaton is not bad.^000000"; next; mes "^999999[Keaton]"; mes "Keaton... Need bracelet, that is important. Keaton's friend gave the bracelet.^000000"; next; mes "^999999[Keaton]"; mes "Keaton, will go after a snake to find a bracelet. The bad snake killed keaton.^000000"; if (countitem(6651)) { next; if (select("Stop talking.:Show him the Rusty Bracelet.") == 2) { mes "^999999[Keaton]"; mes "It is the bracelet of Keaton!!^000000"; specialeffect EF_MAPPILLAR2; next; mes "^999999[Keaton]"; mes "Keaton...glad. Defeat bad snake!!^000000"; next; mes "^0000ffKeaton seems to shine brighter.^000000"; delitem 6651,1; setquest 12329; getexp 70000,55000; } } } else if ([email protected]_time == 1) mes "Keaton's soul seems to be smiling. Best to give him whatever peace he can have for now."; else if ([email protected]_time == 2) { mes "Keaton is very sad maybe it is because the bracelet was broken. Bring him any other Rusty Bracelets found in the Faceworm's Nest."; erasequest 12329; } close; } dali,83,67,5 script Old Sign#1 4_BOARD3,{ set [email protected]_str$,$120719_str_face$; set [email protected]_num,$120719_num_face; set [email protected]_num2,$120903_num_face; set [email protected]_m,[email protected]_num/60; set [email protected]_s,[email protected]_num-([email protected]_m*60); if ([email protected]_num < 60) set [email protected]_txt$,[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); else set [email protected]_txt$,[email protected]_m+" "+([email protected]_m>1?"Minutes":"Minute")+" "[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); if ([email protected]_str$ == "" || [email protected]_str$ == "0") { mes "There's no sign because no one updates the record."; //Custom text close; } else { if ([email protected]_num2) { mes "-- Faceworm's Nest Records --"; mes "Best time belongs to adventurer ^ff0044"[email protected]_str$+"^000000."; mes "Current record time is ^0000ff"[email protected]_txt$+"^000000."; close; } else { mes "-- Faceworm's Nest Records --"; mes "Best time belongs to adventurer ^ff0044"[email protected]_str$+"^000000 with ^ff0044"[email protected]_num2+" party "+([email protected]_num2>1?"members":"member")+"^000000."; mes "Current record time is ^0000ff"[email protected]_txt$+"^000000."; close; } } end; OnInit: if (!$120719_num_face) set $120719_num_face,3600; if (rand(1,100) > 97) { set $120719_num_face,3600; set $120719_str_face$,""; } end; } dali,80,60,4 script Magic Scholar 4_M_SAGE_C,{ if (BaseLevel < 140) { mes "[Magic Scholar]"; mes "You are not qualified enough to enter here. How about visiting other places until you become level 140."; close; } set [email protected]_id,getcharid(1); set [email protected]_mas,getpartyleader([email protected]_id,2); set [email protected]_name$,getpartyname([email protected]_id); set [email protected]_reader$,strcharinfo(0); set [email protected]_name$,"Faceworm's Nest"; set [email protected]_time,isbegin_quest(12325,PLAYTIME); if (!instance_check_party([email protected]_id)) { mes "[Magic Scholar]"; mes "You don't have a party? Please come back again after creating a party even if you've come alone."; close; } if ([email protected]_time) { if (getcharid(0) == [email protected]_mas) { mes "[Magic Scholar]"; mes "What can I do for you?"; next; switch (select("Reserve Faceworm's Nest:What are you doing here?:Stop Talking.")) { case 1: switch (instance_create([email protected]_name$)) { case -3: dispbottom "Memorial Dungeon, '"[email protected]_name$+"' is already in progress.",0xFFFFFF; break; case -4: case -2: case -1: mes "[Magic Scholar]"; mes "Oops, my hands are slip off. It is required to activate the craks again."; close; } mes "[Magic Scholar]"; mes "The spaces are under control."; mes "Please wait for a minute."; close; case 2: break; case 3: mes "[Magic Scholar]"; mes "Okay, I got it. Please come back again if you change your mind."; close; } } mes "[Magic Scholar]"; mes "I am researching the dimensional cracks in space here."; next; mes "[Magic Scholar]"; mes "My research is to stabilize the space here with magic to utilize it for dimensional travel."; next; mes "[Magic Scholar]"; mes "This particular crack in space goes to a memory of the past. Many adventurers have been in there but no one will tell me what is in there..."; next; mes "[Magic Scholar]"; mes "And there's this strange sign here that records names and times on it which I can only assume belongs to those adventurers."; next; mes "[Magic Scholar]"; mes "Anyways, I can activate the passage for you if you're a party leader."; close; } else if ([email protected]_time == 1) { mes "[Magic Scholar]"; mes "The crack in time is not safe enough to pass back and forth. Please come back again if the after effect timer has passed."; close; } else if ([email protected]_time == 2) { mes "^0000ffThe trace of dimensional space travelling has disappeared. You can now move between dimensions.^000000"; erasequest 12325; close; } } dali,72,55,4 script Interdimensional Device CLEAR_NPC,{ if (BaseLevel < 140) { mes "[Interdimensional Device]"; mes "Your power level is not high enough to travel the space. Please come back again when you reach at least level 140."; close; } set [email protected]_id,getcharid(1); set [email protected]_mas,getpartyleader([email protected]_id,2); set [email protected]_name$,getpartyname([email protected]_id); set [email protected]_reader$,strcharinfo(0); set [email protected]_name$,"Faceworm's Nest"; set [email protected]_time,isbegin_quest(12325,PLAYTIME); if (!instance_check_party([email protected]_id)) { mes "[Interdimensional Device]"; mes "No party? Please come back again after creating a party even if you've come alone."; close; } if ([email protected]_time) { switch (instance_enter([email protected]_name$)) { case 3: mes "[Interdimensional Device]"; mes "An unknown error has occurred."; close; case 2: mes "[Interdimensional Device]"; mes "The passage for space travel is not activated yet."; close; case 1: //Custom text mes "[Interdimensional Device]"; mes "You are not allowed to access the device."; close; case 0: mapannounce "dali",[email protected]_name$+" party's party member "[email protected]_reader$+" enters "[email protected]_name$+".",bc_map,"0x00ff99"; setquest 12325; //warp "[email protected]",112,374; end; } } else if ([email protected]_time == 1) { mes "[Interdimensional Device]"; mes "Traces of recent space travel have been detected. Access is denied."; close; } else if ([email protected]_time == 2) { mes "^0000ffThe trace of dimensional space travelling has disappeared. You can now move between dimensions.^000000"; erasequest 12325; close; } } // Instance Scripts :: in_face // 1st Stage //============================================================ [email protected],110,348,6 script Chaos#0 4_M_CHAOS,{ cutin "h_chaos01",2; if (getcharid(0) != getpartyleader(getcharid(1),2)) { mes "[Chaos]"; mes "I do not know what this is about, but I'm talking to your leader so please wait for a while ok?"; close2; cutin "h_chaos01",255; end; } mes "[Chaos]"; mes "Really? I didn't know that a bounty hunter was coming here."; unittalk getnpcid(0),"Chaos: Really? I didn't know that a bounty hunter was coming here."; next; select("Wait! It's a misunderstanding."); cutin "h_chaos01",255; mes "["+strcharinfo(0)+"]"; mes "No! I think you're mistaken! We are not bounty hunters..."; unittalk getcharid(3),strcharinfo(0)+": No! I think you're mistaken! We are not bounty hunters..."; next; cutin "h_chaos01",2; mes "[Chaos]"; mes "No, No need to make an excuse... The faceworm belongs to nobody."; unittalk getnpcid(0),"Chaos: No, No need to make an excuse... The faceworm belongs to nobody."; next; select("Faceworm?"); cutin "h_chaos01",255; mes "["+strcharinfo(0)+"]"; mes "Faceworm? I've never heard about it."; unittalk getcharid(3),strcharinfo(0)+": Faceworm? I've never heard about it."; close2; donpcevent instance_npcname("Chaos#01")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#0")+"::OnEnable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#0"); end; OnDisable: hideonnpc instance_npcname("Chaos#0"); end; } [email protected],110,348,6 script Chaos#01 4_M_CHAOS,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); donpcevent instance_npcname("#globaltimer22")+"::OnT_s"; donpcevent instance_npcname("Chaos#01")+"::OnEnable"; donpcevent instance_npcname("Chaos#0")+"::OnDisable"; sleep 5000; unittalk getnpcid(0),"Chaos: Hahaha, you really never heard about it? Faceworm is the name of a monster which has recently showed up in this area."; sleep 5000; unittalk getnpcid(0),"Chaos: I don't care. I would not care as long as you don't disturb me."; sleep 5000; unittalk getnpcid(0,instance_npcname("Iris#0")),"Iris: Ah~ A gentle breeze~"; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#0")),"Iris: Hehe, the weather has been great. I'm so happy~"; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#0")),"Iris: How about you Chaos?"; sleep 3000; unittalk getnpcid(0),"Chaos: It will only be for the time being."; sleep 3000; unittalk getnpcid(0),"Chaos: A black wind has started blowing."; sleep 4000; unittalk getnpcid(0),"Chaos: Iris! I feel like faceworms are around here. Maybe, the queen's nest is in the deepest side of this forest!"; sleep 5000; unittalk getnpcid(0,instance_npcname("Iris#0")),"Iris: Ahah~ Let's take care of it as always like usual ok?"; sleep 3000; unittalk getnpcid(0),"Chaos: Yes, let's take care of it and go back. Hey, adventurers. Watch out! I'm sure lots of faceworms will be here soon."; sleep 6000; donpcevent instance_npcname("Chaos#01")+"::OnDisable"; donpcevent instance_npcname("Iris#0")+"::OnDisable"; donpcevent instance_npcname("#fwormcontrol1")+"::OnStart"; mapannounce [email protected]$,"Faceworm time attack has started. Faster kill times gives a higher percentage of rewards.",bc_map,"0xffffff"; donpcevent instance_npcname("#fwormprize1")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#01")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#01"); end; OnDisable: hideonnpc instance_npcname("Chaos#01"); end; } [email protected],116,346,3 script Iris#0 4_F_IRIS,{ cutin "h_iris02",2; mes "[Iris]"; mes "Sorry~ I enjoy a gentle breeze so talk to me next time."; close2; cutin "h_iris02",255; end; OnInstanceInit: donpcevent instance_npcname("Iris#0")+"::OnEnable"; end; OnEnable: hideoffnpc instance_npcname("Iris#0"); end; OnDisable: hideonnpc instance_npcname("Iris#0"); end; } [email protected],1,5,3 script #fwormcontrol1 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_c,getmapusers([email protected]$)+1; set [email protected]_num,[email protected]_c*2; areamonster [email protected]$,65,330,179,336,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol1")+"::OnMyMobDead"; set [email protected]_num,[email protected]_c*7; areamonster [email protected]$,62,62,68,332,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol1")+"::OnMyMobDead"; set [email protected]_num,[email protected]_c*2; areamonster [email protected]$,66,59,172,65,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol1")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormcontrol1")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormcontrol1"); end; OnDisable: hideonnpc instance_npcname("#fwormcontrol1"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormcontrol1")+"::OnMyMobDead"); mapannounce [email protected]$,"There are "[email protected]_dead_num+" "+([email protected]_dead_num>1?"faceworms":"faceworm")+" still alive.",bc_map,"0xffffff"; if ([email protected]_dead_num < 3) initnpctimer; end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormcontrol1")+"::OnMyMobDead"; donpcevent instance_npcname("#fwormboss1")+"::OnStart"; mapannounce [email protected]$,"A giant faceworm has suddenly appeared.",bc_map,"0xffffff"; stopnpctimer; end; } [email protected],1,4,3 script #fwormboss1 CLEAR_NPC,{ end; OnHeal04: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,([email protected]+1)*150000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,5200000-(([email protected])*200000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '1BOSS,2,[email protected]; mapannounce [email protected]$,"Dark faceworm absorbs the energy of 4 unbroken eggs recovering "[email protected]_hpp+" energy.",bc_map,"0xff00ee"; end; OnHeal03: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,([email protected]+1)*55000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,5200000-(([email protected])*200000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '1BOSS,2,[email protected]; mapannounce [email protected]$,"Dark faceworm absorbs the energy of 3 unbroken eggs recovering "[email protected]_hpp+" energy.",bc_map,"0xff00ee"; end; OnHeal02: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,([email protected]+1)*20000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,5200000-(([email protected])*200000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '1BOSS,2,[email protected]; mapannounce [email protected]$,"Dark faceworm absorbs the energy of 2 unbroken eggs recovering "[email protected]_hpp+" energy.",bc_map,"0xff00ee"; end; OnHeal01: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,([email protected]+1)*7200; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,5200000-(([email protected])*200000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '1BOSS,2,[email protected]; mapannounce [email protected]$,"Dark faceworm absorbs the energy of 1 unbroken egg recovering "[email protected]_hpp+" energy.",bc_map,"0xff00ee"; end; OnStart: set [email protected]$,instance_mapname("[email protected]"); areamonster [email protected]$,140,69,150,79,"Dark Faceworm",2530,1,instance_npcname("#fwormboss1")+"::OnMyMobDead"; set '1BOSS,[email protected][0]; set [email protected],getmapusers([email protected]$); set [email protected],([email protected])*200000; set [email protected]_HP,[email protected]; if ([email protected]_HP < 1500000) set [email protected]_HP,1500000; setunitdata '1BOSS,2,[email protected]_HP; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss1")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss1"); end; OnDisable: hideonnpc instance_npcname("#fwormboss1"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss1")+"::OnMyMobDead"); if ([email protected]_dead_num) { donpcevent instance_npcname("#fwormprize1")+"::OnEnable"; donpcevent instance_npcname("#fwormenter1")+"::OnEnable"; donpcevent instance_npcname("#fwormexit1")+"::OnEnable"; donpcevent instance_npcname("Chaos#1")+"::OnEnable"; donpcevent instance_npcname("Iris#1")+"::OnEnable"; donpcevent instance_npcname("#fwormboss12")+"::OnEnd"; mapannounce [email protected]$,"A hole appears after killing the dark faceworm.",bc_map,"0xffffff"; stopnpctimer; } end; OnTimer1111: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { if (rand(1,[email protected]) < 17) { getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 3000000 && [email protected]_HP < 4900000) donpcevent instance_npcname("#fwormboss12")+"::OnStart1"; else if ([email protected]_HP > 10000 && [email protected]_HP < 2500001) donpcevent instance_npcname("#fwormboss12")+"::OnStart2"; } } else setunitdata '1BOSS,2,5000000; end; OnTimer14000: stopnpctimer; getunitdata '1BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 10000) initnpctimer; end; } [email protected],1,4,3 script #fwormboss12 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"); if ([email protected]_dead_num > 3) killmonster [email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"; getunitdata '1BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"); if ([email protected]_dead_num > 6) killmonster [email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"; getunitdata '1BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss12")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss12")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss12"); end; OnDisable: hideonnpc instance_npcname("#fwormboss12"); end; OnMyMobDead: end; OnTimer12000: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss12")+"::OnMyMobDead"); if ([email protected]_dead_num > 3) donpcevent instance_npcname("#fwormboss1")+"::OnHeal04"; else if ([email protected]_dead_num > 2) donpcevent instance_npcname("#fwormboss1")+"::OnHeal03"; else if ([email protected]_dead_num > 1) donpcevent instance_npcname("#fwormboss1")+"::OnHeal02"; else if ([email protected]_dead_num > 0) donpcevent instance_npcname("#fwormboss1")+"::OnHeal01"; donpcevent instance_npcname("#fwormboss12")+"::OnEnd"; end; } [email protected],149,92,0 script #fwormenter1 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,127,95; end; OnInstanceInit: donpcevent instance_npcname("#fwormenter1")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormenter1"); end; OnDisable: disablenpc instance_npcname("#fwormenter1"); end; } [email protected],129,86,0 script #fwormexit1 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,156,76; end; OnInstanceInit: donpcevent instance_npcname("#fwormexit1")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormexit1"); end; OnDisable: disablenpc instance_npcname("#fwormexit1"); end; } // 2nd Stage //============================================================ [email protected],120,97,6 script Chaos#1 4_M_CHAOS,{ cutin "h_chaos01",2; if (getcharid(0) != getpartyleader(getcharid(1),2)) { mes "[Chaos]"; mes "I do not know what this is about, but I'm talking to your leader so please wait for a while ok?"; close2; cutin "h_chaos01",255; end; } mes "[Chaos]"; mes "Wow, you're fast enough to follow me."; unittalk getnpcid(0),"Chaos: Wow, you're fast enough to follow me."; next; select("The big one, just right before..."); cutin "h_chaos01",255; mes "["+strcharinfo(0)+"]"; mes "The big one just right before we saw is a boss here?"; unittalk getcharid(3),strcharinfo(0)+": The big one just right before we saw is a boss here?"; next; cutin "h_chaos01",2; mes "[Chaos]"; mes "No~~ It can't be the faceworm queen."; close2; donpcevent instance_npcname("Chaos#11")+"::OnStart"; cutin "h_chaos01",255; end; OnInstanceInit: donpcevent instance_npcname("Chaos#1")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#1"); end; OnDisable: hideonnpc instance_npcname("Chaos#1"); end; } [email protected],120,97,6 script Chaos#11 4_M_CHAOS,{ end; OnStart: donpcevent instance_npcname("Chaos#11")+"::OnEnable"; donpcevent instance_npcname("Chaos#1")+"::OnDisable"; unittalk getnpcid(0),"Chaos: No~~ It can't be the faceworm queen."; sleep 4000; unittalk getnpcid(0),"Chaos: The one we just saw before is a mutant faceworm."; sleep 5000; unittalk getnpcid(0),"Chaos: Wait! The dead faceworm's castoff skin might be useful."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#1")),"Iris: But, if the fight takes too long. The scales might be damaged. They'll be worthless!"; sleep 5000; unittalk getnpcid(0,instance_npcname("Iris#1")),"Iris: I heard that skillful hunters are good at taking the scales off super fast."; sleep 6000; unittalk getnpcid(0,instance_npcname("Iris#1")),"Iris: Chaos, are you any good at it?"; sleep 3000; unittalk getnpcid(0),"Chaos: No... Not at all! I use Magnum Break only, so the scales will probably get burned..."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#1")),"Iris: Useless Chaos."; sleep 3000; unittalk getnpcid(0),"Chaos: Besides, the one we are looking for is not here. I will go back first, so take care of the rest ok?"; sleep 5000; donpcevent instance_npcname("Chaos#11")+"::OnDisable"; unittalk getnpcid(0,instance_npcname("Iris#1")),"Iris: Chaos! Are you leaving me alone?"; sleep 3000; donpcevent instance_npcname("Iris#1")+"::OnDisable"; donpcevent instance_npcname("#fwormcontrol2")+"::OnStart"; donpcevent instance_npcname("#fwormprize2")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#11")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#11"); end; OnDisable: hideonnpc instance_npcname("Chaos#11"); end; } [email protected],129,97,3 script Iris#1 4_F_IRIS,{ cutin "h_iris02",2; mes "[Iris]"; mes "Chaos is a good friend even though he's only able to use Magnum Break..."; close2; cutin "h_iris02",255; end; OnInstanceInit: donpcevent instance_npcname("Iris#1")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Iris#1"); end; OnDisable: hideonnpc instance_npcname("Iris#1"); end; } [email protected],2,5,3 script #fwormcontrol2 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_c,getmapusers([email protected]$)+1; set [email protected]_num,[email protected]_c*2; areamonster [email protected]$,107,102,113,154,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol2")+"::OnMyMobDead"; set [email protected]_num,[email protected]_c*2; areamonster [email protected]$,115,175,121,209,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol2")+"::OnMyMobDead"; set [email protected]_num,[email protected]_c*7; areamonster [email protected]$,118,240,204,292,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol2")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormcontrol2")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormcontrol2"); end; OnDisable: hideonnpc instance_npcname("#fwormcontrol2"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormcontrol2")+"::OnMyMobDead"); mapannounce [email protected]$,"There are "[email protected]_dead_num+" "+([email protected]_dead_num>1?"faceworms":"faceworm")+" still alive.",bc_map,"0xffffff"; if ([email protected]_dead_num < 3) initnpctimer; end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormcontrol2")+"::OnMyMobDead"; donpcevent instance_npcname("#fwormboss2")+"::OnStart"; mapannounce [email protected]$,"A giant faceworm has suddenly appeared.",bc_map,"0xffffff"; stopnpctimer; end; } [email protected],2,5,3 script #fwormboss2 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); areamonster [email protected]$,156,267,166,277,"Dark Faceworm",2530,1,instance_npcname("#fwormboss2")+"::OnMyMobDead"; set '2BOSS,[email protected][0]; set [email protected],getmapusers([email protected]$); set [email protected],([email protected])*200000; set [email protected]_HP,[email protected]; if ([email protected]_HP < 1500000) set [email protected]_HP,1500000; setunitdata '2BOSS,2,[email protected]_HP; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss2")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss2"); end; OnDisable: hideonnpc instance_npcname("#fwormboss2"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss2")+"::OnMyMobDead"); if ([email protected]_dead_num) { donpcevent instance_npcname("#fwormprize2")+"::OnEnable"; donpcevent instance_npcname("#fwormenter2")+"::OnEnable"; donpcevent instance_npcname("#fwormexit2")+"::OnEnable"; donpcevent instance_npcname("Chaos#2")+"::OnEnable"; donpcevent instance_npcname("Iris#2")+"::OnEnable"; donpcevent instance_npcname("#fwormboss22")+"::OnEnd"; mapannounce [email protected]$,"You hear something loud in the south. It must be the nest of the one we just got rid of.",bc_map,"0xffffff"; stopnpctimer; } end; OnTimer1111: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { if (rand(1,[email protected]) < 17) { getunitdata '2BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 2000000 && [email protected]_HP < 5000000) donpcevent instance_npcname("#fwormboss22")+"::OnStart1"; else if ([email protected]_HP > 10000 && [email protected]_HP < 2000000) donpcevent instance_npcname("#fwormboss22")+"::OnStart2"; } } else setunitdata '2BOSS,2,5000000; end; OnTimer12000: stopnpctimer; getunitdata '2BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 10000) initnpctimer; end; } [email protected],1,4,3 script #fwormboss22 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss22")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss22")+"::OnMyMobDead"); if ([email protected]_dead_num > 6) killmonster [email protected]$,instance_npcname("#fwormboss22")+"::OnMyMobDead"; getunitdata '2BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss22")+"::OnMyMobDead"); if ([email protected]_dead_num > 12) killmonster [email protected]$,instance_npcname("#fwormboss22")+"::OnMyMobDead"; getunitdata '2BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss22")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss22")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss22"); end; OnDisable: hideonnpc instance_npcname("#fwormboss22"); end; OnMyMobDead: end; OnTimer20000: donpcevent instance_npcname("#fwormboss22")+"::OnEnd"; end; } [email protected],139,100,0 script #fwormenter2 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,156,117; end; OnInstanceInit: donpcevent instance_npcname("#fwormenter2")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormenter2"); end; OnDisable: disablenpc instance_npcname("#fwormenter2"); end; } [email protected],151,106,0 script #fwormexit2 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,127,95; end; OnInstanceInit: donpcevent instance_npcname("#fwormexit2")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormexit2"); end; OnDisable: disablenpc instance_npcname("#fwormexit2"); end; } // 3rd Stage //============================================================ [email protected],153,113,7 script Chaos#2 4_M_CHAOS,{ cutin "h_chaos01",2; if (getcharid(0) != getpartyleader(getcharid(1),2)) { mes "[Chaos]"; mes "I do not know what this is about, but I'm talking to your leader so please wait for a while ok?"; close2; cutin "h_chaos01",255; end; } mes "[Chaos]"; mes "You're pretty good! But you have to be careful from now on. This narrow canyon seems to be full of dangers."; unittalk getnpcid(0),"Chaos: You're pretty good! But you have to be careful from now on. This narrow canyon seems to be full of dangers."; close2; donpcevent instance_npcname("Chaos#22")+"::OnStart"; cutin "h_chaos01",255; end; OnInstanceInit: donpcevent instance_npcname("Chaos#2")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#2"); end; OnDisable: hideonnpc instance_npcname("Chaos#2"); end; } [email protected],153,113,7 script Chaos#22 4_M_CHAOS,{ end; OnStart: donpcevent instance_npcname("Chaos#22")+"::OnEnable"; donpcevent instance_npcname("Chaos#2")+"::OnDisable"; sleep 4000; unittalk getnpcid(0,instance_npcname("Iris#2")),"Iris: I do not feel good here. Let's get outta here right now Chaos!"; sleep 4000; unittalk getnpcid(0),"Chaos: Ok, let's get out of here. Carefully follow me!"; sleep 4000; donpcevent instance_npcname("Chaos#22")+"::OnDisable"; donpcevent instance_npcname("Iris#2")+"::OnDisable"; donpcevent instance_npcname("#fwormcontrol3")+"::OnStart"; donpcevent instance_npcname("#fwormprize3")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#22")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#22"); end; OnDisable: hideonnpc instance_npcname("Chaos#22"); end; } [email protected],160,113,1 script Iris#2 4_F_IRIS,{ cutin "h_iris01",2; mes "[Iris]"; mes "This canyon. I am not feeling good here. I don't want to stay anymore."; close2; cutin "h_iris01",255; end; OnInstanceInit: donpcevent instance_npcname("Iris#2")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Iris#2"); end; OnDisable: hideonnpc instance_npcname("Iris#2"); end; } [email protected],2,5,3 script #fwormcontrol3 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_c,getmapusers([email protected]$)+1; set [email protected]_num,[email protected]_c*11; areamonster [email protected]$,238,274,308,344,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol3")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormcontrol3")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormcontrol3"); end; OnDisable: hideonnpc instance_npcname("#fwormcontrol3"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormcontrol3")+"::OnMyMobDead"); mapannounce [email protected]$,"There are "[email protected]_dead_num+" "+([email protected]_dead_num>1?"faceworms":"faceworm")+" still alive.",bc_map,"0xffffff"; if ([email protected]_dead_num < 3) initnpctimer; end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormcontrol3")+"::OnMyMobDead"; donpcevent instance_npcname("#fwormboss3")+"::OnStart"; mapannounce [email protected]$,"A giant faceworm has suddenly appeared.",bc_map,"0xffffff"; stopnpctimer; end; } [email protected],2,5,3 script #fwormboss3 CLEAR_NPC,{ end; OnHeal01: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '3BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,(([email protected]+1)*5000)*rand(1,10); set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,5200000-(([email protected])*200000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '3BOSS,2,[email protected]; mapannounce [email protected]$,"Dark faceworm has dropped a sack of fatal poison and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x66ff00"; end; OnStart: set [email protected]$,instance_mapname("[email protected]"); areamonster [email protected]$,273,303,283,313,"Dark Faceworm",2530,1,instance_npcname("#fwormboss3")+"::OnMyMobDead"; set '3BOSS,[email protected][0]; set [email protected],getmapusers([email protected]$); set [email protected],([email protected])*200000; set [email protected]_HP,[email protected]; if ([email protected]_HP < 1500000) set [email protected]_HP,1500000; setunitdata '3BOSS,2,[email protected]_HP; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss3")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss3"); end; OnDisable: hideonnpc instance_npcname("#fwormboss3"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss3")+"::OnMyMobDead"); if ([email protected]_dead_num) { donpcevent instance_npcname("#fwormprize3")+"::OnEnable"; donpcevent instance_npcname("#fwormenter3")+"::OnEnable"; donpcevent instance_npcname("#fwormexit3")+"::OnEnable"; donpcevent instance_npcname("#chaoson")+"::OnEnable"; donpcevent instance_npcname("#fwormboss32")+"::OnEnd"; mapannounce [email protected]$,"You hear the pile of stones collapsing. This might be a gateway to go to other spaces.",bc_map,"0xffffff"; stopnpctimer; } end; OnTimer1111: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { if (rand(1,[email protected]) < 17) { getunitdata '3BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 4200000 && [email protected]_HP < 5000000) donpcevent instance_npcname("#fwormboss32")+"::OnStart1"; else if ([email protected]_HP > 3200000 && [email protected]_HP < 4000000) donpcevent instance_npcname("#fwormboss32")+"::OnStart1"; else if ([email protected]_HP > 2200000 && [email protected]_HP < 3000000) donpcevent instance_npcname("#fwormboss32")+"::OnStart1"; else if ([email protected]_HP > 1200000 && [email protected]_HP < 2000000) donpcevent instance_npcname("#fwormboss32")+"::OnStart2"; else if ([email protected]_HP > 10000 && [email protected]_HP < 1000000) donpcevent instance_npcname("#fwormboss32")+"::OnStart2"; } } else setunitdata '3BOSS,2,5000000; end; OnTimer7000: stopnpctimer; getunitdata '3BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 10000) initnpctimer; end; } [email protected],1,4,3 script #fwormboss32 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss32")+"::OnMyMobDead"; end; OnStart1: set [email protected]$,instance_mapname("[email protected]"); getunitdata '3BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; set [email protected],[email protected]; while (1) { set [email protected],[email protected]+3; while (2) { monster [email protected]$,[email protected],[email protected],"Venom Bug",2531,1,instance_npcname("#fwormboss32")+"::OnMyMobDead"; set [email protected],[email protected]; if ([email protected] < ([email protected])) break; } set [email protected],[email protected]+2; if ([email protected] > ([email protected]+3)) break; } donpcevent instance_npcname("#fwormboss3")+"::OnHeal01"; end; OnStart2: set [email protected]$,instance_mapname("[email protected]"); getunitdata '3BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; set [email protected],[email protected]; while (1) { set [email protected],[email protected]+5; while (2) { monster [email protected]$,[email protected],[email protected],"Venom Bug",2531,1,instance_npcname("#fwormboss32")+"::OnMyMobDead"; set [email protected],[email protected]; if ([email protected] < ([email protected])) break; } set [email protected],[email protected]+2; if ([email protected] > ([email protected]+5)) break; } donpcevent instance_npcname("#fwormboss3")+"::OnHeal01"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss32")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss32"); end; OnDisable: hideonnpc instance_npcname("#fwormboss32"); end; OnMyMobDead: end; } [email protected],248,185,0 script #fwormenter3 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,261,170; end; OnInstanceInit: donpcevent instance_npcname("#fwormenter3")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormenter3"); end; OnDisable: disablenpc instance_npcname("#fwormenter3"); end; } [email protected],254,175,0 script #fwormexit3 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,244,192; end; OnInstanceInit: donpcevent instance_npcname("#fwormexit3")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormexit3"); end; OnDisable: disablenpc instance_npcname("#fwormexit3"); end; } // 4th Stage //============================================================ [email protected],261,169,0 script #chaoson HIDDEN_WARP_NPC,7,7,{ end; OnTouch_: donpcevent instance_npcname("#chaoson")+"::OnDisable"; donpcevent instance_npcname("#announcer1")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("#chaoson")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaoson"); hideoffnpc instance_npcname("#chaoson"); end; OnDisable: hideonnpc instance_npcname("#chaoson"); disablenpc instance_npcname("#chaoson"); end; } [email protected],1,10,7 script #announcer1 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); mapannounce [email protected]$,"The voice of Chaos: Hey adventurers, you should be careful! Avoid the poison!",bc_map,"0xffff00"; sleep 6000; mapannounce [email protected]$,"The voice of Chaos: We are looking for another nest so let me know if you find anything.",bc_map,"0xffff00"; donpcevent instance_npcname("#fwormcontrol4")+"::OnStart"; donpcevent instance_npcname("#fwormcontrol42")+"::OnStart"; donpcevent instance_npcname("#fwormprize4")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("#announcer1")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#announcer1"); end; OnDisable: hideonnpc instance_npcname("#announcer1"); end; } [email protected],2,5,3 script #fwormcontrol4 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_c,getmapusers([email protected]$)+1; set [email protected]_num,[email protected]_c*6; areamonster [email protected]$,250,94,330,174,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol4")+"::OnMyMobDead"; set [email protected]_num,[email protected]_c*5; areamonster [email protected]$,223,51,303,111,"Faceworm",2528,[email protected]_num,instance_npcname("#fwormcontrol4")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormcontrol4")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormcontrol4"); end; OnDisable: hideonnpc instance_npcname("#fwormcontrol4"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormcontrol4")+"::OnMyMobDead"); mapannounce [email protected]$,"There are "[email protected]_dead_num+" "+([email protected]_dead_num>1?"faceworms":"faceworm")+" still alive.",bc_map,"0xffffff"; if ([email protected]_dead_num < 3) initnpctimer; end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormcontrol4")+"::OnMyMobDead"; donpcevent instance_npcname("#fwormboss4")+"::OnStart"; mapannounce [email protected]$,"You hear something screaming to the west.",bc_map,"0xffffff"; stopnpctimer; end; } [email protected],2,6,3 script #fwormcontrol42 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormcontrol42")+"::OnMyMobDead"; end; OnStart: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_c,getmapusers([email protected]$)+8; set [email protected]_num,[email protected]_c*5; areamonster [email protected]$,237,71,337,171,"#toxicarea",2536,[email protected]_num,instance_npcname("#fwormcontrol42")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormcontrol42")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormcontrol42"); end; OnDisable: hideonnpc instance_npcname("#fwormcontrol42"); end; OnMyMobDead: end; } [email protected],2,5,3 script #fwormboss4 CLEAR_NPC,{ end; OnStart: set [email protected]$,instance_mapname("[email protected]"); areamonster [email protected]$,209,103,219,113,"Dark Faceworm",2530,1,instance_npcname("#fwormboss4")+"::OnMyMobDead"; set '4BOSS,[email protected][0]; set [email protected],getmapusers([email protected]$); set [email protected],([email protected])*200000; set [email protected]_HP,[email protected]; if ([email protected]_HP < 1500000) set [email protected]_HP,1500000; setunitdata '4BOSS,2,[email protected]_HP; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss4")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss4"); end; OnDisable: hideonnpc instance_npcname("#fwormboss4"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss4")+"::OnMyMobDead"); if ([email protected]_dead_num) { donpcevent instance_npcname("#fwormcontrol42")+"::OnEnd"; donpcevent instance_npcname("#fwormprize4")+"::OnEnable"; donpcevent instance_npcname("#fwormenter4")+"::OnEnable"; donpcevent instance_npcname("#fwormexit4")+"::OnEnable"; donpcevent instance_npcname("Chaos#4")+"::OnEnable"; donpcevent instance_npcname("Iris#4")+"::OnEnable"; donpcevent instance_npcname("#chaoson2")+"::OnEnable"; donpcevent instance_npcname("#fwormboss42")+"::OnEnd"; mapannounce [email protected]$,"You hear the pile of stones collapsing. I think another gateway is found.",bc_map,"0xffffff"; stopnpctimer; } end; OnTimer1111: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { if (rand(1,[email protected]) < 17) { getunitdata '4BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 4300000 && [email protected]_HP < 5000000) donpcevent instance_npcname("#fwormboss42")+"::OnStart1"; else if ([email protected]_HP > 3300000 && [email protected]_HP < 4000000) donpcevent instance_npcname("#fwormboss42")+"::OnStart1"; else if ([email protected]_HP > 2300000 && [email protected]_HP < 3000000) donpcevent instance_npcname("#fwormboss42")+"::OnStart2"; else if ([email protected]_HP > 1300000 && [email protected]_HP < 2000000) donpcevent instance_npcname("#fwormboss42")+"::OnStart2"; else if ([email protected]_HP > 10000 && [email protected]_HP < 1000000) donpcevent instance_npcname("#fwormboss42")+"::OnStart2"; } } else setunitdata '4BOSS,2,5000000; end; OnTimer10000: stopnpctimer; getunitdata '4BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 10000) initnpctimer; else donpcevent instance_npcname("#fwormboss42")+"::OnEnd"; end; } [email protected],1,4,3 script #fwormboss42 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss42")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss42")+"::OnMyMobDead"); if ([email protected]_dead_num > 12) killmonster [email protected]$,instance_npcname("#fwormboss42")+"::OnMyMobDead"; getunitdata '4BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected]+3,"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected]+3,[email protected]+3,"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected]+3,[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss42")+"::OnMyMobDead"); if ([email protected]_dead_num > 27) killmonster [email protected]$,instance_npcname("#fwormboss42")+"::OnMyMobDead"; getunitdata '4BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected]+5,"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+5,"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected]+5,"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss42")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss42")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss42"); end; OnDisable: hideonnpc instance_npcname("#fwormboss42"); end; OnMyMobDead: end; OnTimer30000: donpcevent instance_npcname("#fwormboss42")+"::OnEnd"; end; } [email protected],204,122,0 script #fwormenter4 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,210,145; end; OnInstanceInit: donpcevent instance_npcname("#fwormenter4")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormenter4"); end; OnDisable: disablenpc instance_npcname("#fwormenter4"); end; } [email protected],198,142,0 script #fwormexit4 WARPNPC,2,2,{ end; OnTouch: set [email protected]$,instance_mapname("[email protected]"); warp [email protected]$,211,114; end; OnInstanceInit: donpcevent instance_npcname("#fwormexit4")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#fwormexit4"); end; OnDisable: disablenpc instance_npcname("#fwormexit4"); end; } // 5th Stage (Final Boss Room) //============================================================ [email protected],213,147,0 script #chaoson2 HIDDEN_WARP_NPC,7,7,{ end; OnTouch_: donpcevent instance_npcname("#chaoson2")+"::OnDisable"; donpcevent instance_npcname("Chaos#4")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("#chaoson2")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaoson2"); hideoffnpc instance_npcname("#chaoson2"); end; OnDisable: hideonnpc instance_npcname("#chaoson2"); disablenpc instance_npcname("#chaoson2"); end; } [email protected],213,153,6 script Chaos#5 4_M_CHAOS,{ end; OnInstanceInit: donpcevent instance_npcname("Chaos#5")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#5"); end; OnDisable: hideonnpc instance_npcname("Chaos#5"); end; } [email protected],208,149,7 script Chaos#4 4_M_CHAOS,{ cutin "h_chaos01",2; mes "[Chaos]"; mes "Hew. This puddle is weird."; close2; cutin "h_chaos01",255; end; OnStart: sleep 2000; unittalk getnpcid(0),"Chaos: Iris, what is this puddle for?"; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: Well, I think it is too big to be the nest of a faceworm."; sleep 4000; unittalk getnpcid(0),"Chaos: Hmm, okay, should I go down there and check it out?"; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: Chaos! Cut the crap."; sleep 3000; unittalk getnpcid(0),"Chaos: Why not? It doesn't even look that dangerous!"; sleep 5000; donpcevent instance_npcname("Chaos#4")+"::OnDisable"; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: Arrghh, Chaos you're such a troublemaker."; sleep 6000; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Ugh! Arrgh!! What is this?"; sleep 2000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: Chaos! What is it?"; sleep 2000; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Ah"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argh"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argghh"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argghhhhh"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argghhhhhhh"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argghhhhhhhhh"; sleep 100; unittalk getnpcid(0,instance_npcname("Chaos#5")),"Chaos: Argghhhhhhhhhhh!!"; sleep 5000; donpcevent instance_npcname("Chaos#4")+"::OnEnable"; sleep 3000; unittalk getnpcid(0),"Chaos: Damn, I was close to being eaten alive."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: I asked you what happened dummy!"; sleep 3000; unittalk getnpcid(0),"Chaos: Uhh, the faceworm queen is crawling up now and it looks like really pissed off. So let's, uh, get outta here."; sleep 6000; donpcevent instance_npcname("Chaos#4")+"::OnDisable"; sleep 1000; unittalk getnpcid(0,instance_npcname("Iris#4")),"Iris: Chaos you idiot!!"; specialeffect EF_DUSTSTORM,AREA,instance_npcname("Chaos#5"); specialeffect EF_MAPPILLAR2,AREA,instance_npcname("Chaos#5"); sleep 5000; donpcevent instance_npcname("Iris#4")+"::OnDisable"; sleep 9000; donpcevent instance_npcname("#fwormboss5")+"::OnStart"; donpcevent instance_npcname("#fwormprize5")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#4")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#4"); end; OnDisable: hideonnpc instance_npcname("Chaos#4"); end; } [email protected],220,149,1 script Iris#4 4_F_IRIS,{ cutin "h_iris01",2; mes "[Iris]"; mes "Something seems fishy around here. It's dangerous."; close2; cutin "h_iris01",255; end; OnInstanceInit: donpcevent instance_npcname("Iris#4")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Iris#4"); end; OnDisable: hideonnpc instance_npcname("Iris#4"); end; } [email protected],1,4,3 script #fwormboss5 CLEAR_NPC,{ callfunc "F_GM_NPC"; if (callfunc("F_GM_NPC",1854,0) == 1) { set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"); mes ""[email protected]_dead_num; close; } OnHeal05: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,(([email protected]+1)*20000)*rand(1,10); set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,52000000-(([email protected])*2000000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"The Faceworm Queen has dropped a sack of fatal poison and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x66ff00",FW_NORMAL,14; end; OnHeal04: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,[email protected]*1000000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,52000000-(([email protected])*2000000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"The Faceworm Queen absorbs the energy of 4 unbroken eggs and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x66ff00",FW_NORMAL,14; end; OnHeal03: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,[email protected]*250000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,52000000-(([email protected])*2000000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"The Faceworm Queen absorbs the energy of 3 unbroken eggs and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x00ff00",FW_NORMAL,14; end; OnHeal02: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,[email protected]*100000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,52000000-(([email protected])*2000000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"The Faceworm Queen absorbs the energy of 2 unbroken eggs and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x00ff00",FW_NORMAL,14; end; OnHeal01: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp,[email protected]*50000; set [email protected],[email protected][email protected]_hpp; set [email protected]_hpp2,52000000-(([email protected])*2000000); if ([email protected] > [email protected]_hpp2) set [email protected],[email protected]_hpp2; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"The Faceworm Queen absorbs the energy of 1 unbroken egg and recovers "[email protected]_hpp+" amount of energy.",bc_map,"0x00ff00",FW_NORMAL,14; end; OnDamage: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; set [email protected]_hpp_1,([email protected]+7)*25; set [email protected]_hpp,rand(20,[email protected]_hpp_1)*10000; set [email protected],[email protected][email protected]_hpp; if ([email protected] < 5000000) set [email protected],5000000; setunitdata '5BOSS,2,[email protected]; mapannounce [email protected]$,"Chaos deals "[email protected]_hpp+" deadly damage hit points!!",bc_map,"0xffff33",FW_NORMAL,17; end; OnBerserk2: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected]_x,[email protected][6]; set [email protected]_y,[email protected][7]; set [email protected]_HP1,[email protected][2]; getunitdata '5BOSS_HP,[email protected]; set [email protected]_HP2,[email protected][2]; set [email protected]_HP3,((([email protected][email protected]_HP1)*8)/1000)*100; set [email protected]_HP4,[email protected][email protected]_HP3; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected]_x,[email protected]_y,"Faceworm Queen",2532,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; setunitdata '5BOSS,2,[email protected]_HP4; monster [email protected]$,1,6,"Faceworm Queen's Life",2915,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS_HP,[email protected][0]; setunitdata '5BOSS_HP,2,[email protected]_HP4; mapannounce [email protected]$,"The faceworm rages recovering "[email protected]_HP3+" and its attack power is increased.",bc_map,"0xff8888",FW_NORMAL,13; end; OnBerserk: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected]_x,[email protected][6]; set [email protected]_y,[email protected][7]; if ([email protected]_x < 190 || [email protected]_x > 230 || [email protected]_y < 135 || [email protected]_y > 175) { set [email protected]_HP,[email protected][2]; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected]_x,[email protected]_y,"Faceworm Queen",2532,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; setunitdata '5BOSS,2,[email protected]_HP; monster [email protected]$,1,6,"Faceworm Queen's Life",2915,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS_HP,[email protected][0]; setunitdata '5BOSS_HP,2,[email protected]_HP; donpcevent instance_npcname("#fwormboss50")+"::OnCalm"; mapannounce [email protected]$,"It is too far away from the nest. The Faceworm Queen begins raging.",bc_map,"0xff3333",FW_NORMAL,15; } end; OnCalm: getunitdata '5BOSS,[email protected]; set [email protected]_x,[email protected][6]; set [email protected]_y,[email protected][7]; set [email protected]_HP,[email protected][2]; set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected]_x,[email protected]_y,"Faceworm Queen",2529,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; setunitdata '5BOSS,2,[email protected]_HP; monster [email protected]$,1,6,"Faceworm Queen's Life",2915,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS_HP,[email protected][0]; setunitdata '5BOSS_HP,2,[email protected]_HP; end; OnChange: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; set [email protected]_HP,[email protected][2]; set [email protected]_f,rand(1,14); if ([email protected]_f > 0 && [email protected]_f < 3) { mapannounce [email protected]$,"Faceworm Queen is trying to shed its skin to wind attribute.",bc_map,"0xffff00"; sleep 1000; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Queen",2535,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; } else if ([email protected]_f > 2 && [email protected]_f < 5) { mapannounce [email protected]$,"Faceworm Queen is trying to shed its skin to earth attribute.",bc_map,"0x55ff00"; sleep 1000; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Queen",2533,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; } else if ([email protected]_f > 4 && [email protected]_f < 7) { mapannounce [email protected]$,"Faceworm Queen is trying to shed its skin to water attribute.",bc_map,"0x9999ff"; sleep 1000; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Queen",2534,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; } else if ([email protected]_f > 6 && [email protected]_f < 10) { mapannounce [email protected]$,"Faceworm Queen is trying to shed its skin to its original attribute.",bc_map,"0xffffff"; sleep 1000; killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Queen",2529,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; } else end; setunitdata '5BOSS,2,[email protected]_HP; monster [email protected]$,1,6,"Faceworm Queen's Life",2915,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS_HP,[email protected][0]; setunitdata '5BOSS_HP,2,[email protected]_HP; end; OnWarning: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; if ([email protected] < 190 || [email protected] > 230 || [email protected] < 135 || [email protected] > 175) mapannounce [email protected]$,"Please do not go farther from the nest. The Faceworm Queen can be violent.",bc_map,"0xff5555",FW_NORMAL,15; end; OnReset_m: donpcevent instance_npcname("#fwormboss51")+"::OnEnd"; donpcevent instance_npcname("#fwormboss52")+"::OnEnd"; donpcevent instance_npcname("#fwormboss53")+"::OnEnd"; donpcevent instance_npcname("#fwormboss54")+"::OnEnd"; end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"; stopnpctimer; end; OnStart: set [email protected]$,instance_mapname("[email protected]"); monster [email protected]$,213,153,"Faceworm Queen",2529,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS,[email protected][0]; monster [email protected]$,1,6,"Faceworm Queen's Life",2915,1,instance_npcname("#fwormboss5")+"::OnMyMobDead"; set '5BOSS_HP,[email protected][0]; set [email protected],getmapusers([email protected]$); getunitdata '5BOSS,[email protected]; set [email protected]_HP1,[email protected][2]; set [email protected],([email protected])*2000000; set [email protected]_HP2,[email protected]; if ([email protected]_HP2 < 15000000) set [email protected]_HP2,15000000; setunitdata '5BOSS,2,[email protected]_HP2; setunitdata '5BOSS_HP,2,[email protected]_HP1; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss5")+"::OnEnable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss5"); end; OnDisable: hideonnpc instance_npcname("#fwormboss5"); end; OnMyMobDead: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"); if ([email protected]_dead_num < 2) { donpcevent instance_npcname("#fwormprize5")+"::OnEnable"; donpcevent instance_npcname("Chaos#6")+"::OnEnable"; donpcevent instance_npcname("Iris#6")+"::OnEnable"; donpcevent instance_npcname("#chaoson3")+"::OnEnable"; for (set [email protected],1; [email protected]<=4; set [email protected],[email protected]+1) donpcevent instance_npcname("#fwormboss5"[email protected])+"::OnEnd"; donpcevent instance_npcname("#fwormboss5")+"::OnEnd"; } end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss5")+"::OnMyMobDead"); if ([email protected]_dead_num < 2) { stopnpctimer; end; } getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; setunitdata '5BOSS_HP,2,[email protected]_HP; end; OnTimer5555: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { if (rand(1,[email protected]) < 17) { getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 45000000 && [email protected]_HP < 48000000) donpcevent instance_npcname("#fwormboss51")+"::OnStart1"; else if ([email protected]_HP > 40000000 && [email protected]_HP < 45000000) donpcevent instance_npcname("#fwormboss52")+"::OnStart1"; else if ([email protected]_HP > 35000000 && [email protected]_HP < 40000000) donpcevent instance_npcname("#fwormboss53")+"::OnStart1"; else if ([email protected]_HP > 30000000 && [email protected]_HP < 35000000) donpcevent instance_npcname("#fwormboss54")+"::OnStart1"; else if ([email protected]_HP > 25000000 && [email protected]_HP < 30000000) donpcevent instance_npcname("#fwormboss51")+"::OnStart2"; else if ([email protected]_HP > 20000000 && [email protected]_HP < 25000000) donpcevent instance_npcname("#fwormboss52")+"::OnStart2"; else if ([email protected]_HP > 15000000 && [email protected]_HP < 20000000) donpcevent instance_npcname("#fwormboss53")+"::OnStart2"; else if ([email protected]_HP > 10000000 && [email protected]_HP < 15000000) donpcevent instance_npcname("#fwormboss54")+"::OnStart2"; else if ([email protected]_HP > 5000000 && [email protected]_HP < 10000000) { if (rand(1,3) == 1) donpcevent instance_npcname("#fwormboss53")+"::OnStart1"; else donpcevent instance_npcname("#fwormboss51")+"::OnStart1"; donpcevent instance_npcname("#fwormboss54")+"::OnStart1"; } else if ([email protected]_HP > 500000 && [email protected]_HP < 5000000) { if (rand(1,3) == 1) donpcevent instance_npcname("#fwormboss53")+"::OnStart2"; else donpcevent instance_npcname("#fwormboss51")+"::OnStart2"; donpcevent instance_npcname("#fwormboss54")+"::OnStart2"; } } } else { setunitdata '5BOSS,2,50000000; for (set [email protected],1; [email protected]<=4; set [email protected],[email protected]+1) donpcevent instance_npcname("#fwormboss5"[email protected])+"::OnEnd"; stopnpctimer; } end; OnTimer10000: donpcevent instance_npcname("#fwormboss5")+"::OnWarning"; end; OnTimer12000: donpcevent instance_npcname("#fwormboss5")+"::OnChange"; end; OnTimer13000: getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 7000000) donpcevent instance_npcname("#support")+"::OnSupport_2"; end; OnTimer14000: donpcevent instance_npcname("#fwormboss5")+"::OnBerserk"; end; OnTimer19000: getunitdata '5BOSS,[email protected]; set [email protected]_HP1,[email protected][2]; getunitdata '5BOSS_HP,[email protected]; set [email protected]_HP2,[email protected][2]; if ([email protected]_HP2 > [email protected]_HP1) { set [email protected]_HP3,[email protected][email protected]_HP1; set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); if ([email protected]) { set [email protected]_dg,([email protected]+7)*400000; if ([email protected]_HP3 > [email protected]_dg) donpcevent instance_npcname("#fwormboss5")+"::OnBerserk2"; } } end; OnTimer25000: stopnpctimer; getunitdata '5BOSS,[email protected]; set [email protected]_HP,[email protected][2]; if ([email protected]_HP > 200000) initnpctimer; else { for (set [email protected],1; [email protected]<=4; set [email protected],[email protected]+1) donpcevent instance_npcname("#fwormboss5"[email protected])+"::OnEnd"; } end; } [email protected],2,3,5 script #support CLEAR_NPC,{ end; OnSupport_2: set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); set [email protected]_m,[email protected]+10; if ([email protected]_m < 8) set [email protected]_m,8; set [email protected]_f,rand(1,[email protected]_m); if ([email protected]_f > 0 && [email protected]_f < 3) { donpcevent instance_npcname("#chaos_north")+"::OnStart"; mapannounce [email protected]$,"The voice of Chaos: Hey! Lure it to the north! I will beat it!",bc_map,"0xff44aa",FW_NORMAL,14; } else if ([email protected]_f > 2 && [email protected]_f < 5) { donpcevent instance_npcname("#chaos_south")+"::OnStart"; mapannounce [email protected]$,"The voice of Chaos: Hey! Lure it to the south! I will beat it!",bc_map,"0xff44aa",FW_NORMAL,14; } else if ([email protected]_f > 4 && [email protected]_f < 7) { donpcevent instance_npcname("#chaos_east")+"::OnStart"; mapannounce [email protected]$,"The voice of Chaos: Hey! Lure it to the east! I will beat it!",bc_map,"0xff44aa",FW_NORMAL,14; } else if ([email protected]_f > 6 && [email protected]_f < 9) { donpcevent instance_npcname("#chaos_west")+"::OnStart"; mapannounce [email protected]$,"The voice of Chaos: Hey! Lure it to the west! I will beat it!",bc_map,"0xff44aa",FW_NORMAL,14; } end; OnInstanceInit: donpcevent instance_npcname("#support")+"::OnEnable"; end; OnEnable: hideoffnpc instance_npcname("#support"); end; OnDisable: hideonnpc instance_npcname("#support"); end; } [email protected],214,172,0 script #chaos_north HIDDEN_WARP_NPC,2,2,{ end; OnTouch_: getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; if ([email protected] > 205 && [email protected] < 223 && [email protected] > 163 && [email protected] < 181) { specialeffect EF_MAGNUMBREAK,AREA,instance_npcname("Chaos#north"); specialeffect EF_LORD,AREA,instance_npcname("Chaos#north"); donpcevent instance_npcname("#fwormboss5")+"::OnDamage"; } else unittalk getnpcid(0,instance_npcname("Chaos#north")),"Chaos: You can't even manage to lure the queen to me?"; donpcevent instance_npcname("#chaos_north")+"::OnDisable"; donpcevent instance_npcname("Chaos#north")+"::OnEnd"; end; OnStart: initnpctimer; donpcevent instance_npcname("#chaos_north")+"::OnEnable"; donpcevent instance_npcname("Chaos#north")+"::OnEnable"; end; OnInstanceInit: donpcevent instance_npcname("#chaos_north")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaos_north"); end; OnDisable: disablenpc instance_npcname("#chaos_north"); end; OnTimer15000: donpcevent instance_npcname("#chaos_north")+"::OnDisable"; donpcevent instance_npcname("Chaos#north")+"::OnDisable"; stopnpctimer; end; } [email protected],214,143,0 script #chaos_south HIDDEN_WARP_NPC,2,2,{ end; OnTouch_: getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; if ([email protected] > 205 && [email protected] < 223 && [email protected] > 134 && [email protected] < 152) { specialeffect EF_MAGNUMBREAK,AREA,instance_npcname("Chaos#south"); specialeffect EF_LORD,AREA,instance_npcname("Chaos#south"); donpcevent instance_npcname("#fwormboss5")+"::OnDamage"; } else unittalk getnpcid(0,instance_npcname("Chaos#south")),"Chaos: Hey~ We are partners. You can't just keep running alone!"; donpcevent instance_npcname("#chaos_south")+"::OnDisable"; donpcevent instance_npcname("Chaos#south")+"::OnEnd"; end; OnStart: initnpctimer; donpcevent instance_npcname("#chaos_south")+"::OnEnable"; donpcevent instance_npcname("Chaos#south")+"::OnEnable"; end; OnInstanceInit: donpcevent instance_npcname("#chaos_south")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaos_south"); end; OnDisable: disablenpc instance_npcname("#chaos_south"); end; OnTimer15000: donpcevent instance_npcname("#chaos_south")+"::OnDisable"; donpcevent instance_npcname("Chaos#south")+"::OnDisable"; stopnpctimer; end; } [email protected],226,158,0 script #chaos_east HIDDEN_WARP_NPC,2,2,{ end; OnTouch_: getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; if ([email protected] > 217 && [email protected] < 235 && [email protected] > 149 && [email protected] < 167) { specialeffect EF_MAGNUMBREAK,AREA,instance_npcname("Chaos#east"); specialeffect EF_LORD,AREA,instance_npcname("Chaos#east"); donpcevent instance_npcname("#fwormboss5")+"::OnDamage"; } else unittalk getnpcid(0,instance_npcname("Chaos#east")),"Chaos: Lure and bring it with you, I can't beat it alone!"; donpcevent instance_npcname("#chaos_east")+"::OnDisable"; donpcevent instance_npcname("Chaos#east")+"::OnEnd"; end; OnStart: initnpctimer; donpcevent instance_npcname("#chaos_east")+"::OnEnable"; donpcevent instance_npcname("Chaos#east")+"::OnEnable"; end; OnInstanceInit: donpcevent instance_npcname("#chaos_east")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaos_east"); end; OnDisable: disablenpc instance_npcname("#chaos_east"); end; OnTimer15000: donpcevent instance_npcname("#chaos_east")+"::OnDisable"; donpcevent instance_npcname("Chaos#east")+"::OnDisable"; stopnpctimer; end; } [email protected],200,158,0 script #chaos_west HIDDEN_WARP_NPC,2,2,{ end; OnTouch_: getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; if ([email protected] > 191 && [email protected] < 209 && [email protected] > 149 && [email protected] < 167) { specialeffect EF_MAGNUMBREAK,AREA,instance_npcname("Chaos#west"); specialeffect EF_LORD,AREA,instance_npcname("Chaos#west"); donpcevent instance_npcname("#fwormboss5")+"::OnDamage"; } else unittalk getnpcid(0,instance_npcname("Chaos#west")),"Chaos: Why'd you leave the queen behind? Our lives are at stake here. Pull it together!"; donpcevent instance_npcname("#chaos_west")+"::OnDisable"; donpcevent instance_npcname("Chaos#west")+"::OnEnd"; end; OnStart: initnpctimer; donpcevent instance_npcname("#chaos_west")+"::OnEnable"; donpcevent instance_npcname("Chaos#west")+"::OnEnable"; end; OnInstanceInit: donpcevent instance_npcname("#chaos_west")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaos_west"); end; OnDisable: disablenpc instance_npcname("#chaos_west"); end; OnTimer15000: donpcevent instance_npcname("#chaos_west")+"::OnDisable"; donpcevent instance_npcname("Chaos#west")+"::OnDisable"; stopnpctimer; end; } [email protected],214,172,5 script Chaos#north 4_M_CHAOS,{ end; OnEnd: initnpctimer; end; OnInstanceInit: donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname(strnpcinfo(0)); end; OnDisable: hideonnpc instance_npcname(strnpcinfo(0)); end; OnTimer1000: donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; stopnpctimer; end; } [email protected],214,143,0 duplicate(Chaos#north) Chaos#south 4_M_CHAOS [email protected],226,158,3 duplicate(Chaos#north) Chaos#east 4_M_CHAOS [email protected],200,158,6 duplicate(Chaos#north) Chaos#west 4_M_CHAOS [email protected],1,4,3 script #fwormboss50 CLEAR_NPC,{ end; OnCalm: initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss50")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss50"); end; OnDisable: hideonnpc instance_npcname("#fwormboss50"); end; OnTimer15000: if (unitexist('5BOSS)) donpcevent instance_npcname("#fwormboss5")+"::OnCalm"; stopnpctimer; end; } [email protected],1,4,3 script #fwormboss51 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"); if ([email protected]_dead_num > 3) killmonster [email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"); if ([email protected]_dead_num > 6) killmonster [email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"Faceworm Egg",2540,1,instance_npcname("#fwormboss51")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss51")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss51"); end; OnDisable: hideonnpc instance_npcname("#fwormboss51"); end; OnMyMobDead: end; OnTimer12000: set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss51")+"::OnMyMobDead"); if ([email protected]_dead_num > 3) donpcevent instance_npcname("#fwormboss5")+"::OnHeal04"; else if ([email protected]_dead_num > 2) donpcevent instance_npcname("#fwormboss5")+"::OnHeal03"; else if ([email protected]_dead_num > 1) donpcevent instance_npcname("#fwormboss5")+"::OnHeal02"; else if ([email protected]_dead_num > 0) donpcevent instance_npcname("#fwormboss5")+"::OnHeal01"; donpcevent instance_npcname("#fwormboss51")+"::OnEnd"; end; } [email protected],1,4,3 script #fwormboss52 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss52")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss52")+"::OnMyMobDead"); if ([email protected]_dead_num > 6) killmonster [email protected]$,instance_npcname("#fwormboss52")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss52")+"::OnMyMobDead"); if ([email protected]_dead_num > 12) killmonster [email protected]$,instance_npcname("#fwormboss52")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+4,"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected]+4,"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; monster [email protected]$,[email protected]+4,[email protected],"#waterball",2539,1,instance_npcname("#fwormboss52")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss52")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss52"); end; OnDisable: hideonnpc instance_npcname("#fwormboss52"); end; OnMyMobDead: end; OnTimer20000: donpcevent instance_npcname("#fwormboss52")+"::OnEnd"; end; } [email protected],1,4,3 script #fwormboss53 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss53")+"::OnMyMobDead"; end; OnStart1: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; set [email protected],[email protected]; while (1) { set [email protected],[email protected]+5; while (2) { monster [email protected]$,[email protected],[email protected],"Venom Bug",2531,1,instance_npcname("#fwormboss53")+"::OnMyMobDead"; set [email protected],[email protected]; if ([email protected] < ([email protected])) break; } set [email protected],[email protected]+2; if ([email protected] > ([email protected]+5)) break; } donpcevent instance_npcname("#fwormboss5")+"::OnHeal05"; end; OnStart2: set [email protected]$,instance_mapname("[email protected]"); getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; set [email protected],[email protected]; while (1) { set [email protected],[email protected]+7; while (2) { monster [email protected]$,[email protected],[email protected],"Venom Bug",2531,1,instance_npcname("#fwormboss53")+"::OnMyMobDead"; set [email protected],[email protected]; if ([email protected] < ([email protected])) break; } set [email protected],[email protected]+2; if ([email protected] > ([email protected]+7)) break; } donpcevent instance_npcname("#fwormboss5")+"::OnHeal05"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss53")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss53"); end; OnDisable: hideonnpc instance_npcname("#fwormboss53"); end; OnMyMobDead: end; } [email protected],1,4,3 script #fwormboss54 CLEAR_NPC,{ end; OnEnd: set [email protected]$,instance_mapname("[email protected]"); killmonster [email protected]$,instance_npcname("#fwormboss54")+"::OnMyMobDead"; stopnpctimer; end; OnStart1: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss54")+"::OnMyMobDead"); if ([email protected]_dead_num > 20) killmonster [email protected]$,instance_npcname("#fwormboss54")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected]+3,"#venomfog",2536,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected]+3,[email protected]+3,"#venomfog",2536,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected]+3,[email protected],"#venomfog",2536,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; end; OnStart2: stopnpctimer; initnpctimer; set [email protected]$,instance_mapname("[email protected]"); set [email protected]_dead_num,mobcount([email protected]$,instance_npcname("#fwormboss54")+"::OnMyMobDead"); if ([email protected]_dead_num > 45) killmonster [email protected]$,instance_npcname("#fwormboss54")+"::OnMyMobDead"; getunitdata '5BOSS,[email protected]; set [email protected],[email protected][6]; set [email protected],[email protected][7]; monster [email protected]$,[email protected],[email protected]+5,"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected]+5,"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected]+5,"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected],[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; monster [email protected]$,[email protected]+5,[email protected],"#venomfog",2537,1,instance_npcname("#fwormboss54")+"::OnMyMobDead"; end; OnInstanceInit: donpcevent instance_npcname("#fwormboss54")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormboss54"); end; OnDisable: hideonnpc instance_npcname("#fwormboss54"); end; OnMyMobDead: end; OnTimer30000: donpcevent instance_npcname(strnpcinfo(0))+"::OnEnd"; end; } [email protected],212,156,0 script #chaoson3 HIDDEN_WARP_NPC,7,7,{ end; OnTouch_: donpcevent instance_npcname("#chaoson3")+"::OnDisable"; donpcevent instance_npcname("Chaos#6")+"::OnStart"; end; OnInstanceInit: donpcevent instance_npcname("#chaoson3")+"::OnDisable"; end; OnEnable: enablenpc instance_npcname("#chaoson3"); hideoffnpc instance_npcname("#chaoson3"); end; OnDisable: hideonnpc instance_npcname("#chaoson3"); disablenpc instance_npcname("#chaoson3"); end; } [email protected],209,159,6 script Chaos#6 4_M_CHAOS,{ cutin "h_chaos01",2; mes "[Chaos]"; mes "Hmm.. You are pretty good, I am impressed."; close2; cutin "h_chaos01",255; end; OnStart: donpcevent instance_npcname("Chaos#east")+"::OnEnd"; donpcevent instance_npcname("Chaos#west")+"::OnEnd"; donpcevent instance_npcname("Chaos#south")+"::OnEnd"; donpcevent instance_npcname("Chaos#north")+"::OnEnd"; donpcevent instance_npcname("Chaos#6")+"::OnEnable"; donpcevent instance_npcname("Iris#6")+"::OnEnable"; sleep 2000; unittalk getnpcid(0),"Chaos: Phew... That was quite a long fight."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#6")),"Iris: But that is not the one we were looking for."; sleep 4000; unittalk getnpcid(0),"Chaos: We can't help it. Our equipment is damaged so we should retreat for now."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#6")),"Iris: Yes, I feel bad that we could not see the Faceworm King. But luckily we weren't hurt."; sleep 3000; unittalk getnpcid(0),"Chaos: So... Hey, you over there! You're not too shabby."; sleep 3000; unittalk getnpcid(0),"Chaos: Today's hunting is all yours, I won't touch it."; sleep 3000; unittalk getnpcid(0),"Chaos: Ahah~ I hoped that there would be some treasure that the merchant prince dropped..."; sleep 3000; unittalk getnpcid(0,instance_npcname("Iris#6")),"Iris: Chaos, I am getting tired. Let's go back to the village."; sleep 3000; unittalk getnpcid(0),"Chaos: Sorry, shall we go?"; sleep 3000; donpcevent instance_npcname("Chaos#6")+"::OnDisable"; donpcevent instance_npcname("Iris#6")+"::OnDisable"; donpcevent instance_npcname("Dimensional Device#6")+"::OnEnable"; end; OnInstanceInit: donpcevent instance_npcname("Chaos#6")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Chaos#6"); end; OnDisable: hideonnpc instance_npcname("Chaos#6"); end; } [email protected],220,159,4 script Iris#6 4_F_IRIS,{ cutin "h_iris02",2; mes "[Iris]"; mes "That was dangerous. Hehehe..."; close2; cutin "h_iris02",255; end; OnInstanceInit: donpcevent instance_npcname("Iris#6")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Iris#6"); end; OnDisable: hideonnpc instance_npcname("Iris#6"); end; } [email protected],215,159,4 script Dimensional Device#6 PORTAL,{ mes "[Dimensional Device]"; mes "Your time is finished here. You may look arround or go leave. What do you want to do?"; next; if (select("Stop:Return to Dimensional Gap") == 2) warp "dali",85,62; end; OnInstanceInit: donpcevent instance_npcname("Dimensional Device#6")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("Dimensional Device#6"); end; OnDisable: hideonnpc instance_npcname("Dimensional Device#6"); end; } // Instance Traps :: in_face_l //============================================================ [email protected],61,132,5 script Suspicious Mound#1 4_SOIL,5,5,{ end; OnTouch_: set [email protected]$,instance_mapname("[email protected]"); setarray [email protected][0],3,2,1,3,2,1,3,2,1,3,2,1,3,2,1, 3,2,1,3,2,1,3,2,1,3,2,1,3,2,1, 3,2,1,3,2,1,3,2,1,3,2,1,3,2,1, 3,2,1,3,2,1,3,2,1; specialeffect EF_VENOMDUST; donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; killmonster [email protected]$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; getmapxy([email protected]$,[email protected],[email protected],1); set [email protected]_num,[email protected][atoi(strnpcinfo(2))-1]; areamonster [email protected]$,[email protected],[email protected],[email protected]+1,[email protected]+1,"Faceworm Larva",2541,[email protected]_num,instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable"; end; OnEnable: enablenpc instance_npcname(strnpcinfo(0)); end; OnDisable: disablenpc instance_npcname(strnpcinfo(0)); end; OnMyMobDead: end; OnTimer45000: stopnpctimer; donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable"; end; } [email protected],62,195,5 duplicate(Suspicious Mound#1) Suspicious Mound#2 4_SOIL,5,5 [email protected],66,94,5 duplicate(Suspicious Mound#1) Suspicious Mound#3 4_SOIL,5,5 [email protected],68,265,5 duplicate(Suspicious Mound#1) Suspicious Mound#4 4_SOIL,5,5 [email protected],68,108,5 duplicate(Suspicious Mound#1) Suspicious Mound#5 4_SOIL,5,5 [email protected],72,202,5 duplicate(Suspicious Mound#1) Suspicious Mound#6 4_SOIL,5,5 [email protected],75,73,5 duplicate(Suspicious Mound#1) Suspicious Mound#7 4_SOIL,5,5 [email protected],76,241,5 duplicate(Suspicious Mound#1) Suspicious Mound#8 4_SOIL,5,5 [email protected],79,274,5 duplicate(Suspicious Mound#1) Suspicious Mound#9 4_SOIL,5,5 [email protected],79,119,5 duplicate(Suspicious Mound#1) Suspicious Mound#10 4_SOIL,5,5 [email protected],97,59,5 duplicate(Suspicious Mound#1) Suspicious Mound#11 4_SOIL,5,5 [email protected],99,211,5 duplicate(Suspicious Mound#1) Suspicious Mound#12 4_SOIL,5,5 [email protected],100,122,5 duplicate(Suspicious Mound#1) Suspicious Mound#13 4_SOIL,5,5 [email protected],105,190,5 duplicate(Suspicious Mound#1) Suspicious Mound#14 4_SOIL,5,5 [email protected],108,264,5 duplicate(Suspicious Mound#1) Suspicious Mound#15 4_SOIL,5,5 [email protected],108,74,5 duplicate(Suspicious Mound#1) Suspicious Mound#16 4_SOIL,5,5 [email protected],111,178,5 duplicate(Suspicious Mound#1) Suspicious Mound#17 4_SOIL,5,5 [email protected],112,137,5 duplicate(Suspicious Mound#1) Suspicious Mound#18 4_SOIL,5,5 [email protected],112,159,5 duplicate(Suspicious Mound#1) Suspicious Mound#19 4_SOIL,5,5 [email protected],112,236,5 duplicate(Suspicious Mound#1) Suspicious Mound#20 4_SOIL,5,5 [email protected],118,109,5 duplicate(Suspicious Mound#1) Suspicious Mound#21 4_SOIL,5,5 [email protected],119,201,5 duplicate(Suspicious Mound#1) Suspicious Mound#22 4_SOIL,5,5 [email protected],123,257,5 duplicate(Suspicious Mound#1) Suspicious Mound#23 4_SOIL,5,5 [email protected],124,216,5 duplicate(Suspicious Mound#1) Suspicious Mound#24 4_SOIL,5,5 [email protected],125,228,5 duplicate(Suspicious Mound#1) Suspicious Mound#25 4_SOIL,5,5 [email protected],126,290,5 duplicate(Suspicious Mound#1) Suspicious Mound#26 4_SOIL,5,5 [email protected],128,174,5 duplicate(Suspicious Mound#1) Suspicious Mound#27 4_SOIL,5,5 [email protected],133,244,5 duplicate(Suspicious Mound#1) Suspicious Mound#28 4_SOIL,5,5 [email protected],139,218,5 duplicate(Suspicious Mound#1) Suspicious Mound#29 4_SOIL,5,5 [email protected],140,255,5 duplicate(Suspicious Mound#1) Suspicious Mound#30 4_SOIL,5,5 [email protected],148,238,5 duplicate(Suspicious Mound#1) Suspicious Mound#31 4_SOIL,5,5 [email protected],157,293,5 duplicate(Suspicious Mound#1) Suspicious Mound#32 4_SOIL,5,5 [email protected],158,138,5 duplicate(Suspicious Mound#1) Suspicious Mound#33 4_SOIL,5,5 [email protected],158,163,5 duplicate(Suspicious Mound#1) Suspicious Mound#34 4_SOIL,5,5 [email protected],167,277,5 duplicate(Suspicious Mound#1) Suspicious Mound#35 4_SOIL,5,5 [email protected],168,194,5 duplicate(Suspicious Mound#1) Suspicious Mound#36 4_SOIL,5,5 [email protected],170,251,5 duplicate(Suspicious Mound#1) Suspicious Mound#37 4_SOIL,5,5 [email protected],171,62,5 duplicate(Suspicious Mound#1) Suspicious Mound#38 4_SOIL,5,5 [email protected],171,149,5 duplicate(Suspicious Mound#1) Suspicious Mound#39 4_SOIL,5,5 [email protected],172,173,5 duplicate(Suspicious Mound#1) Suspicious Mound#40 4_SOIL,5,5 [email protected],175,296,5 duplicate(Suspicious Mound#1) Suspicious Mound#41 4_SOIL,5,5 [email protected],178,234,5 duplicate(Suspicious Mound#1) Suspicious Mound#42 4_SOIL,5,5 [email protected],183,185,5 duplicate(Suspicious Mound#1) Suspicious Mound#43 4_SOIL,5,5 [email protected],191,289,5 duplicate(Suspicious Mound#1) Suspicious Mound#44 4_SOIL,5,5 [email protected],194,192,5 duplicate(Suspicious Mound#1) Suspicious Mound#45 4_SOIL,5,5 [email protected],196,207,5 duplicate(Suspicious Mound#1) Suspicious Mound#46 4_SOIL,5,5 [email protected],198,257,5 duplicate(Suspicious Mound#1) Suspicious Mound#47 4_SOIL,5,5 [email protected],199,273,5 duplicate(Suspicious Mound#1) Suspicious Mound#48 4_SOIL,5,5 [email protected],211,244,5 duplicate(Suspicious Mound#1) Suspicious Mound#49 4_SOIL,5,5 [email protected],229,200,5 duplicate(Suspicious Mound#1) Suspicious Mound#50 4_SOIL,5,5 [email protected],232,271,5 duplicate(Suspicious Mound#1) Suspicious Mound#51 4_SOIL,5,5 [email protected],250,223,5 duplicate(Suspicious Mound#1) Suspicious Mound#52 4_SOIL,5,5 [email protected],254,324,5 duplicate(Suspicious Mound#1) Suspicious Mound#53 4_SOIL,5,5 [email protected],255,263,5 duplicate(Suspicious Mound#1) Suspicious Mound#54 4_SOIL,5,5 // Instance Venom Bugs :: in_face_v //============================================================ [email protected],163,130,0 script #toxicarea1 HIDDEN_WARP_NPC,10,10,{ end; OnTouch_: set [email protected]$,instance_mapname("[email protected]"); setarray [email protected][0],25,30,50,30,50,30,40,50,50; specialeffect EF_VENOMDUST; donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; killmonster [email protected]$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; set [email protected],atoi(charat(strnpcinfo(2),9)); switch ([email protected]) { case 1: setarray [email protected][0],167,142,15; break; case 2: setarray [email protected][0],163,161,15; break; case 3: setarray [email protected][0],167,185,20; break; case 4: setarray [email protected][0],197,203,15; break; case 5: setarray [email protected][0],227,203,20; break; case 6: setarray [email protected][0],244,232,15; break; case 7: setarray [email protected][0],243,259,15; break; case 8: setarray [email protected][0],292,277,50; break; case 9: setarray [email protected][0],248,322,50; break; } set [email protected]_num,[email protected][[email protected]]; areamonster [email protected]$,[email protected][0][email protected][2],[email protected][1][email protected][2],[email protected][0][email protected][2],[email protected][1][email protected][2],"Venom Bug",2531,[email protected]_num,instance_npcname(strnpcinfo(0))+"::OnMyMobDead"; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable"; end; OnEnable: enablenpc instance_npcname(strnpcinfo(0)); end; OnDisable: disablenpc instance_npcname(strnpcinfo(0)); end; OnMyMobDead: end; OnTimer15000: stopnpctimer; donpcevent instance_npcname(strnpcinfo(0))+"::OnEnable"; end; } [email protected],165,147,0 duplicate(#toxicarea1) #toxicarea2 HIDDEN_WARP_NPC,10,10 [email protected],163,166,0 duplicate(#toxicarea1) #toxicarea3 HIDDEN_WARP_NPC,10,10 [email protected],183,197,0 duplicate(#toxicarea1) #toxicarea4 HIDDEN_WARP_NPC,10,10 [email protected],202,204,0 duplicate(#toxicarea1) #toxicarea5 HIDDEN_WARP_NPC,10,10 [email protected],237,220,0 duplicate(#toxicarea1) #toxicarea6 HIDDEN_WARP_NPC,10,10 [email protected],245,241,0 duplicate(#toxicarea1) #toxicarea7 HIDDEN_WARP_NPC,10,10 [email protected],292,277,0 duplicate(#toxicarea1) #toxicarea8 HIDDEN_WARP_NPC,10,10 [email protected],248,322,0 duplicate(#toxicarea1) #toxicarea9 HIDDEN_WARP_NPC,10,10 // Instance Timer :: in_facetimer //============================================================ [email protected],3,1,5 script #globaltimer22 CLEAR_NPC,{ end; OnT_s: initnpctimer; end; OnT_s2: set [email protected]_num,$120719_num_face; if ([email protected]_num) set [email protected]_num,3600; set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$)-1; set [email protected]_name$,'120903_str_face$; set [email protected]_num2,getnpctimer(0)/1000; if ([email protected]_num2 < 1) end; set [email protected]_m,[email protected]_num2/60; set [email protected]_s,[email protected]_num2-([email protected]_m*60); if ([email protected]_num2 < 60) set [email protected]_txt$,[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); else set [email protected]_txt$,[email protected]_m+" "+([email protected]_m>1?"Minutes":"Minute")+" "[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); if ([email protected]_num > [email protected]_num2) { if ([email protected]) announce [email protected]_name$+" beat the best record for completing the Faceworm's Nest ("[email protected]_txt$+").",bc_all,"0xffff33",FW_NORMAL,15; else announce [email protected]_name$+" with "[email protected]+" party "+([email protected]>1?"members":"members")+" beat the best record for completing the Faceworm's Nest ("[email protected]_txt$+").",bc_all,"0xffff33",FW_NORMAL,15; set $120719_str_face$,[email protected]_name$; set $120719_num_face,[email protected]_num2; set $120903_num_face,[email protected]; } else mapannounce [email protected]$,"A time of "[email protected]_txt$+" has been recorded on the board. But it did not beat the best record.",bc_map,"0xffff33"; end; OnT_s3: for (set [email protected],1; [email protected]<=27; set [email protected],[email protected]+1) { if (rand(1,100) > 50) donpcevent instance_npcname("Merchant Prince's Box#"[email protected])+"::OnEnable"; } end; OnInstanceInit: donpcevent instance_npcname("#globaltimer22")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#globaltimer22"); end; OnDisable: hideonnpc instance_npcname("#globaltimer22"); end; OnTimer3600000: stopnpctimer; end; } // Instance Prizes :: in_face_c //============================================================ [email protected],155,82,3 script #fwormprize1 4_TREASURE_BOX,{ set [email protected]$,instance_mapname("[email protected]"); set [email protected]_num2,getnpctimer(0)/1000; if ([email protected]_num2 < 1) end; set [email protected]_m,[email protected]_num2/60; set [email protected]_s,[email protected]_num2-([email protected]_m*60); if ([email protected]_num2 < 60) set [email protected]_txt$,[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); else set [email protected]_txt$,[email protected]_m+" "+([email protected]_m>1?"Minutes":"Minute")+" "[email protected]_s+" "+([email protected]_s>1?"Seconds":"Second"); mapannounce [email protected]$,"The actual time for the battle at this stage remaining is "[email protected]_txt$+".",bc_map,"0xffff33"; set [email protected]_st2,getnpctimer(0)/1000; if ([email protected]_st2 < 1) set [email protected]_st2,120; stopnpctimer; specialeffect EF_COIN; donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; switch (atoi(charat(strnpcinfo(2),10))) { case 1: setarray [email protected][0],200,200,95; break; case 2: setarray [email protected][0],800,400,90; break; case 3: setarray [email protected][0],1100,600,85; break; case 4: setarray [email protected][0],1250,800,80; break; } set [email protected]_name_4,0; set [email protected]_name_3,0; set [email protected]_name_2,0; set [email protected]_st1,120; if ([email protected]_st2 < [email protected]_st1) set [email protected]_st2,[email protected]_st1; set [email protected]_t,[email protected][email protected]_st1; set [email protected]_t1,([email protected]_t/15)+1; if ([email protected]_t1 < 1) set [email protected]_t1,1; if ([email protected]_t1 > 3) set [email protected]_t1,3; set [email protected]_st1,[email protected]_t1; set [email protected]_st2,[email protected]_st1-4; set [email protected],rand([email protected]_st2,[email protected]_st1); set [email protected]_t1,[email protected]_t*10; if ([email protected]_t1 > [email protected][0]) set [email protected]_t1,[email protected][0]+1; set [email protected]_st,([email protected][0]+2)[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1316); if ([email protected]_e_m < 201) set [email protected]_name_4,0; else if ([email protected]_e_m < 301) set [email protected]_name_4,4740; //Vitality1 else if ([email protected]_e_m < 401) set [email protected]_name_4,4700; //Strength1 else if ([email protected]_e_m < 501) set [email protected]_name_4,4730; //Agility1 else if ([email protected]_e_m < 601) set [email protected]_name_4,4720; //Dexterity1 else if ([email protected]_e_m < 701) set [email protected]_name_4,4710; //Inteligence1 else if ([email protected]_e_m < 801) set [email protected]_name_4,4750; //Luck1 else if ([email protected]_e_m < 851) set [email protected]_name_4,4741; //Vitality2 else if ([email protected]_e_m < 901) set [email protected]_name_4,4701; //Strength2 else if ([email protected]_e_m < 951) set [email protected]_name_4,4731; //Agility2 else if ([email protected]_e_m < 1001) set [email protected]_name_4,4721; //Dexterity2 else if ([email protected]_e_m < 1051) set [email protected]_name_4,4711; //Inteligence2 else if ([email protected]_e_m < 1101) set [email protected]_name_4,4751; //Luck2 else if ([email protected]_e_m < 1126) set [email protected]_name_4,4742; //Vitality3 else if ([email protected]_e_m < 1151) set [email protected]_name_4,4702; //Strength3 else if ([email protected]_e_m < 1176) set [email protected]_name_4,4732; //Agility3 else if ([email protected]_e_m < 1201) set [email protected]_name_4,4722; //Dexterity3 else if ([email protected]_e_m < 1226) set [email protected]_name_4,4712; //Inteligence3 else if ([email protected]_e_m < 1251) set [email protected]_name_4,4752; //Luck3 else if ([email protected]_e_m < 1261) set [email protected]_name_4,4743; //Vitality4 else if ([email protected]_e_m < 1271) set [email protected]_name_4,4703; //Strength4 else if ([email protected]_e_m < 1281) set [email protected]_name_4,4733; //Agility4 else if ([email protected]_e_m < 1291) set [email protected]_name_4,4723; //Dexterity4 else if ([email protected]_e_m < 1301) set [email protected]_name_4,4713; //Inteligence4 else if ([email protected]_e_m < 1311) set [email protected]_name_4,4753; //Luck4 else if ([email protected]_e_m < 1312) set [email protected]_name_4,4744; //Vitality5 else if ([email protected]_e_m < 1313) set [email protected]_name_4,4704; //Strength5 else if ([email protected]_e_m < 1314) set [email protected]_name_4,4734; //Agility5 else if ([email protected]_e_m < 1315) set [email protected]_name_4,4724; //Dexterity5 else if ([email protected]_e_m < 1316) set [email protected]_name_4,4714; //Inteligence5 else if ([email protected]_e_m < 1317) set [email protected]_name_4,4754; //Luck5 set [email protected]_t1,[email protected]_t*5; if ([email protected]_t1 > 600) set [email protected]_t1,601; set [email protected]_st,[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1716); if ([email protected]_e_m < 601) set [email protected]_name_3,0; else if ([email protected]_e_m < 701) set [email protected]_name_3,4740; //Vitality1 else if ([email protected]_e_m < 801) set [email protected]_name_3,4700; //Strength1 else if ([email protected]_e_m < 901) set [email protected]_name_3,4730; //Agility1 else if ([email protected]_e_m < 1001) set [email protected]_name_3,4720; //Dexterity1 else if ([email protected]_e_m < 1101) set [email protected]_name_3,4710; //Inteligence1 else if ([email protected]_e_m < 1201) set [email protected]_name_3,4750; //Luck1 else if ([email protected]_e_m < 1251) set [email protected]_name_3,4741; //Vitality2 else if ([email protected]_e_m < 1301) set [email protected]_name_3,4701; //Strength2 else if ([email protected]_e_m < 1351) set [email protected]_name_3,4731; //Agility2 else if ([email protected]_e_m < 1401) set [email protected]_name_3,4721; //Dexterity2 else if ([email protected]_e_m < 1451) set [email protected]_name_3,4711; //Inteligence2 else if ([email protected]_e_m < 1501) set [email protected]_name_3,4751; //Luck2 else if ([email protected]_e_m < 1526) set [email protected]_name_3,4742; //Vitality3 else if ([email protected]_e_m < 1551) set [email protected]_name_3,4702; //Strength3 else if ([email protected]_e_m < 1576) set [email protected]_name_3,4732; //Agility3 else if ([email protected]_e_m < 1601) set [email protected]_name_3,4722; //Dexterity3 else if ([email protected]_e_m < 1626) set [email protected]_name_3,4712; //Inteligence3 else if ([email protected]_e_m < 1651) set [email protected]_name_3,4752; //Luck3 else if ([email protected]_e_m < 1661) set [email protected]_name_3,4743; //Vitality4 else if ([email protected]_e_m < 1671) set [email protected]_name_3,4703; //Strength4 else if ([email protected]_e_m < 1681) set [email protected]_name_3,4733; //Agility4 else if ([email protected]_e_m < 1691) set [email protected]_name_3,4723; //Dexterity4 else if ([email protected]_e_m < 1701) set [email protected]_name_3,4713; //Inteligence4 else if ([email protected]_e_m < 1711) set [email protected]_name_3,4753; //Luck4 else if ([email protected]_e_m < 1712) set [email protected]_name_3,4744; //Vitality5 else if ([email protected]_e_m < 1713) set [email protected]_name_3,4704; //Strength5 else if ([email protected]_e_m < 1714) set [email protected]_name_3,4734; //Agility5 else if ([email protected]_e_m < 1715) set [email protected]_name_3,4724; //Dexterity5 else if ([email protected]_e_m < 1716) set [email protected]_name_3,4714; //Inteligence5 else if ([email protected]_e_m < 1717) set [email protected]_name_3,4754; //Luck5 set [email protected]_t1,[email protected]_t*5; if ([email protected]_t1 > [email protected][1]) set [email protected]_t1,[email protected][1]; set [email protected]_st,([email protected][1]+1)[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1100); if ([email protected]_e_m < 1001) set [email protected]_name_2,0; else if ([email protected]_e_m < 1100) { switch ([email protected]_name_3) { case 4700: case 4701: case 4702: case 4703: case 4704: set [email protected]_name_2,4853; //S_Str break; case 4740: case 4741: case 4742: case 4743: case 4744: set [email protected]_name_2,4855; //S_Vital break; case 4730: case 4731: case 4732: case 4733: case 4734: set [email protected]_name_2,4854; //S_Agi break; case 4720: case 4721: case 4722: case 4723: case 4724: set [email protected]_name_2,4857; //S_Dex break; case 4750: case 4751: case 4752: case 4753: case 4754: set [email protected]_name_2,4858; //S_Luck break; case 4710: case 4711: case 4712: case 4713: case 4714: set [email protected]_name_2,4856; //S_Int break; } } if ([email protected]_name_4) { set [email protected]_name_2,0; set [email protected]_name_3,0; } else if ([email protected]_name_3) set [email protected]_name_2,0; if (rand(1,100) > [email protected][2]) set [email protected]_item,20718; //FaceWorm_Skin_ else set [email protected]_item,20717; //FaceWorm_Skin getmapxy([email protected]$,[email protected],[email protected],1); makeitem2 [email protected]_item,1,[email protected]$,[email protected],[email protected],0,[email protected],0,0,[email protected]_name_2,[email protected]_name_3,[email protected]_name_4; end; OnStart: initnpctimer; end; OnInstanceInit: donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname(strnpcinfo(0)); end; OnDisable: hideonnpc instance_npcname(strnpcinfo(0)); end; OnTimer3600000: stopnpctimer; end; } [email protected],162,271,3 duplicate(#fwormprize1) #fwormprize2 4_TREASURE_BOX [email protected],278,308,3 duplicate(#fwormprize1) #fwormprize3 4_TREASURE_BOX [email protected],214,108,3 duplicate(#fwormprize1) #fwormprize4 4_TREASURE_BOX [email protected],213,157,3 script #fwormprize5 4_TREASURE_BOX,{ set [email protected]$,instance_mapname("[email protected]"); set '120903_str_face$,strcharinfo(0); donpcevent instance_npcname("#globaltimer22")+"::OnT_s2"; donpcevent instance_npcname("#globaltimer22")+"::OnT_s3"; set [email protected]_st2,getnpctimer(0)/1000; if ([email protected]_st2 < 1) set [email protected]_st2,270; specialeffect EF_COIN; donpcevent instance_npcname("#fwormprize5")+"::OnDisable"; set [email protected]_name_4,0; set [email protected]_name_3,0; set [email protected]_name_2,0; set [email protected]_st1,270; for (set [email protected],1; [email protected]<=2; set [email protected],[email protected]+1) { if ([email protected]_st2 < [email protected]_st1) set [email protected]_st2,[email protected]_st1; set [email protected]_t,[email protected][email protected]_st1; set [email protected]_t1,([email protected]_t/15)+1; if ([email protected]_t1 < 1) set [email protected]_t1,1; if ([email protected]_t1 > 4) set [email protected]_t1,4; set [email protected]_st1,[email protected]_t1; set [email protected]_st2,[email protected]_st1-7; set [email protected],rand([email protected]_st2,[email protected]_st1); set [email protected]_t1,[email protected]_t*10; if ([email protected]_t1 > 1850) set [email protected]_t1,1851; set [email protected]_st,[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1934); if ([email protected]_e_m < 201) set [email protected]_name_4,0; else if ([email protected]_e_m < 301) set [email protected]_name_4,4740; //Vitality1 else if ([email protected]_e_m < 401) set [email protected]_name_4,4700; //Strength1 else if ([email protected]_e_m < 501) set [email protected]_name_4,4730; //Agility1 else if ([email protected]_e_m < 601) set [email protected]_name_4,4720; //Dexterity1 else if ([email protected]_e_m < 701) set [email protected]_name_4,4710; //Inteligence1 else if ([email protected]_e_m < 801) set [email protected]_name_4,4750; //Luck1 else if ([email protected]_e_m < 901) set [email protected]_name_4,4741; //Vitality2 else if ([email protected]_e_m < 1001) set [email protected]_name_4,4701; //Strength2 else if ([email protected]_e_m < 1101) set [email protected]_name_4,4731; //Agility2 else if ([email protected]_e_m < 1201) set [email protected]_name_4,4721; //Dexterity2 else if ([email protected]_e_m < 1301) set [email protected]_name_4,4711; //Inteligence2 else if ([email protected]_e_m < 1401) set [email protected]_name_4,4751; //Luck2 else if ([email protected]_e_m < 1451) set [email protected]_name_4,4742; //Vitality3 else if ([email protected]_e_m < 1501) set [email protected]_name_4,4702; //Strength3 else if ([email protected]_e_m < 1551) set [email protected]_name_4,4732; //Agility3 else if ([email protected]_e_m < 1601) set [email protected]_name_4,4722; //Dexterity3 else if ([email protected]_e_m < 1651) set [email protected]_name_4,4712; //Inteligence3 else if ([email protected]_e_m < 1701) set [email protected]_name_4,4752; //Luck3 else if ([email protected]_e_m < 1726) set [email protected]_name_4,4743; //Vitality4 else if ([email protected]_e_m < 1751) set [email protected]_name_4,4703; //Strength4 else if ([email protected]_e_m < 1776) set [email protected]_name_4,4733; //Agility4 else if ([email protected]_e_m < 1801) set [email protected]_name_4,4723; //Dexterity4 else if ([email protected]_e_m < 1826) set [email protected]_name_4,4713; //Inteligence4 else if ([email protected]_e_m < 1851) set [email protected]_name_4,4753; //Luck4 else if ([email protected]_e_m < 1861) set [email protected]_name_4,4744; //Vitality5 else if ([email protected]_e_m < 1871) set [email protected]_name_4,4704; //Strength5 else if ([email protected]_e_m < 1881) set [email protected]_name_4,4734; //Agility5 else if ([email protected]_e_m < 1891) set [email protected]_name_4,4724; //Dexterity5 else if ([email protected]_e_m < 1901) set [email protected]_name_4,4714; //Inteligence5 else if ([email protected]_e_m < 1911) set [email protected]_name_4,4754; //Luck5 else if ([email protected]_e_m < 1914) set [email protected]_name_4,4745; //Vitality6 else if ([email protected]_e_m < 1917) set [email protected]_name_4,4705; //Strength6 else if ([email protected]_e_m < 1920) set [email protected]_name_4,4735; //Agility6 else if ([email protected]_e_m < 1923) set [email protected]_name_4,4725; //Dexterity6 else if ([email protected]_e_m < 1926) set [email protected]_name_4,4715; //Inteligence6 else if ([email protected]_e_m < 1929) set [email protected]_name_4,4755; //Luck6 else if ([email protected]_e_m < 1930) set [email protected]_name_4,4746; //Vitality7 else if ([email protected]_e_m < 1931) set [email protected]_name_4,4706; //Strength7 else if ([email protected]_e_m < 1932) set [email protected]_name_4,4736; //Agility7 else if ([email protected]_e_m < 1933) set [email protected]_name_4,4726; //Dexterity7 else if ([email protected]_e_m < 1934) set [email protected]_name_4,4716; //Inteligence7 else if ([email protected]_e_m < 1935) set [email protected]_name_4,4756; //Luck7 set [email protected]_t1,[email protected]_t*10; if ([email protected]_t1 > 1400) set [email protected]_t1,1401; set [email protected]_st,[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1934); if ([email protected]_e_m < 201) set [email protected]_name_3,0; else if ([email protected]_e_m < 301) set [email protected]_name_3,4740; //Vitality1 else if ([email protected]_e_m < 401) set [email protected]_name_3,4700; //Strength1 else if ([email protected]_e_m < 501) set [email protected]_name_3,4730; //Agility1 else if ([email protected]_e_m < 601) set [email protected]_name_3,4720; //Dexterity1 else if ([email protected]_e_m < 701) set [email protected]_name_3,4710; //Inteligence1 else if ([email protected]_e_m < 801) set [email protected]_name_3,4750; //Luck1 else if ([email protected]_e_m < 901) set [email protected]_name_3,4741; //Vitality2 else if ([email protected]_e_m < 1001) set [email protected]_name_3,4701; //Strength2 else if ([email protected]_e_m < 1101) set [email protected]_name_3,4731; //Agility2 else if ([email protected]_e_m < 1201) set [email protected]_name_3,4721; //Dexterity2 else if ([email protected]_e_m < 1301) set [email protected]_name_3,4711; //Inteligence2 else if ([email protected]_e_m < 1401) set [email protected]_name_3,4751; //Luck2 else if ([email protected]_e_m < 1451) set [email protected]_name_3,4742; //Vitality3 else if ([email protected]_e_m < 1501) set [email protected]_name_3,4702; //Strength3 else if ([email protected]_e_m < 1551) set [email protected]_name_3,4732; //Agility3 else if (.[email protected]_e_m < 1601) set [email protected]_name_3,4722; //Dexterity3 else if ([email protected]_e_m < 1651) set [email protected]_name_3,4712; //Inteligence3 else if ([email protected]_e_m < 1701) set [email protected]_name_3,4752; //Luck3 else if ([email protected]_e_m < 1726) set [email protected]_name_3,4743; //Vitality4 else if ([email protected]_e_m < 1751) set [email protected]_name_3,4703; //Strength4 else if ([email protected]_e_m < 1776) set [email protected]_name_3,4733; //Agility4 else if ([email protected]_e_m < 1801) set [email protected]_name_3,4723; //Dexterity4 else if ([email protected]_e_m < 1826) set [email protected]_name_3,4713; //Inteligence4 else if ([email protected]_e_m < 1851) set [email protected]_name_3,4753; //Luck4 else if ([email protected]_e_m < 1861) set [email protected]_name_3,4744; //Vitality5 else if ([email protected]_e_m < 1871) set [email protected]_name_3,4704; //Strength5 else if ([email protected]_e_m < 1881) set [email protected]_name_3,4734; //Agility5 else if ([email protected]_e_m < 1891) set [email protected]_name_3,4724; //Dexterity5 else if ([email protected]_e_m < 1901) set [email protected]_name_3,4714; //Inteligence5 else if ([email protected]_e_m < 1911) set [email protected]_name_3,4754; //Luck5 else if ([email protected]_e_m < 1914) set [email protected]_name_3,4745; //Vitality6 else if ([email protected]_e_m < 1917) set [email protected]_name_3,4705; //Strength6 else if ([email protected]_e_m < 1920) set [email protected]_name_3,4735; //Agility6 else if ([email protected]_e_m < 1923) set [email protected]_name_3,4725; //Dexterity6 else if ([email protected]_e_m < 1926) set [email protected]_name_3,4715; //Inteligence6 else if ([email protected]_e_m < 1929) set [email protected]_name_3,4755; //Luck6 else if ([email protected]_e_m < 1930) set [email protected]_name_3,4746; //Vitality7 else if ([email protected]_e_m < 1931) set [email protected]_name_3,4706; //Strength7 else if ([email protected]_e_m < 1932) set [email protected]_name_3,4736; //Agility7 else if ([email protected]_e_m < 1933) set [email protected]_name_3,4726; //Dexterity7 else if ([email protected]_e_m < 1934) set [email protected]_name_3,4716; //Inteligence7 else if ([email protected]_e_m < 1935) set [email protected]_name_3,4756; //Luck7 set [email protected]_t1,[email protected]_t*5; if ([email protected]_t1 > 999) set [email protected]_t1,999; set [email protected]_st,[email protected]_t1; set [email protected]_e_m,rand([email protected]_st,1100); if ([email protected]_e_m < 1001) set [email protected]_name_2,0; else if ([email protected]_e_m < 1100) { switch ([email protected]_name_3) { case 4700: case 4701: case 4702: case 4703: case 4704: case 4705: case 4706: set [email protected]_name_2,4853; //S_Str break; case 4740: case 4741: case 4742: case 4743: case 4744: case 4745: case 4746: set [email protected]_name_2,4855; //S_Vital break; case 4730: case 4731: case 4732: case 4733: case 4734: case 4735: case 4736: set [email protected]_name_2,4854; //S_Agi break; case 4720: case 4721: case 4722: case 4723: case 4724: case 4725: case 4726: set [email protected]_name_2,4857; //S_Dex break; case 4750: case 4751: case 4752: case 4753: case 4754: case 4755: case 4756: set [email protected]_name_2,4858; //S_Luck break; case 4710: case 4711: case 4712: case 4713: case 4714: case 4715: case 4716: set [email protected]_name_2,4856; //S_Int break; } } if ([email protected]_name_4) { set [email protected]_name_2,0; set [email protected]_name_3,0; } else if ([email protected]_name_3) set [email protected]_name_2,0; if (rand(1,100) > 40) set [email protected]_item,20718; //FaceWorm_Skin_ else set [email protected]_item,20717; //FaceWorm_Skin makeitem2 [email protected]_item,1,[email protected]$,rand(209,217),rand(152,161),0,[email protected],0,0,[email protected]_name_2,[email protected]_name_3,[email protected]_name_4; } end; OnStart: initnpctimer; end; OnInstanceInit: donpcevent instance_npcname("#fwormprize5")+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname("#fwormprize5"); end; OnDisable: hideonnpc instance_npcname("#fwormprize5"); end; OnTimer3600000: stopnpctimer; end; } // Instance Treasures :: in_face_t //============================================================ [email protected],183,314,3 script Merchant Prince's Box#1 4_TREASURE_BOX,{ specialeffect EF_COIN; donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; initnpctimer; end; OnInstanceInit: donpcevent instance_npcname(strnpcinfo(0))+"::OnDisable"; end; OnEnable: hideoffnpc instance_npcname(strnpcinfo(0)); end; OnDisable: hideonnpc instance_npcname(strnpcinfo(0)); end; OnTimer1000: set [email protected]$,instance_mapname("[email protected]"); set [email protected],atoi(strnpcinfo(2)); switch ([email protected]) { case 1: setarray [email protected][0],184,321; setarray [email protected][0],718,22507; //Dark_Red_Jewel,ShabbyOldScroll break; case 2: setarray [email protected][0],162,337; setarray [email protected][0],719,6650; //Violet_Jewel,Shabby_Ring break; case 3: setarray [email protected][0],29,362; setarray [email protected][0],720,6651; //Skyblue_Jewel,Rusty_Bracelet break; case 4: setarray [email protected][0],24,288; setarray [email protected][0],721,6652; //Azure_Jewel,Old_Photo_Album break; case 5: setarray [email protected][0],58,274; setarray [email protected][0],722,6653; //Scarlet_Jewel,Shabby_Pill break; case 6: setarray [email protected][0],73,214; setarray [email protected][0],725,22507; //Red_Jewel,ShabbyOldScroll break; case 7: setarray [email protected][0],49,176; setarray [email protected][0],726,6650; //Blue_Jewel,Shabby_Ring break; case 8: setarray [email protected][0],259,66; setarray [email protected][0],727,6651; //White_Jewel,Rusty_Bracelet break; case 9: setarray [email protected][0],68,38; setarray [email protected][0],718,6652; //Dark_Red_Jewel,Old_Photo_Album break; case 10: setarray [email protected][0],178,54; setarray [email protected][0],719,6653; //Violet_Jewel,Shabby_Pill break; case 11: setarray [email protected][0],120,137; setarray [email protected][0],720,22507; //Skyblue_Jewel,ShabbyOldScroll break; case 12: setarray [email protected][0],110,224; setarray [email protected][0],721,6650; //Azure_Jewel,Shabby_Ring break; case 13: setarray [email protected][0],118,294; setarray [email protected][0],722,6651; //Scarlet_Jewel,Rusty_Bracelet break; case 14: setarray [email protected][0],126,292; setarray [email protected][0],725,6652; //Red_Jewel,Old_Photo_Album break; case 15: setarray [email protected][0],150,162; setarray [email protected][0],726,6653; //Blue_Jewel,Shabby_Pill break; case 16: setarray [email protected][0],169,206; setarray [email protected][0],727,22507; //White_Jewel,ShabbyOldScroll break; case 17: setarray [email protected][0],262,220; setarray [email protected][0],718,6650; //Dark_Red_Jewel,Shabby_Ring break; case 18: setarray [email protected][0],218,350; setarray [email protected][0],719,6651; //Violet_Jewel,Rusty_Bracelet break; case 19: setarray [email protected][0],304,263; setarray [email protected][0],720,6652; //Skyblue_Jewel,Old_Photo_Album break; case 20: setarray [email protected][0],302,151; setarray [email protected][0],721,6653; //Azure_Jewel,Shabby_Pill break; case 21: setarray [email protected][0],305,63; setarray [email protected][0],722,22507; //Scarlet_Jewel,ShabbyOldScroll break; case 22: setarray [email protected][0],234,66; setarray [email protected][0],725,6650; //Red_Jewel,Shabby_Ring break; case 23: setarray [email protected][0],218,89; setarray [email protected][0],726,6651; //Blue_Jewel,Rusty_Bracelet break; case 24: setarray [email protected][0],233,99; setarray [email protected][0],727,6652; //White_Jewel,Old_Photo_Album case 25: setarray [email protected][0],280,158; setarray [email protected][0],718,6653; //Dark_Red_Jewel,Shabby_Pill break; case 26: setarray [email protected][0],182,353; setarray [email protected][0],719,22507; //Violet_Jewel,ShabbyOldScroll break; case 27: setarray [email protected][0],43,220; setarray [email protected][0],720,6650; //Skyblue_Jewel,Shabby_Ring break; } setarray [email protected][0],5,4,6,3,7,4,3,5,5,4,6,3,7,4,3, 5,5,4,6,3,7,4,3,5,5,4,6; set [email protected],rand(1,[email protected][[email protected]]); for (set [email protected],0; [email protected]<[email protected]; set [email protected],[email protected]+1) { set [email protected],rand([email protected][0],[email protected][0]+4); set [email protected],rand([email protected][1],[email protected][1]+4); makeitem [email protected][0],1,[email protected]$,[email protected],[email protected]; } makeitem [email protected][1],1,[email protected]$,[email protected][0]+2,[email protected][1]+3; if (rand(1,1000) > 400) makeitem 6648,1,[email protected]$,[email protected][0]+1,[email protected][1]+2; //Shabby_Crown if (rand(1,1000) > 700) makeitem 7228,1,[email protected]$,[email protected][0]+2,[email protected][1]+2; //Gold_Bullion if (rand(1,1000) > 900) makeitem 7229,1,[email protected]$,[email protected][0]+3,[email protected][1]+2; //Silver_Bullion stopnpctimer; end; } [email protected],164,343,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#2 4_TREASURE_BOX [email protected],31,364,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#3 4_TREASURE_BOX [email protected],26,290,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#4 4_TREASURE_BOX [email protected],56,269,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#5 4_TREASURE_BOX [email protected],80,213,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#6 4_TREASURE_BOX [email protected],51,174,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#7 4_TREASURE_BOX [email protected],261,62,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#8 4_TREASURE_BOX [email protected],70,36,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#9 4_TREASURE_BOX [email protected],182,51,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#10 4_TREASURE_BOX [email protected],128,139,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#11 4_TREASURE_BOX [email protected],108,232,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#12 4_TREASURE_BOX [email protected],117,303,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#13 4_TREASURE_BOX [email protected],134,294,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#14 4_TREASURE_BOX [email protected],152,159,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#15 4_TREASURE_BOX [email protected],177,208,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#16 4_TREASURE_BOX [email protected],260,220,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#17 4_TREASURE_BOX [email protected],216,357,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#18 4_TREASURE_BOX [email protected],310,263,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#19 4_TREASURE_BOX [email protected],307,158,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#20 4_TREASURE_BOX [email protected],307,56,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#21 4_TREASURE_BOX [email protected],240,64,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#22 4_TREASURE_BOX [email protected],214,90,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#23 4_TREASURE_BOX [email protected],237,108,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#24 4_TREASURE_BOX [email protected],284,165,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#25 4_TREASURE_BOX [email protected],184,363,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#26 4_TREASURE_BOX [email protected],48,220,3 duplicate(Merchant Prince's Box#1) Merchant Prince's Box#27 4_TREASURE_BOX // Instance GM Function :: in_face_ad //========================================== [email protected],1,1,3 script #forestspirit1 CLEAR_NPC,{ callfunc "F_GM_NPC"; if (callfunc("F_GM_NPC",1854,0) == 1) { set [email protected]$,instance_mapname("[email protected]"); mes "[Time Manager]"; mes "What time would you like to return?"; next; switch (select("Cancel:1st Stage Start:2nd Stage Start:3rd Stage Start:4th Stage Start:Boss Start:Treasures")) { case 1: break; case 2: donpcevent instance_npcname("Chaos#0")+"::OnDisable"; donpcevent instance_npcname("Iris#0")+"::OnDisable"; donpcevent instance_npcname("#fwormcontrol1")+"::OnStart"; mapannounce [email protected]$,"Faceworm time attack has started. Faster kill times gives a higher percentage of rewards.",bc_map,"0xffffff"; donpcevent instance_npcname("#globaltimer22")+"::OnT_s"; donpcevent instance_npcname("#fwormprize1")+"::OnStart"; warp [email protected]$,110,348; break; case 3: donpcevent instance_npcname("#fwormenter1")+"::OnEnable"; donpcevent instance_npcname("#fwormexit1")+"::OnEnable"; donpcevent instance_npcname("Chaos#1")+"::OnEnable"; donpcevent instance_npcname("Iris#1")+"::OnEnable"; mapannounce [email protected]$,"A hole appears after killing the dark faceworm.",bc_map,"0xffffff"; warp [email protected]$,127,95; break; case 4: donpcevent instance_npcname("#fwormenter2")+"::OnEnable"; donpcevent instance_npcname("#fwormexit2")+"::OnEnable"; donpcevent instance_npcname("Chaos#2")+"::OnEnable"; donpcevent instance_npcname("Iris#2")+"::OnEnable"; mapannounce [email protected]$,"You hear something loud in the south. It must be the nest of the one we just got rid of.",bc_map,"0xffffff"; warp [email protected]$,156,117; break; case 5: donpcevent instance_npcname("#fwormenter3")+"::OnEnable"; donpcevent instance_npcname("#fwormexit3")+"::OnEnable"; donpcevent instance_npcname("#chaoson")+"::OnEnable"; mapannounce [email protected]$,"You hear the pile of stones collapsing. This might be a gateway to go to other spaces.",bc_map,"0xffffff"; warp [email protected]$,261,170; break; case 6: donpcevent instance_npcname("#fwormenter4")+"::OnEnable"; donpcevent instance_npcname("#fwormexit4")+"::OnEnable"; donpcevent instance_npcname("Chaos#4")+"::OnEnable"; donpcevent instance_npcname("Iris#4")+"::OnEnable"; donpcevent instance_npcname("#chaoson2")+"::OnEnable"; mapannounce [email protected]$,"You hear the pile of stones collapsing. I think another gateway is found.",bc_map,"0xffffff"; warp [email protected]$,210,145; break; case 7: donpcevent instance_npcname("#fwormprize5")+"::OnStart"; donpcevent instance_npcname("#fwormprize5")+"::OnEnable"; warp [email protected]$,210,145; break; } } close; } [email protected],3,1,3 script #forestspiritboss1 CLEAR_NPC,{ set [email protected]$,instance_mapname("[email protected]"); set [email protected],getmapusers([email protected]$); mes [email protected]+" people."; callfunc "F_GM_NPC"; if (callfunc("F_GM_NPC",1854,0) == 1) { mes "[Boss Manager]"; mes "What time would you like to return?"; next; switch (select("Cancel:1st Boss:2nd Boss:3rd Boss:4th Boss:Final Boss")) { case 1: break; case 2: donpcevent instance_npcname("Chaos#0")+"::OnDisable"; donpcevent instance_npcname("Iris#0")+"::OnDisable"; donpcevent instance_npcname("#fwormboss1")+"::OnStart"; donpcevent instance_npcname("#globaltimer22")+"::OnT_s"; donpcevent instance_npcname("#fwormprize1")+"::OnStart"; warp [email protected]$,140,70; break; case 3: donpcevent instance_npcname("#fwormboss2")+"::OnStart"; donpcevent instance_npcname("#fwormprize2")+"::OnStart"; warp [email protected]$,160,270; break; case 4: donpcevent instance_npcname("#fwormboss3")+"::OnStart"; donpcevent instance_npcname("#fwormprize3")+"::OnStart"; warp [email protected]$,270,300; break; case 5: donpcevent instance_npcname("#fwormboss4")+"::OnStart"; donpcevent instance_npcname("#fwormprize4")+"::OnStart"; warp [email protected]$,210,105; break; case 6: donpcevent instance_npcname("#fwormboss5")+"::OnStart"; donpcevent instance_npcname("#fwormprize5")+"::OnStart"; warp [email protected]$,214,148; break; } } close; OnInstanceInit: set [email protected]$,instance_mapname("[email protected]"); donpcevent instance_npcname("#forestspiritboss1")+"::OnEnable"; monster [email protected]$,0,0,"Greatest General",1277,50; monster [email protected]$,0,0,"Beetle King",1494,25; monster [email protected]$,0,0,"Savage",1166,25; end; OnEnable: hideoffnpc instance_npcname("#forestspiritboss1"); end; OnDisable: hideonnpc instance_npcname("#forestspiritboss1"); end; }
  3. Looking for developer via team viewer who can setup Offline to my PC. - renewal client 2016 - latest files items etc..... Willing to pay US$ 20
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.