//------------------------------------------------------------
//Start of Devil Square =================================
//------------------------------------------------------------
// Made:By Kirlein (Tyirial Script Concept) //
// Devil Square based off the mmorpg Muonline //
// Have Fun and feel free to leave suggestions //
// Leave This intacted //
// + Translated by Stillhard aka Dewa //
// + Add times for 24 hours of play :p //
// + Add a little bit infos for newbie users //
//==========================//
// == Minor edits by Janice of LoadedRO.com == //
// -- Fixed some typo and grammatical error -- //
// -- Added MvPs in the mobs -- //
// -- Lessen the Treasure Boxes -- //
// -- Changed the required Zeny and level to enter -- //
/////////////////////////////////////////////////
mid_camp.gat,217,217,1 script Devil Square::Devil Square 738,{
mes "[Devil Square Guard]";
mes "Welcome to the entrance door to ^FF0000Devil Square^000000!";
next;
mes "[Devil Square Guard]";
mes "If you failed or die, the door will be closed and you have to wait until it opens again.";
next;
menu "Enter",-,"Info",Info,"Cancel",Cancel;
if(Baselevel < 250) goto LReq;
if(Zeny < 50000000) goto LReq;
if($inf == 1) goto L_go;
goto L_error;
LReq:
mes "[Devil Square Guard]";
mes "Minimum base level to enter is 250.";
mes "The registration fee is 50,000,000z.";
close;
L_go:
if (getmapusers("ordeal_1-1.gat")==10) goto toomany;
set Zeny,Zeny - 50000000;
announce ""+strcharinfo(0)+" has entered the Devil Square!",8;
percentheal 100,100;
warp "ordeal_1-1.gat",182,182;
end;
L_error:
mes "[Devil Square Guard]";
mes "Devil Square is now closed.";
mes "It'll be open again at:";
mes "10am, 12pm, 2pm, 4pm, 6pm, 8pm,";
mes "10pm, 12am, 2am, 4am, 6am, 8am.";
close;
Info:
mes "[Devil Square Guard]";
mes "There are 3 level monster you'll encounter.";
mes "Each level the enemies will grow stronger.";
mes "If you succeded to win all the 3 levels, you'll get the opportunity to open 5 Treasure Boxes with items, equips, and rare cards inside!!";
close;
end;
toomany:
mes "[Devil Square Guard]";
mes "I'm sorry but the Devil Square is FULL.";
mes "Maximum users to enter is 10 players.";
set $inf,0;
close;
end;
Cancel:
mes "[Devil Square Guard]";
mes "See ya!";
close;
end;
}
////End Of Devil Square Entrance
ordeal_1-1.gat,182,183,5 script Cek -1,{
OnTimer30000:
if (getmapusers("ordeal_1-1.gat") == 0) Announce "All players failed to survive at the Devil Square!",8;
if (getmapusers("ordeal_1-1.gat") == 0) set $status,1;
if (getmapusers("ordeal_1-1.gat") == 0) killmonsterall "ordeal_1-1.gat";
if (getmapusers("ordeal_1-1.gat") == 0) end;
Announce "There are still [" + getmapusers("ordeal_1-1.gat") + "] player(s) trying to survive at the Devil Square!",8;
initnpctimer;
end;
}
ordeal_1-1.gat,182,183,5 script HiddenNpc -1,{
OnClock0200:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock0400:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock0600:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock0800:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock1000:
Announce "Devil Square is now open! 5 Minutes until it start...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock1200:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock1400:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock1600:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock1800:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock2000:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock2200:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnClock2400:
Announce "Devil Square is now open! 5 Minutes until it starts...",8;
disablenpc "Exit";
initnpctimer;
set $inf,1;
set $status,0;
killmonsterall "ordeal_1-1.gat";
end;
OnTimer60000:
Announce "Devil Square will begin in 4 minutes...",8;
end;
OnTimer120000:
Announce "Devil Square will begin in 3 minutes...",8;
end;
OnTimer180000:
Announce "Devil Square will begin in 2 minutes...",8;
end;
OnTimer240000:
Announce "Devil Square will begin in 1 minute...",8;
end;
OnTimer300000:
Announce "The Devil Square has begun!",8;
initnpctimer "Cek";
set $inf,0;
set $mob,75;
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Duneyrr",2018,30,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Archer Guardian",1285,35,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Majorous",1310,30,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Giant Spider",1304,45,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wind Ghost",1263,45,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Mutant Dragon",1262,40,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Flying Bear",2176,1,"HiddenNpc::Ondevildead";
end;
Ondevildead:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs to go before the 2nd round!",8;
if($mob == 5) Announce "Devil Square : 5 mobs to go before the 2nd round!",8;
if($mob == 0) Announce "Devil Square will now enter the 2nd round!",8;
if($mob == 0) goto Ondevil2;
end;
Ondevil2:
set $mob,70;
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Bloody Knight",1268,45,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Knight Guardian",1286,45,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Soldier Guardian",1287,45,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Injustice",1257,10,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Dark Illusion",1302,40,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Violy",1390,60,"HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Ancient Pan",2175,1,"HiddenNpc::Ondevildead";
end;
Ondevildead2:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs to go before the 3rd round!",8;
if($mob == 5) Announce "Devil Square : 5 mobs to go before the 3rd round!",8;
if($mob == 0) Announce "Devil Square will now enter the 3rd round! Watch out for the Final BOSS!!",8;
if($mob == 0) goto Ondevil3;
end;
Ondevil3:
set $mob,58;
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Seyren Windsor",1640,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Margarethr",1643,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Shecil",1644,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Katrinn",1645,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Eremes",1641,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Harword",1642,5,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] King CROW",2168,1,"HiddenNpc::Ondevildead";
end;
Ondevildead3:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs left to VICTORY!",8;
if($mob == 5) Announce "Devil Square : 5 mobs left to VICTORY!",8;
if($mob == 0) Announce "Devil Square : CONGRATULATIONS - 3 Treasure Boxes can now be yours!",8;
if($mob == 0) goto Ondevil4;
end;
Ondevil4:
set $mob,10;
monster "ordeal_1-1.gat",233,245,"Treasure Box",673,3,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",236,242,"Treasure Box",13995,10,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",239,239,"Treasure Box",14232,10,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",242,236,"Treasure Box",7539,30,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",245,233,"Treasure Box",12103,5,"HiddenNpc::Onboxdead";
end;
Onboxdead:
if ($status == 1) end;
set $mob, $mob - 1;
Announce "Devil Square : " + strcharinfo(0) +" has opened the treasure box at Devil Square!",8;
if($mob == 0) enablenpc "Exit";
set $inf,0;
end;
}
// -- Mapflags
ordeal_1-1.gat mapflag nowarp
ordeal_1-1.gat mapflag nowarpto
ordeal_1-1.gat mapflag noteleport
ordeal_1-1.gat mapflag nosave SavePoint
ordeal_1-1.gat mapflag nomemo
//ordeal_1-1.gat mapflag gvg
ordeal_1-1.gat mapflag nobranch
ordeal_1-1.gat mapflag nopenalty
// -- End of Mapflags
ordeal_1-1.gat,246,245,3 script Exit 734,{
mes "[Exit Devil Square]";
mes "Are you sure you want to leave the Devil Square?";
next;
menu "No.",-,"Yes.",Yes;
close;
Yes:
warp "mid_camp.gat",208,230;
close;
}
//------------------------------------------------------------
//End of Devil Square =================================
//------------------------------------------------------------