Автор: SergeiX: Дата: 12.28.2009
народ баг незнаю как исправить сундуки появляються раньше чем мобов убивают
//================== Script =============================
//= by db!mOk ICQ ~ 2-142-468 ~
//=======================================================
prontera.gat,137,171,6 script Devil Square 856,{
mes "[Devil Square Guard]";
mes "Добро пожаловать ^FF0000Devil Square^000000.";
mes "После смерти, вас сюда больше не попасть!";
next;
menu "Войти",-,"Инфо",Info,"Уйти.",Cancel;
if(Baselevel < 70) goto LReq;
if(Zeny < 100000) goto LReq;
if($inf == 1) goto L_go;
goto L_eror;
LReq:
mes "[Devil Square Guard]";
mes "Минимальный уровень 70.";
mes "Регистрация стоит 100,000к.";
close;
L_go:
if (getmapusers("ordeal_1-1.gat")==20) goto toomany;
set Zeny,Zeny - 100000;
percentheal 100,100;
mapannounce "ordeal_1-1",""+strcharinfo(0)+" вошел(а) на DevilSquare",8;
warp "ordeal_1-1",177,150;
end;
L_eror:
mes "[Devil Square Guard]";
mes "Devil Square закрыт.";
mes "Двери открываются в:";
mes "10.00, 18.00";
close;
Info:
mes "[Devil Square Guard]";
mes "3 волны мобов";
mes "С каждым разом все сильней...";
mes "Убив все 3 волны, вы получаете 10 Treasure Box";
close;
end;
toomany:
mes "[Devil Square Guard]";
mes "Вы не можете попасть на Devil Square.";
mes "Максимальное кол-во юзеров: 20";
set $inf,0;
close;
end;
Cancel:
mes "[Devil Square Guard]";
mes "Досвидания.";
close;
end;
}
////End Of Devil Square Entrance
ordeal_1-1,182,183,5 script Cek -1,{
OnTimer30000:
if (getmapusers("ordeal_1-1") == 0) Announce "Все игроки погибли на Devil Square",8;
if (getmapusers("ordeal_1-1") == 0) set $status,1;
if (getmapusers("ordeal_1-1") == 0) killmonsterall "ordeal_1-1.gat";
if (getmapusers("ordeal_1-1") == 0) end;
announce getmapusers("ordeal_1-1") + " игрок(ов) всё еще живо на DevilSquare",8;
initnpctimer;
end;
}
ordeal_1-1,182,183,5 script HiddenNpc -1,{
OnClock1000:
Announce "[Devil Square] Открыт, 5 минут до начала!! (Prontera/Пронтера)",0,0xFF99FF;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1";
end;
OnClock1800:
Announce "[Devil Square] Открыт, 5 минут до начала!! (Prontera/Пронтера)",0,0xFF99FF;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1";
end;
OnTimer60000:
Announce "[Devil Square] Закрытие врат через 4 минуты...!!",0,0xFF99FF;
end;
OnTimer120000:
Announce "[Devil Square] Закрытие врат через 3 минуты...!!",0,0xFF99FF;
end;
OnTimer180000:
Announce "[Devil Square] Закрытие врат через 2 минуты...!!",0,0xFF99FF;
end;
OnTimer240000:
Announce "[Devil Square] Закрытие врат через 1 минуту...!!",0,0xFF99FF;
end;
OnTimer300000:
Announce "Devil Square начался!!!",0;
initnpctimer "Cek";
set $inf,0;
set $mob,75;
areamonster "ordeal_1-1",150,150,126,144,"[DS] ALARM",1193,10,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Wood Goblin",1880,15,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Christmas Goblin",1245,50,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",150,150,126,144,"[DS] ARCHER SKELETON",1016,15,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",150,150,126,144,"[DS] MINOROUS",1149,15,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Demon Pungus",1378,10,"HiddenNpc::Ondevildead";
end;
Ondevildead:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) mapannounce "ordeal_1-1","[Devil Square] 25 монстров до 2 раунда",8;
if($mob == 5) mapannounce "ordeal_1-1","[Devil Square] 5 монстров до 2 раунда",8;
if($mob == 0) mapannounce "ordeal_1-1","[Devil Square] 2 раунд... начался!",8;
if($mob == 0) goto Ondevil2;
end;
Ondevil2:
set $mob,70;
areamonster "ordeal_1-1",150,150,126,144,"[DS] Elder",1377,5,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Jakk",1130,15,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Flame Skull",1869,15,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",150,150,126,144,"[DS] INJUSTICE",1257,10,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Mistress",1059,1,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Drake",1112,1,"HiddenNpc::Ondevildead2";
end;
Ondevildead2:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) mapannounce "ordeal_1-1","[Devil Square] 25 монстров до 3 раунда",8;
if($mob == 5) mapannounce "ordeal_1-1","[Devil Square] 5 монстров до 3 раунда",8;
if($mob == 0) mapannounce "ordeal_1-1","[Devil Square] 3 раунд... начался!",8;
if($mob == 0) goto Ondevil3;
end;
Ondevil3:
set $mob,50;
areamonster "ordeal_1-1",150,150,126,144,"[DS] Gemini-S58",1681,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Anolian",1206,15,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",150,150,126,144,"[DS] DEVIRUCHI",1109,25,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Nightmare Terror",1379,30,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",150,150,126,144,"[DS] Osiris",1038,2,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",150,150,126,144,"[DS] DarkLord",1272,1,"HiddenNpc::Ondevildead3";
end;
Ondevildead3:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) mapannounce "ordeal_1-1","[Devil Square] 25 монстров до победы",8;
if($mob == 5) mapannounce "ordeal_1-1","[Devil Square] 5 монстров до победы",8;
if($mob == 0) mapannounce "ordeal_1-1","[Devil Square] Поздравляем - 10 Treasure Box ваши!",8;
if($mob == 0) goto Ondevil4;
end;
Ondevil4:
stopnpctimer "Cek";
set $mob,10;
monster "ordeal_1-1",145,177,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",147,177,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",149,177,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",151,177,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",153,177,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",144,174,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",147,174,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",150,174,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",153,174,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1",149,170,"Treasure Box",1357,1,"HiddenNpc::Onboxdead";
end;
Onboxdead:
if ($status == 1) end;
set $mob, $mob - 1;
mapannounce "ordeal_1-1","[Devil Square] " + strcharinfo(0) +" открыл(а) сундук",8;
if($mob == 0) enablenpc "Exit";
end;
}
// -- Mapflags
ordeal_1-1 mapflag nowarp
ordeal_1-1 mapflag nowarpto
ordeal_1-1 mapflag nomemo
ordeal_1-1 mapflag nobranch
ordeal_1-1 mapflag nopenalty
ordeal_1-1 mapflag pvp off
ordeal_1-1 mapflag gvg off
// -- End of Mapflags
ordeal_1-1,131,169,5 script Выход 51,{
warp "geffen",129,68;
close;
}
Автор: : Дата: 01.01.1970