Перейти к содержанию

помогите собрать в кучу скрипт


Рекомендуемые сообщения

Дело такое, Я написал инстанс тавер 2 вплоть до 76 этажа, остался последний кусочек и я немогу его переписать, непонимаю как, Помогите допечатать его пожалуйста

вот скрипт до куда я уже написал



alberta,214,77,6 script Captain Janssen#1 709,{
if (checkweight(1201,1) == 0) {
mes "^008800Wait here!!";
mes "You're carrying too much stuff. Why don't you put some of it away, and then come back.^000000";
close;
}
if (BaseLevel < 50) {
mes "[Captain Janssen]";
mes "Sigh... I don't know if I can ever go back to sailing the sea...";
close;
}
set .@name$,strcharinfo(0);
if (in_78cellar == 1) {
mes "^0000ffLooking incredibly excited, the old man ran into the marine shop hurriedly ordering goods. You don't have anything better to do, so you decide to ask him why he is in such a rush.^000000";
next;
mes "^0000ffThe old man, after finishing his orders, walks towards you.^000000";
next;
mes "[Captain Janssen]";
mes "I was touched when you accepted a request from me, a stranger, so easily. You must truly be one of those good, heroic adventurers. Are you interested in setting out on an ocean voyage?";
next;
mes "["+.@name$+"]";
mes "I've sailed a few times... But now that I think about it, I've never gone across the continent.";
next;
mes "[Captain Janssen]";
mes "No, that's good enough. I may just have one small fishing vessel, but I used to be a captain that commanded a fleet.";
next;
mes "[Captain Janssen]";
mes "As you may know after a few sea voyages, not many people have gone across the ocean beyond the continent. I too have failed to conquer the ocean.";
next;
mes "^0000ffMr. Janssen talked about his perilous ocean journeys for quite a while. You have enough time on your hands, so you sit down, quietly listening to his story.^000000";
next;
mes "^0000ffAt least half of his story sounded grossly exaggerated, but something caught your ear: he insists that a humongous tower exists on the ocean, and that it's so tall, it scrapes across the sky.^000000";
set in_78cellar,2;
close;
} else if (in_78cellar == 2) {
mes "[Captain Janssen]";
mes "So all I could do was cast anchor at that humongous tower after my fleet was wrecked. At first, we were only going to stay there until the rainstorm was over, but it didn't end as soon as we had hoped.";
next;
mes "[Captain Janssen]";
mes "My crew was starving, and a few of them walked into the tower in order to find food... They never came back.";
next;
mes "["+.@name$+"]";
mes "Why didn't you go in there with them?";
next;
mes "[Captain Janssen]";
mes "My instincts told me that tower was dangerous. I was curious, but I wasn't going to risk my life. We waited for them to come back for 7 days until the rainstorm was finally over, but no one returned.";
next;
mes "[Captain Janssen]";
mes "In our desperation to survive, we abandoned all our goods, and left the tower only with a little bit of the water and edible plants we'd found around the tower. When we finally reached land, I was the only one alive...";
next;
mes "^0000ffYou could imagine the heartwretching scene of the dying fleet on their last voyage, even if he didn't explain it any further. A look of somber regret swept over his face as he remained silent a while, and then he said:^000000";
next;
mes "[Captain Janssen]";
mes "I have something I must do before I die. I must retrieve the remains of my crew that died in the tower, and give them a proper burial.";
next;
mes "[Captain Janssen]";
mes "I feel so lucky to meet a warm-hearted adventurer like you. With the money you've given me, I can finally go sailing to the tower again.";
next;
mes "["+.@name$+"]";
mes "How about hiring me as your first mate?";
next;
mes "[Captain Janssen]";
mes "Thank you, but it is an extremely dangerous place. I have my duty to fulfill, but you don't have any obligation to me or them. I don't wish to sacrifice someone as young as you to such a dangerous place.";
next;
mes "["+.@name$+"]";
mes "No...";
mes ".";
mes ".";
mes "As an adventurer, there's my obligation to those in need. I'm also very curious about that place...";
next;
mes "[Captain Janssen]";
mes "I was going to leave right away, but since you've joined me, I should give you time to prepare. I'll be waiting here until you're ready to go.";
next;
mes "[Captain Janssen]";
mes "...Okay then...";
mes "Welcome aboard, first mate.";
set in_78cellar,3;
close;
} else if (in_78cellar == 3) {
mes "[Captain Janssen]";
mes "Shall we leave now?";
next;
switch(select("Yes, let's go!:No, I'm not quite ready...")) {
case 1:
mes "[Captain Janssen]";
mes "Then pull up the anchor, first mate!";
close2;
set in_78cellar,4;
warp "e_tower",70,114;
end;
case 2:
mes "[Captain Janssen]";
mes "Sure, no problem. Come back when you're ready.";
close;
}
} else if (in_78cellar > 3) {
mes "[Captain Janssen]";
mes "Well, to travel the ocean again, we need to restock on goods. If you give me 10,000 Zeny, I'll take care of the rest.";
next;
switch(select("I'll come back later.:Let's go, now!")) {
case 1:
mes "["+.@name$+"]";
mes "I'm sorry, but I don't have that much money. I'll come back when I save enough.";
next;
mes "[Captain Janssen]";
mes "Sure, no problem. I'll be waiting for your return.";
close;
case 2:
if (Zeny < 10000) {
mes "[Captain Janssen]";
mes "I'm sorry, but you don't have enough money. I need at least 10,000 Zeny to restock our supplies...";
close;
}
else {
mes "[Captain Janssen]";
mes "Excellent! Now we're good to go. Let's pull up the anchor again!";
set Zeny, Zeny-10000;
close2;
warp "e_tower",70,114;
end;
}
}
} else {
mes "[Captain Janssen]";
mes "Excuse me, are you an adventurer?";
next;
mes "[Captain Janssen]";
mes "I'm sorry to ask you this, especially when this is the first time we've ever met, but can you do me a favor? I'll make it short.";
next;
mes "[Captain Janssen]";
mes "Can you donate ^0000ff10,000 Zeny^000000 to me? It's for a cause that's important to me...";
next;
switch(select("No!:Sure thing.")) {
case 1:
mes "["+.@name$+"]";
mes "I'm sorry, but you've got the wrong person to ask that.";
next;
mes "[Captain Janssen]";
mes "I see... Sorry to bother you. I understand it was too rude to ask something like that to begin with.";
close;
case 2:
mes "[Captain Janssen]";
mes "Huh? Are you sure that you don't mind giving me that much money? Wow, thank you so much!";
next;
if (Zeny < 10000) {
mes "[Captain Janssen]";
mes "...I'm sorry, but I don't think you have 10,000 Zeny. Thank you for your kindness, but I need more than that.";
close;
} else {
mes "["+.@name$+"]";
mes "I don't know why you'd need so much money, but here. You can take it.";
next;
mes "^0000ffYou have donated 10,000 Zeny to Captain Janssen^000000.";
next;
mes "[Captain Janssen]";
mes "Thank you so much! Now I can stock up on food and materials for my ship. You're kind, very kind!";
set Zeny, Zeny-10000;
set in_78cellar,1;
close;
}
}
}
}

quiz_02,345,81,0 script Cellar Protection Stone 406,{

set .@party_id,getcharid(1);
set .@p_name$,getpartyname(.@party_id);
set .@md_name$,"Endless Cellar";

set .@ecellar_timer,checkquest(60202,PLAYTIME); // 1 week
set .@ecellar_timer2,checkquest(60203,PLAYTIME); // 4 hours

if (!instance_check_party(.@party_id,2)) {
mes "Make or join a party with more than 1 member and try again.";
close;
}
if (.@ecellar_timer == -1) {
if (getcharid(0) == getpartyleader(.@party_id,2)) {
mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Cellar?";
next;
switch(select("Generate dungeon "+.@md_name$+":Enter the dungeon:Return to prontera:Cancel")) {
case 1:
if (instance_create(.@md_name$) < 0) {
mes "Party Name: "+.@p_name$;
mes "Party Leader: "+strcharinfo(0);
mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
close;
}
mes "^0000ff"+.@md_name$+"^000000 - Try to reserve";
mes "After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon.";
close;
case 2:
callsub C_Enter,0,1;
case 3:
mes "I will move you to Prontera.";
close2;
warp "prontera",155,187;
end;
case 4:
close;
}
}
switch(select("Enter the "+.@md_name$+":Return to Prontera:Cancel")) {
case 1:
callsub C_Enter,1,1;
case 2:
mes "I will move you to Prontera.";
close2;
warp "prontera",155,187;
end;
case 3:
end;
}
} else if ((.@ecellar_timer >= 0) && (.@ecellar_timer2 < 2)) {
mes "If you have the dungeon generated already, you can enter it. ";
next;
switch(select("Enter the "+.@md_name$+":Return to Prontera:Cancel")) {
case 1:
callsub C_Enter,0,0;
case 2:
mes "I will move you to Prontera.";
close2;
warp "prontera",155,187;
end;
case 3:
break;
}
close;
} else if ((.@ecellar_timer >= 0) && (.@ecellar_timer < 2) && (.@ecellar_timer2 == 2)) {

set .@dun_lim_time,ecellar_timer+604800; // 1 week
set .@dun_lim_time2,ecellar_timer+14400; // 4 hours
set .@dun_cur_time,gettimetick(2);
set .@dun_ent_t,(.@dun_lim_time - .@dun_cur_time);
set .@dun_h,(.@dun_ent_t / 3600);
set .@dun_m,(.@dun_ent_t - (.@dun_h * 3600)) / 60;
set .@dun_s,.@dun_ent_t - ((.@dun_h * 3600) + (.@dun_m * 60));

mes "Due to the tower's aftereffects, you cannot enter the dungeon right now, " + .@dun_h + "hours " + .@dun_m + "minutes " + .@dun_s + "seconds left to enter the next dungeon.";
next;
mes "It is dangerous here. Let me move you to Prontera.";
close2;
warp "prontera",155,187;
end;
} else {
set ecellar_timer,0;
erasequest 60202;
erasequest 60203;
mes "^0000ffThe records and after effects related to the Endless Cellar have been removed. You can generate and enter the Endless Cellar again.^000000";
close;
}

C_Enter:
switch(instance_enter("Endless Cellar")) {
case 3:
mes "An unknown error has occurred.";
close;
case 2:
mes "The memorial dungeon Endless Cellar does not exist.";
mes "The party leader did not generate the dungeon yet.";
close;
case 1:
mes "You can enter the dungeon after making the party.";
close;
case 0:
mapannounce "quiz_02", strcharinfo(0)+" of the party, "+.@p_name$+", is entering the dungeon, Endless Cellar.",bc_map,"0x00ff99",FW_NORMAL,12;
if (getarg(1)) {
set ecellar_timer,gettimetick(2);
setquest 60202;
setquest 60203;
}
//warp "1@tower",155,187;
if (getarg(0) == 0) close;
else end;
}
}

quiz_02,30,30,2 script Huge Vorteks 844,2,2,{
end;
OnTouch:
mapannounce "quiz_02","[ " + strcharinfo(0) + " ], seems to be engulfed by a huge Vorteks",bc_map,"0x00ff99",FW_NORMAL,12;
warp "prontera",223,36;
end;
}
quiz_02,349,85,4 script Purification Stone#ec1 406,{
set ecellar_timer,0;
mes "^0000ffThe records and aftereffects related to the Endless Cellar have been removed. You can generate and enter the Endless Cellar again.^000000";
close;

OnInit:
disablenpc "Purification Stone#ec1";
end;

OnEnable:
initnpctimer;
end;

OnDisable:
stopnpctimer;
disablenpc "Purification Stone#ec1";
end;

OnTimer1000:
enablenpc "Purification Stone#ec1";
end;

OnTimer1740000:
mapannounce "quiz_02", "The Purification Stone will be destroyed in one minute.",bc_map,"0x00ff99";
end;

OnTimer1800000:
disablenpc "Purification Stone#ec1";
end;
}

quiz_02,151,185,4 script Purification Stone#ec2 844,{
callfunc "F_GM_NPC";
set etower_timer,0;
mes "^0000ffThe records and aftereffects related to the Endless Cellar have been removed. You can generate and enter the Endless Cellar again.^000000";
close2;
warp "quiz_02",342,78;
end;
}

// Core Functions
//============================================================
function script F_Cellar_Monster {

set .@level, getarg(0);
set .@map$, getarg(1);
set .@label$, getarg(2);

switch(.@level) {
case 1:
areamonster .@map$,91,349,137,375,"Fabre",1007,20,.@label$;
areamonster .@map$,91,349,137,375,"Picky",1049,10,.@label$;
areamonster .@map$,91,349,137,375,"Picky",1050,10,.@label$;
break;
case 2:
areamonster .@map$,179,349,225,375,"Willow",1010,10,.@label$;
areamonster .@map$,179,349,225,375,"Wolf",1013,10,.@label$;
areamonster .@map$,179,349,225,375,"Creamy",1018,10,.@label$;
break;
case 3:
areamonster .@map$,265,349,311,375,"Condor",1009,10,.@label$;
areamonster .@map$,265,349,311,375,"Peco Peco",1019,10,.@label$;
areamonster .@map$,265,349,311,375,"Muka",1055,10,.@label$;
break;
case 4:
areamonster .@map$,349,349,395,375,"Greatest General",1277,25,.@label$;
areamonster .@map$,349,349,395,375,"Eddga",1115,1,.@label$;
break;
case 5:
areamonster .@map$,91,265,137,291,"Spore",1014,15,.@label$;
areamonster .@map$,91,265,137,291,"Poison Spore",1077,15,.@label$;
break;
case 6:
areamonster .@map$,179,265,225,291,"Crab",1073,15,.@label$;
areamonster .@map$,179,265,225,291,"Shellfish",1074,15,.@label$;
areamonster .@map$,179,265,225,291,"Aster",1266,15,.@label$;
break;
case 7:
areamonster .@map$,265,265,311,291,"Vadon",1066,10,.@label$;
areamonster .@map$,265,265,311,291,"Cornutus",1067,10,.@label$;
areamonster .@map$,265,265,311,291,"Marina",1141,10,.@label$;
areamonster .@map$,265,265,311,291,"Plankton",1161,10,.@label$;
break;
case 8:
areamonster .@map$,349,265,395,291,"Garm Baby",1515,10,.@label$;
areamonster .@map$,349,265,395,291,"Marine Sphere",1142,20,.@label$;
areamonster .@map$,349,265,395,291,"Garm",1252,1,.@label$;
break;
case 9:
areamonster .@map$,91,177,137,203,"Metaller",1058,20,.@label$;
areamonster .@map$,91,177,137,203,"Magnolia",1138,20,.@label$;
break;
case 10:
areamonster .@map$,179,177,225,203,"Coco",1104,15,.@label$;
areamonster .@map$,179,177,225,203,"Caramel",1103,15,.@label$;
areamonster .@map$,179,177,225,203,"Horn",1128,15,.@label$;
break;
case 11:
areamonster .@map$,265,177,311,203,"Ambernite",1023,25,.@label$;
areamonster .@map$,265,177,311,203,"Eggyra",1116,25,.@label$;
break;
case 12:
areamonster .@map$,349,177,395,203,"Megalith",1274,10,.@label$;
areamonster .@map$,349,177,395,203,"Panzer Goblin",1308,10,.@label$;
areamonster .@map$,349,177,395,203,"Rotar Zairo",1392,10,.@label$;
areamonster .@map$,349,177,395,203,"Steam Goblin",1280,10,.@label$;
areamonster .@map$,349,177,395,203,"Tao Gunka",1583,1,.@label$;
break;
case 13:
areamonster .@map$,91,94,137,119,"Smokie",1056,15,.@label$;
areamonster .@map$,91,94,137,119,"Giearth",1121,15,.@label$;
areamonster .@map$,91,94,137,119,"Martin",1145,15,.@label$;
areamonster .@map$,91,94,137,119,"Raggler",1254,15,.@label$;
break;
case 14:
areamonster .@map$,179,94,225,119,"Worm Tail",1024,25,.@label$;
areamonster .@map$,179,94,225,119,"Stem Worm",1215,25,.@label$;
break;
case 15:
areamonster .@map$,265,94,311,119,"Christmas Jakk",1244,10,.@label$;
areamonster .@map$,265,94,311,119,"Christmas Goblin",1245,10,.@label$;
areamonster .@map$,265,94,311,119,"Christmas Cookie",1246,10,.@label$;
areamonster .@map$,265,94,311,119,"Cookie",1265,10,.@label$;
areamonster .@map$,265,94,311,119,"Christmas Orc",1588,10,.@label$;
break;
case 16:
areamonster .@map$,349,94,395,119,"Antonio",1247,25,.@label$;
areamonster .@map$,349,94,395,119,"Santa Poring",1062,25,.@label$;
areamonster .@map$,349,94,395,119,"Stormy Knight",1251,1,.@label$;
break;
case 17:
areamonster .@map$,91,7,137,33,"Roda Frog",1012,15,.@label$;
areamonster .@map$,91,7,137,33,"Thara Frog",1034,15,.@label$;
areamonster .@map$,91,7,137,33,"Poison Toad",1402,15,.@label$;
areamonster .@map$,91,7,137,33,"Toad",1089,1,.@label$;
break;
case 18:
areamonster .@map$,179,7,225,33,"Lunatic",1063,20,.@label$;
areamonster .@map$,179,7,225,33,"Spring Rabbit",1322,20,.@label$;
areamonster .@map$,179,7,225,33,"Eclipse",1093,1,.@label$;
break;
case 19:
areamonster .@map$,265,7,311,33,"Yoyo",1057,20,.@label$;
areamonster .@map$,265,7,311,33,"Mime Monkey",1585,20,.@label$;
areamonster .@map$,265,7,311,33,"Choco",1214,1,.@label$;
break;
case 20:
areamonster .@map$,349,7,395,33,"Ghoul",1036,10,.@label$;
areamonster .@map$,349,7,395,33,"Myst",1151,10,.@label$;
areamonster .@map$,349,7,395,33,"Vitata",1176,10,.@label$;
areamonster .@map$,349,7,395,33,"Zenorc",1177,10,.@label$;
areamonster .@map$,349,7,395,33,"Dracula",1389,1,.@label$;
break;
case 21:
areamonster .@map$,91,349,137,375,"Stainer",1174,30,.@label$;
areamonster .@map$,91,349,137,375,"Brilight",1211,20,.@label$;
break;
case 22:
areamonster .@map$,179,349,225,375,"Marc",1045,15,.@label$;
areamonster .@map$,179,349,225,375,"Tri Joint",1279,15,.@label$;
areamonster .@map$,179,349,225,375,"Fur Seal",1317,15,.@label$;
areamonster .@map$,179,349,225,375,"Sea Otter",1323,15,.@label$;
break;
case 23:
areamonster .@map$,265,349,311,375,"Wood Goblin",1880,20,.@label$;
areamonster .@map$,265,349,311,375,"Les",1881,20,.@label$;
areamonster .@map$,265,349,311,375,"Mavka",1884,10,.@label$;
break;
case 24:
areamonster .@map$,349,349,395,375,"Babayaga",1882,20,.@label$;
areamonster .@map$,349,349,395,375,"Uzhas",1883,10,.@label$;
areamonster .@map$,349,349,395,375,"Gopinich",1885,1,.@label$;
break;
case 25:
areamonster .@map$,91,265,137,291,"Kaho",1072,15,.@label$;
areamonster .@map$,91,265,137,291,"Blazzer",1367,15,.@label$;
areamonster .@map$,91,265,137,291,"Driller",1380,15,.@label$;
areamonster .@map$,91,265,137,291,"Horong",1129,10,.@label$;
areamonster .@map$,91,265,137,291,"Minorous",1149,5,.@label$;
break;
case 26:
areamonster .@map$,179,265,225,291,"Dokebi",1110,30,.@label$;
areamonster .@map$,179,265,225,291,"Am Mut",1301,20,.@label$;
areamonster .@map$,179,265,225,291,"Sageworm",1281,10,.@label$;
break;
case 27:
areamonster .@map$,265,265,311,291,"Savage",1166,30,.@label$;
areamonster .@map$,265,265,311,291,"Gullinbursti",1311,20,.@label$;
areamonster .@map$,265,265,311,291,"Goat",1372,10,.@label$;
break;
case 28:
areamonster .@map$,349,265,395,291,"Bettle King",1494,20,.@label$;
areamonster .@map$,349,265,395,291,"Bacsojin",1518,10,.@label$;
areamonster .@map$,349,265,395,291,"Chung E",1519,10,.@label$;
areamonster .@map$,349,265,395,291,"Tamruan",1584,30,.@label$;
areamonster .@map$,349,265,395,291,"Lady Tanee",1688,1,.@label$;
break;
case 29:
areamonster .@map$,91,177,137,203,"Requiem",1164,25,.@label$;
areamonster .@map$,91,177,137,203,"Zerom",1178,25,.@label$;
areamonster .@map$,91,177,137,203,"Skeleton General",1290,10,.@label$;
break;
case 30:
areamonster .@map$,179,177,225,203,"Leaf Cat",1586,25,.@label$;
areamonster .@map$,179,177,225,203,"Wild Rose",1261,25,.@label$;
break;
case 31:
areamonster .@map$,265,177,311,203,"Dustiness",1114,10,.@label$;
areamonster .@map$,265,177,311,203,"Giant Spider",1304,10,.@label$;
areamonster .@map$,265,177,311,203,"Porcellio",1619,10,.@label$;
areamonster .@map$,265,177,311,203,"Pitman",1616,10,.@label$;
break;
case 32:
areamonster .@map$,349,177,395,203,"Mineral",1614,10,.@label$;
areamonster .@map$,349,177,395,203,"Waste Stove",1617,10,.@label$;
areamonster .@map$,349,177,395,203,"Noxious",1620,10,.@label$;
areamonster .@map$,349,177,395,203,"Venomous",1621,10,.@label$;
areamonster .@map$,349,177,395,203,"Teddy Bear",1622,10,.@label$;
areamonster .@map$,349,177,395,203,"RSX-006",1623,1,.@label$;
break;
case 33:
areamonster .@map$,91,94,137,119,"Bathory",1102,15,.@label$;
areamonster .@map$,91,94,137,119,"Sohee",1170,15,.@label$;
areamonster .@map$,91,94,137,119,"Violy",1390,15,.@label$;
break;
case 34:
areamonster .@map$,179,94,225,119,"Dragon Tail",1321,15,.@label$;
areamonster .@map$,179,94,225,119,"Geographer",1368,15,.@label$;
areamonster .@map$,179,94,225,119,"Galapago",1391,15,.@label$;
areamonster .@map$,179,94,225,119,"Kapha",1406,15,.@label$;
break;
case 35:
areamonster .@map$,265,94,311,119,"Rice Cake Boy",1409,15,.@label$;
areamonster .@map$,265,94,311,119,"Boiled Rice",1520,15,.@label$;
areamonster .@map$,265,94,311,119,"Baby Leopard",1415,15,.@label$;
break;
case 36:
areamonster .@map$,349,94,395,119,"Disguise",1506,30,.@label$;
areamonster .@map$,349,94,395,119,"Dark Priest",1198,20,.@label$;
areamonster .@map$,349,94,395,119,"Lord of Death",1373,1,.@label$;
break;
case 37:
areamonster .@map$,91,7,137,33,"Wootan Shooter",1498,25,.@label$;
areamonster .@map$,91,7,137,33,"Wootan Fighter",1499,25,.@label$;
break;
case 38:
areamonster .@map$,179,7,225,33,"Mole",1628,30,.@label$;
areamonster .@map$,179,7,225,33,"Maya Purple",1289,10,.@label$;
break;
case 39:
areamonster .@map$,265,7,311,33,"Safeguard Chief",1981,10,.@label$;
areamonster .@map$,265,7,311,33,"Orc Sniper",1982,10,.@label$;
areamonster .@map$,265,7,311,33,"Depraved Orc Spirit",1983,10,.@label$;
areamonster .@map$,265,7,311,33,"Shaman Cargalache",1984,10,.@label$;
break;
case 40:
areamonster .@map$,349,7,395,33,"Photon Cannon",1664,10,.@label$;
areamonster .@map$,349,7,395,33,"Photon Cannon",1665,10,.@label$;
areamonster .@map$,349,7,395,33,"Photon Cannon",1666,10,.@label$;
areamonster .@map$,349,7,395,33,"Photon Cannon",1667,10,.@label$;
areamonster .@map$,349,7,395,33,"Vesper",1685,1,.@label$;
break;
case 41:
areamonster .@map$,91,349,137,375,"Remover",1682,25,.@label$;
areamonster .@map$,91,349,137,375,"Gemini-S58",1681,25,.@label$;
break;
case 42:
areamonster .@map$,179,349,225,375,"Breeze",1692,30,.@label$;
areamonster .@map$,179,349,225,375,"Roween",1782,30,.@label$;
break;
case 43:
areamonster .@map$,265,349,311,375,"Gremlin",1632,25,.@label$;
areamonster .@map$,265,349,311,375,"Hodremlin",1773,25,.@label$;
break;
case 44:
areamonster .@map$,349,349,395,375,"Novus",1715,25,.@label$;
areamonster .@map$,349,349,395,375,"Novus",1716,25,.@label$;
areamonster .@map$,349,349,395,375,"Detale",1719,1,.@label$;
break;
case 45:
areamonster .@map$,91,265,137,291,"Banshee Master",1974,25,.@label$;
areamonster .@map$,91,265,137,291,"Banshee",1868,25,.@label$;
break;
case 46:
areamonster .@map$,179,265,225,291,"Beholder Master",1975,25,.@label$;
areamonster .@map$,179,265,225,291,"Beholder",1633,15,.@label$;
areamonster .@map$,179,265,225,291,"Seeker",1774,15,.@label$;
break;
case 47:
areamonster .@map$,265,265,311,291,"Cobalt Mineral",1976,25,.@label$;
areamonster .@map$,265,265,311,291,"Heavy Metaling",1977,25,.@label$;
break;
case 48:
areamonster .@map$,349,265,395,291,"Alicel",1735,30,.@label$;
areamonster .@map$,349,265,395,291,"Constant",1738,30,.@label$;
areamonster .@map$,349,265,395,291,"Kiel D-01",1734,1,.@label$;
break;
case 49:
areamonster .@map$,91,177,137,203,"Frus",1753,55,.@label$;
break;
case 50:
areamonster .@map$,179,177,225,203,"Hell Apocalips",1978,25,.@label$;
areamonster .@map$,179,177,225,203,"Apocalips",1365,25,.@label$;
break;
case 51:
areamonster .@map$,265,177,311,203,"Zakudam",1979,25,.@label$;
areamonster .@map$,265,177,311,203,"Archdam",1668,25,.@label$;
break;
case 52:
areamonster .@map$,349,177,395,203,"Aunoe",1796,25,.@label$;
areamonster .@map$,349,177,395,203,"Fanat",1797,25,.@label$;
areamonster .@map$,349,177,395,203,"Gloom Under Night",1768,1,.@label$;
break;
case 53:
areamonster .@map$,91,94,137,119,"Zombie Slaughter",1864,20,.@label$;
areamonster .@map$,91,94,137,119,"Hell Poodle",1866,20,.@label$;
break;
case 54:
areamonster .@map$,179,94,225,119,"Siroma",1776,30,.@label$;
areamonster .@map$,179,94,225,119,"Snowier",1775,20,.@label$;
areamonster .@map$,179,94,225,119,"Ice Titan",1777,10,.@label$;
break;
case 55:
areamonster .@map$,265,94,311,119,"Iceicle",1789,75,.@label$;
break;
case 56:
areamonster .@map$,349,94,395,119,"Gazeti",1778,30,.@label$;
areamonster .@map$,349,94,395,119,"Ktullanux",1779,1,.@label$;
break;
case 57:
areamonster .@map$,91,7,137,33,"Magmaring",1836,15,.@label$;
areamonster .@map$,91,7,137,33,"Knocker",1838,15,.@label$;
areamonster .@map$,91,7,137,33,"Imp",1837,15,.@label$;
break;
case 58:
areamonster .@map$,179,7,225,33,"Ghostring",1120,3,.@label$;
areamonster .@map$,179,7,225,33,"Angeling",1096,3,.@label$;
areamonster .@map$,179,7,225,33,"Deviling",1582,3,.@label$;
areamonster .@map$,179,7,225,33,"Arc Angeling",1388,3,.@label$;
areamonster .@map$,179,7,225,33,"Mastering",1090,3,.@label$;
break;
case 59:
areamonster .@map$,265,7,311,33,"Thanatos Odium",1704,12,.@label$;
areamonster .@map$,265,7,311,33,"Thanatos Despero",1705,12,.@label$;
areamonster .@map$,265,7,311,33,"Thanatos Maero",1706,12,.@label$;
areamonster .@map$,265,7,311,33,"Thanatos Dolor",1707,12,.@label$;
break;
case 60:
areamonster .@map$,349,7,395,33,"Thanatos Phantom",1708,1,.@label$;
break;
case 61:
areamonster .@map$,91,349,137,375,"Pinguicula",1995,40,.@label$;
areamonster .@map$,91,349,137,375,"Dark Pinguicula",2015,40,.@label$;
break;
case 62:
areamonster .@map$,179,349,225,375,"Nepenthes",1988,60,.@label$;
areamonster .@map$,179,349,225,375,"Luciola Vespa",1994,30,.@label$;
break;
case 63:
areamonster .@map$,265,349,311,375,"Naga",1993,50,.@label$;
areamonster .@map$,265,349,311,375,"Cornus",1992,20,.@label$;
break;
case 64:
areamonster .@map$,349,349,395,375,"Hillslion",1989,15,.@label$;
areamonster .@map$,349,349,395,375,"Tendril Lion",1991,2,.@label$;
break;
case 65:
areamonster .@map$,91,265,137,291,"Centipede Larva",1999,50,.@label$;
areamonster .@map$,91,265,137,291,"Centipede",1987,25,.@label$;
break;
case 66:
areamonster .@map$,179,265,225,291,"Draco Egg",2014,30,.@label$;
areamonster .@map$,179,265,225,291,"Draco",2013,10,.@label$;
areamonster .@map$,179,265,225,291,"Tatacho",1986,40,.@label$;
break;
case 67:
areamonster .@map$,265,265,311,291,"Bradium Golem",2024,30,.@label$;
areamonster .@map$,265,265,311,291,"Stalactic Golem",1278,10,.@label$;
areamonster .@map$,265,265,311,291,"Lava Golem",1366,20,.@label$;
break;
case 68:
areamonster .@map$,349,265,395,291,"Tatacho",1986,10,.@label$;
areamonster .@map$,349,265,395,291,"Hardrock Mammoth",1990,2,.@label$;
break;
case 69:
areamonster .@map$,91,177,137,203,"Aqua Elemental",2016,25,.@label$;
areamonster .@map$,91,177,137,203,"Rhyncho",2020,25,.@label$;
areamonster .@map$,91,177,137,203,"Phylla",2021,25,.@label$;
break;
case 70:
areamonster .@map$,179,177,225,203,"Ancient Tree",2019,35,.@label$;
areamonster .@map$,179,177,225,203,"Dark Shadow",2023,15,.@label$;
break;
case 71:
areamonster .@map$,265,177,311,203,"Rata",2017,12,.@label$;
areamonster .@map$,265,177,311,203,"Duneyrr",2018,12,.@label$;
break;
case 72:
areamonster .@map$,349,177,395,203,"Nidhoggr's Shadow",2022,1,.@label$;
break;
case 73:
areamonster .@map$,91,94,137,119,"Byorgue",1839,16,.@label$;
break;
case 74:
areamonster .@map$,179,94,225,119,"Lord Knight Seyren",1640,2,.@label$;
areamonster .@map$,179,94,225,119,"Assassin Cross Eremes",1641,2,.@label$;
areamonster .@map$,179,94,225,119,"Whitesmith Howard",1642,2,.@label$;
areamonster .@map$,179,94,225,119,"High Priest Margaretha",1643,2,.@label$;
areamonster .@map$,179,94,225,119,"Sniper Cecil",1644,2,.@label$;
areamonster .@map$,179,94,225,119,"High Wizard Kathryne",1645,2,.@label$;
break;
case 75:
areamonster .@map$,265,94,311,119,"Incarnation of Morroc",1918,7,.@label$;
areamonster .@map$,265,94,311,119,"Incarnation of Morroc",1919,7,.@label$;
areamonster .@map$,265,94,311,119,"Incarnation of Morroc",1920,7,.@label$;
areamonster .@map$,265,94,311,119,"Incarnation of Morroc",1921,7,.@label$;
break;
case 76:
areamonster .@map$,349,94,395,119,"Wounded Morroc",1917,1,.@label$;
break;
case 77:
areamonster .@map$,92,72,93,72,"Poring",1002,1,.@label$;
break;
}
return;
}

function script E_Cellar_Warp {

set .@level, getarg(0);
set .@map$, getarg(1);

switch(.@level) {
case 2: warp .@map$,184,393; break;
case 3: warp .@map$,270,393; break;
case 4: warp .@map$,354,393; break;
case 5: warp .@map$,96,309; break;
case 6: warp .@map$,184,309; break;
case 7: warp .@map$,270,309; break;
case 8: warp .@map$,354,309; break;
case 9: warp .@map$,96,221; break;
case 10: warp .@map$,184,221; break;
case 11: warp .@map$,270,221; break;
case 12: warp .@map$,354,221; break;
case 13: warp .@map$,96,137; break;
case 14: warp .@map$,184,137; break;
case 15: warp .@map$,270,137; break;
case 16: warp .@map$,354,137; break;
case 17: warp .@map$,96,51; break;
case 18: warp .@map$,184,51; break;
case 19: warp .@map$,270,51; break;
case 20: warp .@map$,354,51; break;

case 21: warp .@map$,96,393; break;
case 22: warp .@map$,184,393; break;
case 23: warp .@map$,270,393; break;
case 24: warp .@map$,354,393; break;
case 25: warp .@map$,96,309; break;
case 26: warp .@map$,184,309; break;
case 27: warp .@map$,270,309; break;
case 28: warp .@map$,354,309; break;
case 29: warp .@map$,96,221; break;
case 30: warp .@map$,184,221; break;
case 31: warp .@map$,270,221; break;
case 32: warp .@map$,354,221; break;
case 33: warp .@map$,96,137; break;
case 34: warp .@map$,184,137; break;
case 35: warp .@map$,270,137; break;
case 36: warp .@map$,354,137; break;
case 37: warp .@map$,96,51; break;
case 38: warp .@map$,184,51; break;
case 39: warp .@map$,270,51; break;
case 40: warp .@map$,354,51; break;

case 41: warp .@map$,96,393; break;
case 42: warp .@map$,184,393; break;
case 43: warp .@map$,270,393; break;
case 44: warp .@map$,354,393; break;
case 45: warp .@map$,96,309; break;
case 46: warp .@map$,184,309; break;
case 47: warp .@map$,270,309; break;
case 48: warp .@map$,354,309; break;
case 49: warp .@map$,96,221; break;
case 50: warp .@map$,184,221; break;
case 51: warp .@map$,270,221; break;
case 52: warp .@map$,354,221; break;
case 53: warp .@map$,96,137; break;
case 54: warp .@map$,184,137; break;
case 55: warp .@map$,270,137; break;
case 56: warp .@map$,354,137; break;
case 57: warp .@map$,96,51; break;
case 58: warp .@map$,184,51; break;
case 59: warp .@map$,270,51; break;
case 60: warp .@map$,354,51; break;

case 61: warp .@map$,96,393; break;
case 62: warp .@map$,184,393; break;
case 63: warp .@map$,270,393; break;
case 64: warp .@map$,354,393; break;
case 65: warp .@map$,96,309; break;
case 66: warp .@map$,184,309; break;
case 67: warp .@map$,270,309; break;
case 68: warp .@map$,354,309; break;
case 69: warp .@map$,96,221; break;
case 70: warp .@map$,184,221; break;
case 71: warp .@map$,270,221; break;
case 72: warp .@map$,354,221; break;
case 73: warp .@map$,96,137; break;
case 74: warp .@map$,184,137; break;
case 75: warp .@map$,270,137; break;
case 76: warp .@map$,354,137; break;
case 77: warp .@map$,98,73; break;
}
return;
}

// Levels 1-20
//============================================================
1@new,101,393,0 script Immortal Brazier#1 844,{
mes "- A Message is Engraved on the Brazier -";
mes "The one who scatters the ashes of the darkness in this place shall become one step closer to Nacht Sieger, the Hegemon King of the Darkness...";
next;

setarray .@level$[1],"21th","41st","61th";
setarray .@map$[1],"2@new","3@new","4@new";
set .@i, select("21th Level:41st Level:61th Level");

if (countitem(6000) < .@i) {
mes "-Warning-";
mes "To warp to the "+.@level$[.@i]+" Level, you need "+.@i+" Ashes of the Darkness.";
close;
}
delitem 6000,.@i; //Dark_Ashes
mapannounce instance_mapname("1@new"), strcharinfo(0)+". You will be warped to the "+.@level$[.@i]+" Level.",bc_map,"0x00ff99";
warp instance_mapname(.@map$[.@i]),96,393;
close;

OnInstanceInit:
initnpctimer;
end;

OnTimer10000:
mapannounce instance_mapname("1@new"), "Notice : Taming a monster does not count towards defeating them.",bc_map,"0xff0000";
stopnpctimer;
end;
}

1@new,29,365,1 script #1C Controller 844,{
end;

OnInstanceInit:
callfunc "F_Cellar_Monster",
1,
instance_mapname("1@new"),
instance_npcname("#1C Controller")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("1@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("#1C Controller")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor 1
} else
mapannounce .@map$, "Remaining Monsters on the 1st Level - "+.@mob_dead_num,bc_map,"0x00ff99";
end;

OnTimer2000:
mapannounce instance_mapname("1@new"), "All Monsters on the 1st Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname("1FGate77Cellar")+"::OnEnable";
stopnpctimer;
end;
}

1@new,135,355,0 script 1FGate77Cellar 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname(strnpcinfo(0));
end;

OnEnable:
enablenpc instance_npcname(strnpcinfo(0));
callfunc "F_Cellar_Monster",
atoi(replacestr(strnpcinfo(0),"FGate77Cellar","")) + 1,
strnpcinfo(4),
instance_npcname(strnpcinfo(0))+"::OnMyMobDead";
end;

OnTouch_:
callfunc "E_Cellar_Warp",
atoi(replacestr(strnpcinfo(0),"FGate77Cellar","")) + 1,
strnpcinfo(4);
end;

OnMyMobDead:
set .@map$, strnpcinfo(4);
set .@level, atoi(replacestr(strnpcinfo(0),"FGate77Cellar","")) + 1;
set .@mob_dead_num,mobcount(.@map$,instance_npcname(strnpcinfo(0))+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor .@level
} else
mapannounce .@map$, "Remaining Monsters on the "+callfunc("F_GetNumSuffix",.@level)+" Level - "+.@mob_dead_num,bc_map,"0x00ff99";
end;

OnTimer2000:
set .@level, atoi(replacestr(strnpcinfo(0),"FGate77Cellar","")) + 1;
mapannounce strnpcinfo(4), "All Monsters on the "+callfunc("F_GetNumSuffix",.@level)+" Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname(.@level+"FGate77Cellar")+"::OnEnable";
stopnpctimer;
end;
}

1@new,223,355,0 duplicate(1FGate77Cellar) 2FGate77Cellar 45,2,2
1@new,309,355,0 duplicate(1FGate77Cellar) 3FGate77Cellar 45,2,2
1@new,393,355,0 duplicate(1FGate77Cellar) 4FGate77Cellar 45,2,2
1@new,135,271,0 duplicate(1FGate77Cellar) 5FGate77Cellar 45,2,2
1@new,223,271,0 duplicate(1FGate77Cellar) 6FGate77Cellar 45,2,2
1@new,309,271,0 duplicate(1FGate77Cellar) 7FGate77Cellar 45,2,2
1@new,393,271,0 duplicate(1FGate77Cellar) 8FGate77Cellar 45,2,2
1@new,135,183,0 duplicate(1FGate77Cellar) 9FGate77Cellar 45,2,2
1@new,223,183,0 duplicate(1FGate77Cellar) 10FGate77Cellar 45,2,2
1@new,309,183,0 duplicate(1FGate77Cellar) 11FGate77Cellar 45,2,2
1@new,393,183,0 duplicate(1FGate77Cellar) 12FGate77Cellar 45,2,2
1@new,135,99,0 duplicate(1FGate77Cellar) 13FGate77Cellar 45,2,2
1@new,223,99,0 duplicate(1FGate77Cellar) 14FGate77Cellar 45,2,2
1@new,309,99,0 duplicate(1FGate77Cellar) 15FGate77Cellar 45,2,2
1@new,393,99,0 duplicate(1FGate77Cellar) 16FGate77Cellar 45,2,2
1@new,135,13,0 duplicate(1FGate77Cellar) 17FGate77Cellar 45,2,2
1@new,223,13,0 duplicate(1FGate77Cellar) 18FGate77Cellar 45,2,2
1@new,309,13,0 duplicate(1FGate77Cellar) 19FGate77Cellar 45,2,2

1@new,393,13,0 script 20FGate77Cellar 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("20FGate77Cellar");
end;

OnEnable:
enablenpc instance_npcname("20FGate77Cellar");
initnpctimer;
end;

OnTouch_:
getitem 6000,1; //Dark_Ashes
warp instance_mapname("2@new"),96,393;
end;

OnTimer120000:
disablenpc instance_npcname("20FGate77Cellar");
donpcevent instance_npcname("20FGate77Cellar-2")+"::OnEnable";
stopnpctimer;
end;
}

1@new,393,13,0 script 20FGate77Cellar-2 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("20FGate77Cellar-2");
end;

OnEnable:
enablenpc instance_npcname("20FGate77Cellar-2");
end;

OnTouch_:
warp instance_mapname("2@new"),96,393;
end;
}

1@new,71,4,0 script Broadcast Mode 844,{
end;

OnInstanceInit:
initnpctimer;
end;

OnTimer15000:
OnTimer60000:
mapannounce instance_mapname("1@new"), "Notice : In any abnormal situation where you defeat a monster, you can't advance to the next level!",bc_map,"0xff0000";
end;
OnTimer120000:
mapannounce instance_mapname("1@new"), "Notice : In any abnormal situation where you defeat a monster, you can't advance to the next level!",bc_map,"0xff0000";
stopnpctimer;
end;
}

// Levels 21-40
//============================================================
2@new,29,365,2 script Immortal Furnace 844,{
end;

OnInstanceInit:
callfunc "F_Cellar_Monster",
21,
instance_mapname("2@new"),
instance_npcname("Immortal Furnace")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("2@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("Immortal Furnace")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor 26
}
else
mapannounce .@map$, "Remaining Monsters on the 21th Level - " + .@mob_dead_num,bc_map,"0x00ff99";
end;

OnTimer2000:
mapannounce instance_mapname("2@new"), "All Monsters on the 21th Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname("21FGate77Cellar")+"::OnEnable";
stopnpctimer;
end;
}

2@new,135,355,0 duplicate(1FGate77Cellar) 21FGate77Cellar 45,2,2
2@new,223,355,0 duplicate(1FGate77Cellar) 22FGate77Cellar 45,2,2
2@new,309,355,0 duplicate(1FGate77Cellar) 23FGate77Cellar 45,2,2
2@new,393,355,0 duplicate(1FGate77Cellar) 24FGate77Cellar 45,2,2
2@new,135,271,0 duplicate(1FGate77Cellar) 25FGate77Cellar 45,2,2
2@new,223,271,0 duplicate(1FGate77Cellar) 26FGate77Cellar 45,2,2
2@new,309,271,0 duplicate(1FGate77Cellar) 27FGate77Cellar 45,2,2
2@new,393,271,0 duplicate(1FGate77Cellar) 28FGate77Cellar 45,2,2
2@new,135,183,0 duplicate(1FGate77Cellar) 29FGate77Cellar 45,2,2
2@new,223,183,0 duplicate(1FGate77Cellar) 30FGate77Cellar 45,2,2
2@new,309,183,0 duplicate(1FGate77Cellar) 31FGate77Cellar 45,2,2
2@new,393,183,0 duplicate(1FGate77Cellar) 32FGate77Cellar 45,2,2
2@new,135,99,0 duplicate(1FGate77Cellar) 33FGate77Cellar 45,2,2
2@new,223,99,0 duplicate(1FGate77Cellar) 34FGate77Cellar 45,2,2
2@new,309,99,0 duplicate(1FGate77Cellar) 35FGate77Cellar 45,2,2
2@new,393,99,0 duplicate(1FGate77Cellar) 36FGate77Cellar 45,2,2
2@new,135,13,0 duplicate(1FGate77Cellar) 37FGate77Cellar 45,2,2
2@new,223,13,0 duplicate(1FGate77Cellar) 38FGate77Cellar 45,2,2
2@new,309,13,0 duplicate(1FGate77Cellar) 39FGate77Cellar 45,2,2

2@new,393,13,0 script 40FGate77Cellar 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("40FGate77Cellar");
end;

OnEnable:
enablenpc instance_npcname("40FGate77Cellar");
initnpctimer;
end;

OnTouch_:
getitem 6000,1; //Dark_Ashes
warp instance_mapname("3@new"),96,393;
end;

OnTimer120000:
disablenpc instance_npcname("40FGate77Cellar");
donpcevent instance_npcname("40FGate77Cellar-2")+"::OnEnable";
stopnpctimer;
end;
}

2@new,393,13,0 script 40FGate77Cellar-2 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("40FGate77Cellar-2");
end;

OnEnable:
enablenpc instance_npcname("40FGate77Cellar-2");
end;

OnTouch_:
warp instance_mapname("3@new"),96,393;
end;
}

// Levels 41-60
//============================================================
3@new,29,365,2 script Immortal Furnace2 844,{
end;

OnInstanceInit:
callfunc "F_Cellar_Monster",
41,
instance_mapname("3@new"),
instance_npcname("Immortal Furnace2")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("3@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("Immortal Furnace2")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor 41
}
else
mapannounce .@map$, "Remaining Monsters on the 41st Level - " + .@mob_dead_num,bc_map,"0x00ff99";
end;

OnTimer2000:
mapannounce instance_mapname("3@new"), "All Monsters on the 41st Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname("41FGate77Cellar")+"::OnEnable";
stopnpctimer;
end;
}

3@new,135,355,0 duplicate(1FGate77Cellar) 41FGate77Cellar 45,2,2
3@new,223,355,0 duplicate(1FGate77Cellar) 42FGate77Cellar 45,2,2
3@new,309,355,0 duplicate(1FGate77Cellar) 43FGate77Cellar 45,2,2
3@new,393,355,0 duplicate(1FGate77Cellar) 44FGate77Cellar 45,2,2
3@new,135,271,0 duplicate(1FGate77Cellar) 45FGate77Cellar 45,2,2
3@new,223,271,0 duplicate(1FGate77Cellar) 46FGate77Cellar 45,2,2
3@new,309,271,0 duplicate(1FGate77Cellar) 47FGate77Cellar 45,2,2
3@new,393,271,0 duplicate(1FGate77Cellar) 48FGate77Cellar 45,2,2
3@new,135,183,0 duplicate(1FGate77Cellar) 49FGate77Cellar 45,2,2
3@new,223,183,0 duplicate(1FGate77Cellar) 50FGate77Cellar 45,2,2
3@new,309,183,0 duplicate(1FGate77Cellar) 51FGate77Cellar 45,2,2
3@new,393,183,0 duplicate(1FGate77Cellar) 52FGate77Cellar 45,2,2
3@new,135,99,0 duplicate(1FGate77Cellar) 53FGate77Cellar 45,2,2
3@new,223,99,0 duplicate(1FGate77Cellar) 54FGate77Cellar 45,2,2
3@new,309,99,0 duplicate(1FGate77Cellar) 55FGate77Cellar 45,2,2
3@new,393,99,0 duplicate(1FGate77Cellar) 56FGate77Cellar 45,2,2
3@new,135,13,0 duplicate(1FGate77Cellar) 57FGate77Cellar 45,2,2
3@new,223,13,0 duplicate(1FGate77Cellar) 58FGate77Cellar 45,2,2
3@new,309,13,0 duplicate(1FGate77Cellar) 59FGate77Cellar 45,2,2

3@new,393,13,0 script 60FGate77Cellar 45,1,1,{
end;

OnInstanceInit:
disablenpc instance_npcname("60FGate77Cellar");
end;

OnEnable:
enablenpc instance_npcname("60FGate77Cellar");
initnpctimer;
end;

OnTouch_:
getitem 6000,1; //Dark_Ashes
warp instance_mapname("4@new"),96,393;
end;

OnTimer120000:
disablenpc instance_npcname("60FGate77Cellar");
donpcevent instance_npcname("60FGate77Cellar-2")+"::OnEnable";
stopnpctimer;
end;
}

3@new,393,13,0 script 60FGate77Cellar-2 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("60FGate77Cellar-2");
end;

OnEnable:
enablenpc instance_npcname("60FGate77Cellar-2");
end;

OnTouch_:
warp instance_mapname("4@new"),96,393;
end;
}

// Levels 61-76
//============================================================
4@new,29,365,2 script Immortal Furnace3 844,{
end;

OnInstanceInit:
callfunc "F_Cellar_Monster",
61,
instance_mapname("4@new"),
instance_npcname("Immortal Furnace3")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("4@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("Immortal Furnace3")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
initnpctimer;
//SetItemPartyInMap in_102floor 61
}
else
mapannounce .@map$,"Remaining Monsters on the 61th Level - " + .@mob_dead_num,bc_map,"0x00ff99";
end;

OnTimer2000:
mapannounce instance_mapname("4@new"),"All Monsters on the 61th Level have been defeated.",bc_map,"0xffff00";
donpcevent instance_npcname("61FGate77Cellar")+"::OnEnable";
stopnpctimer;
end;
}
4@new,135,355,0 duplicate(1FGate77Cellar) 61FGate77Cellar 45,2,2
4@new,223,355,0 duplicate(1FGate77Cellar) 62FGate77Cellar 45,2,2
4@new,309,355,0 duplicate(1FGate77Cellar) 63FGate77Cellar 45,2,2
4@new,393,355,0 duplicate(1FGate77Cellar) 64FGate77Cellar 45,2,2
4@new,135,271,0 duplicate(1FGate77Cellar) 65FGate77Cellar 45,2,2
4@new,223,271,0 duplicate(1FGate77Cellar) 66FGate77Cellar 45,2,2
4@new,309,271,0 duplicate(1FGate77Cellar) 67FGate77Cellar 45,2,2
4@new,393,271,0 duplicate(1FGate77Cellar) 68FGate77Cellar 45,2,2
4@new,135,183,0 duplicate(1FGate77Cellar) 69FGate77Cellar 45,2,2
4@new,223,183,0 duplicate(1FGate77Cellar) 70FGate77Cellar 45,2,2
4@new,309,183,0 duplicate(1FGate77Cellar) 71FGate77Cellar 45,2,2
4@new,393,183,0 duplicate(1FGate77Cellar) 72FGate77Cellar 45,2,2
4@new,135,99,0 duplicate(1FGate77Cellar) 73FGate77Cellar 45,2,2
4@new,223,99,0 duplicate(1FGate77Cellar) 74FGate77Cellar 45,2,2
4@new,309,99,0 duplicate(1FGate77Cellar) 75FGate77Cellar 45,2,2

4@new,393,99,0 script 76FGate77Cellar 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("76FGate77Cellar");
end;

OnEnable:
enablenpc instance_npcname("76FGate77Cellar");
initnpctimer;
end;

OnTouch_:
getitem 6000,1; //Dark_Ashes
warp instance_mapname("5@new"),98,73;
end;

OnTimer120000:
disablenpc instance_npcname("76FGate77Cellar");
donpcevent instance_npcname("76FGate77Cellar-2")+"::OnEnable";
stopnpctimer;
end;
}
4@new,393,99,0 script 76FGate77Cellar-2 45,2,2,{
end;

OnInstanceInit:
disablenpc instance_npcname("76FGate77Cellar-2");
end;

OnEnable:
enablenpc instance_npcname("76FGate77Cellar-2");
end;

OnTouch_:
warp instance_mapname("5@new"),98,73;
end;
}

// Level 100
//============================================================
5@new,106,109,2 script Lucid Crystal#103 844,{
if (in_78cellar < 10) {
mes "^0000ffA mysterious voice echoes through the room as you touch the lucid crystal radiating a strong light.^000000";
next;
mes "[Mysterious Voice]";
mes "Welcome to my place, intruders. I've had fun watching you endure all the difficulties I've set before you.";
next;
mes "[Mysterious Voice]";
mes "Unfortunately, the time has come to end the show.";
next;
mes "[Mysterious Voice]";
mes "It's still too early to celebrate your victory against my right-hand man Knothen because he isn't completely destroyed!";
next;
mes "[Mysterious Voice]";
mes "I shall resurrect him for your next show. Defeat him again, and then I'll gladly accept your challenge.";
next;
mes "[Mysterious Voice]";
mes "Good-bye for now.";
mes "Once again, I had such a great time, humans. I look forward to seeing you again.";
next;
mes "^0000ffAs soon as the voice stopped talking, an irresistible force lifted and moved you somewhere else.";
close2;
set in_78cellar,10;
warp "prontera",155,181;
}
else {
mes "^0000ffThe radiating crystal piece seems to beckon you, just like last time.^000000";
next;
mes "[Mysterious Voice]";
mes "I must have underestimated you... I didn't expect to see you again.";
next;
mes "[Mysterious Voice]";
mes "I can smell your sweat, hear the gasps of your exhaustion in combat. Ah~ The human desire for victory always excites me.";
next;
mes "[Mysterious Voice]";
mes "I now allow you to come receive an audience from me. Come to me, to Nacht Sieger the Hegemon-King of the Darkness!";
close2;
warp instance_mapname("6@new"),32,12;
}
end;

OnInstanceInit:
OnDisable:
disablenpc instance_npcname("Lucid Crystal#103");
end;

OnEnable:
enablenpc instance_npcname("Lucid Crystal#103");
donpcevent instance_npcname("#77Effect1")+"::OnEnable";
end;
}

5@new,106,109,2 script #77Effect1 844,{
end;

OnInstanceInit:
disablenpc instance_npcname("#77Effect1");
end;

OnDisable:
disablenpc instance_npcname("#77Effect1");
end;

OnEnable:
enablenpc instance_npcname("#77Effect1");
initnpctimer;
end;

OnTimer500:
specialeffect EF_ENHANCE;
stopnpctimer;
donpcevent instance_npcname("#77Effect2")+"::OnEnable";
end;
}

5@new,106,109,2 script #77Effect2 844,{
end;

OnInstanceInit:
disablenpc instance_npcname("#77Effect2");
end;

OnDisable:
disablenpc instance_npcname("#77Effect2");
end;

OnEnable:
enablenpc instance_npcname("#77Effect2");
initnpctimer;
end;

OnTimer500:
specialeffect EF_ENHANCE;
stopnpctimer;
donpcevent instance_npcname("#77Effect1")+"::OnEnable";
end;
}
5@new,82,112,2 script 77FShadowDust 844,{
end;

OnInstanceInit:
donpcevent instance_npcname("77FShadowDust1")+"::OnEnable";
monster instance_mapname("5@new"),83,85,"Entweihen Crothen",3254,1,instance_npcname("77FShadowDust")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("5@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("77FShadowDust")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
mapannounce .@map$, "Mysterious Voice: Who are you to dare intrude upon my sanctuary?!",bc_map,"0xffff00";
donpcevent instance_npcname("77FShadowDust1")+"::OnDisable";
donpcevent instance_npcname("Lucid Crystal#103")+"::OnEnable";
//SetItemPartyInMap in_102floor 100
}
end;
}

5@new,82,113,2 script 77FShadowDust1 844,{
end;

OnInstanceInit:
disablenpc instance_npcname("77FShadowDust1");
end;

OnDisable:
killmonsterall instance_mapname("5@new");
end;

OnEnable:
set .@map$, instance_mapname("5@new");
monster .@map$,72,93,"Evil Pori Guardian",3251,1;
monster .@map$,70,87,"Evil Pori Guardian",3252,1;
monster .@map$,68,83,"Evil Pori Guardian",3253,1;
monster .@map$,70,80,"Evil Pori Guardian",3251,1;
monster .@map$,74,81,"Evil Pori Guardian",3252,1;
monster .@map$,78,72,"Evil Pori Guardian",3252,1;
monster .@map$,81,70,"Evil Pori Guardian",3251,1;
monster .@map$,85,72,"Evil Pori Guardian",3252,1;
monster .@map$,91,74,"Evil Pori Guardian",3251,1;
monster .@map$,79,77,"Evil Pori Guardian",3253,1;
monster .@map$,80,92,"Evil Pori Guardian",3253,1;
monster .@map$,81,89,"Evil Pori Guardian",3251,1;
monster .@map$,85,93,"Evil Pori Guardian",3252,1;
monster .@map$,88,88,"Evil Pori Guardian",3251,1;
monster .@map$,91,87,"Evil Pori Guardian",3252,1;
monster .@map$,95,94,"Evil Pori Guardian",3252,1;
monster .@map$,91,96,"Evil Pori Guardian",3251,1;
monster .@map$,90,82,"Evil Pori Guardian",3253,1;
monster .@map$,96,98,"Evil Pori Guardian",3252,1;
monster .@map$,83,76,"Evil Pori Guardian",3251,1;
monster .@map$,74,85,"Evil Pori Guardian",3251,1;
switch(rand(1,3)) {
case 1: monster .@map$,82,85,"Evil Pori Guardian",3251,1; break;
case 2: monster .@map$,82,85,"Evil Pori Guardian",3252,1; break;
case 3: monster .@map$,82,85,"Evil Pori Guardian",3253,1; break;
}
switch(rand(1,3)) {
case 1: monster .@map$,84,85,"Evil Pori Guardian",3251,1; break;
case 2: monster .@map$,84,85,"Evil Pori Guardian",3252,1; break;
case 3: monster .@map$,84,85,"Evil Pori Guardian",3253,1; break;
}
end;
}
// Level 101
//============================================================
6@new,45,89,2 script Life Spring1 844,{
mes "^0066ffYou took a sip of the spring's clear water, and you feel invigorated.^000000";
heal (MaxHp-Hp),(MaxSp-Sp);
close;

OnInstanceInit:
donpcevent instance_npcname("Life Spring2")+"::OnEnable";
end;
}

6@new,45,89,2 script Life Spring2 844,{
end;

OnEnable:
specialeffect EF_BUBBLE;
initnpctimer;
end;

OnTimer2000:
stopnpctimer;
donpcevent instance_npcname("Life Spring3")+"::OnEnable";
end;
}

6@new,45,89,2 script Life Spring3 844,{
end;

OnEnable:
specialeffect EF_BUBBLE;
initnpctimer;
end;

OnTimer2000:
stopnpctimer;
donpcevent instance_npcname("Life Spring2")+"::OnEnable";
end;
}

6@new,32,100,0 warp 77FGate77Cellar 2,2,6@new,155,64

6@new,156,151,2 script Tyrant's Throne 844,{
end;

OnInstanceInit:
areamonster instance_mapname("6@tower"),154,73,156,75,"Watcher's Son",1627,10,instance_npcname("Tyrant's Throne")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@mob_dead_num,mobcount(instance_mapname("6@new"),instance_npcname("Tyrant's Throne")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
donpcevent instance_npcname("1st Beeper")+"::OnEnable";
disablenpc instance_npcname("Tyrant's Throne");
}
end;
}

6@new,156,151,2 script 1st Beeper 844,{
end;

OnEnable:
initnpctimer;
end;

OnTimer500:
mapannounce instance_mapname("6@new"),"Guests, huh? I hope you've come here knowing that you'll be buried in this place. If you didn't know, well... it's too late!",bc_map,"0x00ffcc";
end;

OnTimer5500:
mapannounce instance_mapname("6@new"),"This is why you adventurers always end up dead.",bc_map,"0x00ffcc";
end;

OnTimer10500:
mapannounce instance_mapname("6@new"),"I may applaud you for your courage... Of course, I intend to play with you a little bit first.",bc_map,"0x00ffcc";
end;

OnTimer15500:
mapannounce instance_mapname("6@new"),"You know, I like watching humans running around in fear.",bc_map,"0x00ffcc";
end;

OnTimer20500:
set .@map$, instance_mapname("6@new");
mapannounce .@map$,"Squeaky Voice: .....",bc_map,0xFF0000;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: That innocent poring did not harm you.",bc_map,0xFF0000;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: Why would you kill it?",bc_map,0xFF0000;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: You evil humans should pick on someone your own size.",bc_map,0xFF0000;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: I know. I'll let you play with my pets, the Six Great Pains.",bc_map,0xFF0000;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: Try not to die too fast, they need thier exercise.",bc_map,0xFF0000;
stopnpctimer;
monster .@map$,156,145,"Assassin Cross Eremes",1647,1,instance_npcname("1st Beeper")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("6@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("1st Beeper")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
donpcevent instance_npcname("2nd Beeper")+"::OnEnable";
//SetItemPartyInMap in_102floor 101
}
else
mapannounce .@map$,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99";
end;
}

6@new,156,151,2 script 2nd Beeper 844,{
end;

OnEnable:
initnpctimer;
end;

OnTimer10500:
set .@map$, instance_mapname("6@new");
mapannounce .@map$,"Squeaky Voice: I'm getting annoyed, my last pet will finish you off.",bc_map,0xFF0000;
stopnpctimer;
monster .@map$,156,145,"Whitesmith Harword",1648,1,instance_npcname("2nd Beeper")+"::OnMyMobDead";
end;

OnMyMobDead:
set .@map$, instance_mapname("6@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("2nd Beeper")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
donpcevent instance_npcname("3rd Beeper")+"::OnEnable";
//SetItemPartyInMap in_102floor 102
}
else
mapannounce .@map$,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99";
end;
}

6@new,156,151,2 script 3rd Beeper 844,{
end;

OnEnable:
initnpctimer;
end;

OnTimer10500:
set .@map$, instance_mapname("6@new");
mapannounce .@map$,"Squeaky Voice: Well, It seems I've greatly underestimated you.",bc_map,0x00FF00;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: Do you really want to know who I am?",bc_map,0x00FF00;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: The few who have seen me were laughing right before I killed them!",bc_map,0x00FF00;
sleep 3000;
mapannounce .@map$,"Squeaky Voice: Baphomet, make these weaklings entertain me a little more before they die.",bc_map,0x00FF00;
stopnpctimer;
areamonster .@map$,158,66,160,106,"Sword Edge Guardian",1399,1,instance_npcname("3rd Beeper")+"::OnMyMobDead";
areamonster .@map$,158,66,160,106,"Piamette",1930,3;
areamonster .@map$,158,66,160,106,"Wish Maiden",1931,3;
end;

OnMyMobDead:
set .@map$, instance_mapname("6@new");
set .@mob_dead_num,mobcount(.@map$,instance_npcname("3rd Beeper")+"::OnMyMobDead");
if (.@mob_dead_num < 1) {
donpcevent instance_npcname("4th Beeper")+"::OnEnable";
//SetItemPartyInMap in_102floor 103
}
else
mapannounce .@map$,"Remaining Targets " + .@mob_dead_num + "ea",bc_map,"0x00ff99";
end;
}

6@new,156,151,2 script 4th Beeper 844,{
end;

OnEnable:
initnpctimer;
end;

OnTimer10500:
set .@map$, instance_mapname("6@new");
mapannounce .@map$,"Squeaky Voice: Have you ever fought something you couldn't see?",bc_map,0xFF0000;
stopnpctimer;
areamonster .@map$,158,66,160,106,"Pori Pori",1502,1,instance_npcname("3rd Beeper")+"::OnMyMobDead";
areamonster .@map$,158,66,160,106,"Golden Savage",1840,10;
areamonster .@map$,158,66,160,106,"Pouring",1894,10;
areamonster .@map$,158,66,160,106,"Bomb Poring",1904,20;
end;

OnMyMobDead:
donpcevent instance_npcname("EC_Arc_Pori")+"::OnEnable";
end;
}
// = Arc Pori Pori - Rewards for clearing the dungeon
// ====================================================================================================
6@new,156,147,4 script Arc Pori Pori::EC_Arc_Pori 949,{
mes "[Arc Pori Pori]";
mes "You actually defeated that Pori Pori? Thank you!";
next;
mes "[Arc Pori Pori]";
mes "Hes been corrupted for far too long. Maybe someday he will grow wings like the rest of us Pori Pori.";
next;
mes "[Arc Pori Pori]";
mes "Here, take this. Its a small reward i want to give you for putting that evil Pori Pori in his place.";
next;
getitem 616,1; // Old Card Album
getitem 12103,1; // Bloody Branch
getitem 12106,1; // Jewelry Box
getitem 12109,1; // Poring Box
getitem 12130,1; // Cookie Bag
mes "[Arc Pori Pori]";
mes "Farewell, young adventurer. I wish you good luck in the future.";
close2;
warp "prontera",223,36;
end;


OnInstanceInit:
disablenpc instance_npcname("EC_Arc_Pori");
end;

OnEnable:
initnpctimer;
enablenpc instance_npcname("EC_Arc_Pori");
donpcevent instance_npcname("Effect30")+"::OnEnable";
//SetItemPartyInMap in_102floor 104
end;

OnTimer500:
mapannounce instance_mapname("6@new"),"This... This can't be happening! I can't be defeated!",bc_map,"0xffff00";
end;

OnTimer5500:
mapannounce instance_mapname("6@new"),"Nooo! My soul... My shell...! Nooo~!",bc_map,"0xffff00";
end;

OnTimer10500:
mapannounce instance_mapname("6@new"),"Pori Pori's body has turned into dark ashes that scattered in the wind.",bc_map,"0x00ffcc";
stopnpctimer;
end;
}

6@new,169,127,2 script Effect30 844,{
end;

OnInstanceInit:
disablenpc instance_npcname("Effect30");
end;

OnEnable:
specialeffect EF_CONE;
initnpctimer;
end;

OnTimer1000:
stopnpctimer;
donpcevent instance_npcname("Effect31")+"::OnEnable";
end;
}

6@new,169,127,2 script Effect31 844,{
end;

OnInstanceInit:
disablenpc instance_npcname("Effect31");
end;

OnEnable:
specialeffect EF_CONE;
initnpctimer;
end;

OnTimer1000:
stopnpctimer;
donpcevent instance_npcname("Effect30")+"::OnEnable";
end;
}

переписал код теперь вроде бы всё нормально добавил локацию сделал 79 этажей(( Проблема в том что после того как ты повторно заходишь( как в ендлесс тавер) вот портал тебя отправляет в тронный зал и дальше нифига не происходит

Мап сервер не чего не выдаёт, никаких ошибок, Помогите разобраться

Изменено пользователем Fizik
Ссылка на комментарий
Поделиться на другие сайты

Entweihen Crothen спавнится?

Че именно то не работает? <_<

Забыл отписаться) Всё теперь работает проблема была в том что я добавил новую локацию но не прописал в instances_db)))) Тему можно закрывать инстанс дописан и идеально работает )) В скором времени выложу в паблик (как гайд допишу по устоновке)

Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...
Яндекс.Метрика