qabakrall Опубликовано 9 октября, 2014 Жалоба Поделиться Опубликовано 9 октября, 2014 (изменено) Брал С евента Devil square Скрипт хотел переписать чуть чуть под себя и сделать новый...Ошибка Где то в середине Потому-как все нпц стоят Но евент не получается Именно Что запустить... Функции скрипта работают Но евент не запускается... Кидаю Сам скрипт посмотрите пожалуйста и подскажите где я тупонул)Заранее СпасибоТему можно закрыть сам нашшёлprontera,164,166,3 script Lost Souls World 406,{set .@gm_level, 99; // GM level required to start/stop the eventmes "[Lost Souls World Guardian]";mes "This is the entrance to ^FF0000Lost Soul World^000000.";mes "If you fail or die, the door will close and you must wait until the event starts again to re-enter.";next;switch(select("Enter.:Information.:" + ((getgmlevel() >= .@gm_level) ? "GM Menu." : "") + ":Cancel.")) {case 1:if (.start != 1) { // registration periodmes "[Lost Souls World Guardian]";mes "Lost Souls World is now closed.";mes "It will open at 20:00 Every Day";close;}if (BaseLevel < 255 || Zeny < 20000) { // requirementsmes "[Lost Souls World Guardian]";mes "You do not meet the requirements to enter Lost Souls World.";mes " ";mes "Requirements:";mes " - Base Level 255";mes " - Registration fee 20,000z";close;}Zeny -= 20000;announce strcharinfo(0)+" has entered to Lost Souls World.", bc_npc;percentheal 100,100;warp "2@pump",93,93;close;case 2:mes "[Lost Souls World Guardian]";mes "Inside, you will encounter 3 waves of monsters. The monsters will grow stronger with each wave.";next;mes "[Lost Souls World Guardian]";mes "If you defeat all the enemies, you will be given the opportunity to open 5 Treasure Chests with items, equipment, and rare cards inside!";close;case 3:mes "[Lost Souls World Guardian]";switch (.start) { // event statescase 0: mes "Lost Souls World has not yet started."; break;case 1: mes "Lost Souls World is currently accepting participants."; break;case 2: mes "Lost Souls World Event is currently running on Round "+ .round +" with "+ .mob +" monsters remaining."; break;}next;switch(select("Start event.:Stop event.:Cancel.")) {case 1:mes "[Lost Souls World Guardian]";if (.start)mes "Lost Souls World has already started.";else {mes "Starting Lost Souls World...";donpcevent strnpcinfo(0)+"::onstartEvent";}close;case 2:mes "[Lost Souls World Guardian]";if (!.start)mes "Lost Souls World has not yet started.";else {mes "Stopping Lost Souls World...";donpcevent strnpcinfo(0)+"::onstopEvent";}close;case 3:break;}break;case 4:break;}mes "[Lost Souls World Guardian]";mes "Farewell.";close;}onstartEvent:OnClock2000:.start = 1;disablenpc "2@pump"; //from npc/warps/other/other.txtdisablenpc "Lost Souls World Guardian";mapannounce "2@pump","Lost Souls World is now closed.", bc_map;getmapxy .@map$, .@x, .@y, 1;mapwarp "2@pump", .@map$, .@x, .@y;killmonsterall "2@pump";announce "Lost Souls World is OPEN. The event will begin in 5 minutes.", bc_all;sleep 60000;announce "Lost Souls World will begin in 4 minutes.", bc_all;sleep 60000;announce "Lost Souls World will begin in 3 minutes.", bc_all;sleep 60000;announce "Lost Souls World will begin in 2 minutes.", bc_all;sleep 60000;announce "Lost Souls World will begin in 1 minute.", bc_all;sleep 60000;announce "Lost Souls World has STARTED!", bc_all;if ( !getmapusers("2@pump") )goto onstopEvent;.start = 2;.round = 1;.mob = 22;areamonster "2@pump",87,94,87,94,"[LSW] WOOMAWANG",2008,10,strnpcinfo(0)+"::OnDevilDead";areamonster "2@pump",88,95,87,94,"[LSW] Nidhoggr's Shadow",2022,2,strnpcinfo(0)+"::OnDevilDead";areamonster "2@pump",89,96,87,94,"[LSW] Dark Shadow",2023,10,strnpcinfo(0)+"::OnDevilDead";end;OnDevilDead:.mob--;if ( .mob == 25 || .mob == 5 )announce "Lost Souls World : "+ .mob +" monsters remaining in round 1.", bc_map;else if ( .mob <= 0 ) {announce "Lost Souls World is entering round 2...", bc_map;goto OnDevil2;}end;OnDevil2:.round = 2;.mob = 1;areamonster "2@pump",87,72,87,72,"[LSW] DUNEYRR",2018,1,strnpcinfo(0)+"::OnDevilDead2";end;OnDevilDead2:.mob--;if ( .mob == 25 || .mob == 1 )announce "Lost Souls World : "+ .mob +" monsters remaining in round 2.", bc_map;else if ( .mob <= 0 ) {announce "Lost Souls World is entering round 3...", bc_map;goto OnDevil3;}end;OnDevil3:.round = 3;.mob = 1;areamonster "2@pump",67,102,67,102,"[LSW] SPECTRE",2343,1,strnpcinfo(0)+"::OnDevilDead3";end;OnDevilDead3:.mob--;if ( .mob == 1 || .mob == 1 )announce "Lost Souls World : "+ .mob +" monster remaining in the final round.", bc_map;else if ( .mob <= 0 ) {announce "Lost Souls World : CONGRATULATIONS. These 10 Treasure Chests are yours.", bc_map;goto OnDevil4;}end;OnDevil4:.round = 4;.mob = 5;monster "2@pump",65,84,65,84,"Treasure Chest",1955,1,strnpcinfo(0)+"::OnTreasureDead";monster "2@pump",63,87,63,87,"Treasure Chest",1955,1,strnpcinfo(0)+"::OnTreasureDead";monster "2@pump",68,89,68,89,"Treasure Chest",1955,1,strnpcinfo(0)+"::OnTreasureDead";monster "2@pump",67,92,67,92,"Treasure Chest",1955,1,strnpcinfo(0)+"::OnTreasureDead";monster "2@pump",62,82,62,82,"Treasure Chest",1955,1,strnpcinfo(0)+"::OnTreasureDead";end;OnTreasureDead:.mob--;announce "Lost Souls World : "+ strcharinfo(0) +" has opened the Treasure Chest at Lost Souls World.", bc_all;if ( .mob <= 0 )goto onstopEvent;end;onstopEvent:killmonsterall "2@pump";enablenpc "2@pump"; //from npc/warps/other/other.txtenablenpc "Lost Souls World";.start = .round = .mob = 0;end;}2@pump,50,69,7 script Lost Souls World 406,{mes "[Exit]";mes "Farewell.";close2;warp "prontera",156,179;end;}2@pump mapflag nowarp2@pump mapflag nowarpto2@pump mapflag noteleport2@pump mapflag monster_noteleport2@pump mapflag nosave SavePoint2@pump mapflag nomemo2@pump mapflag nobranch2@pump mapflag nopenalty2@pump mapflag noicewallОшибку нашёл... тему можно офф Изменено 10 октября, 2014 пользователем qabakrall Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения