[Script] Devil Square

Junior Spellweaver
Joined
Jun 24, 2007
Messages
136
Reaction score
1
This is a cool script that I've just started to try out and I thought of sharing it to you guys. The original post can be found . This script is based from the MU Devil Square.

The original(?) script is supposed to be in Indonesian and some guy translated it to English. Well, I found some minor typo and grammatical error so I just fixed it a bit and added/edited some lines in the messages. I also added some MvP in the mobs and lessen the Treasure Boxes, changed the required Zeny to enter from 20k to 2m and changed the required level to enter from 70 to 99.

Well, enough with the talk. Here's the script. You can edit it any way you want. I claim no credit here since I just did some edits. Give credits to the maker guys!

Code:
//------------------------------------------------------------
//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 --  //
/////////////////////////////////////////////////

prt_in.gat,44,113,3    script    Devil Square Guard    734,{

 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 < 99) goto LReq;
 if(Zeny < 2000000) goto LReq;
 if($inf == 1) goto L_go;
 goto L_error;

 LReq:
       mes "[Devil Square Guard]";
       mes "Minimum base level to enter is 99.";
       mes "The registration fee is 2,000,000z.";
       close;

 L_go:
       if (getmapusers("ordeal_1-1.gat")==10) goto toomany;
       set Zeny,Zeny - 2000000;
       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, 12mn, 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,{

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;

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;

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] Soldier Skeleton",1028,10,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Orc Archer",1189,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Sandman",1165,10,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Archer Skeleton",1016,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Minorus",1149,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Requiem",1164,9,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Phreeoni",1159,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] Gargoyle",1253,15,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Alarm",1193,10,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] High Orc",1213,10,"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] Mimic",1191,15,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wraith",1192,9,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Stormy Knight",1251,1,"HiddenNpc::Ondevildead2";
 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!",8;
 if($mob == 0) goto Ondevil3;
 end;

Ondevil3:
 set $mob,58;
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Anolian",1206,15,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wanderer",1208,15,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Deviruchi",1109,10,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Joker",1131,14,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Moonlight",1150,2,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Dark Illusion",1302,1,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Turtle General",1312,1,"HiddenNpc::Ondevildead3";
 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",225,249,"Treasure Box",1324,1,"HiddenNpc::Onboxdead";
 monster "ordeal_1-1.gat",235,242,"Treasure Box",1340,1,"HiddenNpc::Onboxdead";
 monster "ordeal_1-1.gat",252,232,"Treasure Box",1360,1,"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 "prontera.gat",155,179;
 close;
}

//------------------------------------------------------------
//End of Devil Square =================================
//------------------------------------------------------------
 
Last edited:
This is a cool script that I've just started to try out and I thought of sharing it to you guys. The original post can be found . This script is based from the MU Devil Square.

The original(?) script is supposed to be in Indonesian and some guy translated it to English. Well, I found some minor typo and grammatical error so I just fixed it a bit and added/edited some lines in the messages. I also added some MvP in the mobs and lessen the Treasure Boxes, changed the required Zeny to enter from 20k to 2m and changed the required level to enter from 70 to 99.

Well, enough with the talk. Here's the script. You can edit it any way you want. I claim no credit here since I just did some edits. Give credits to the maker guys!

Code:
//------------------------------------------------------------
//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 --  //
/////////////////////////////////////////////////

prt_in.gat,44,113,3    script    Devil Square Guard    734,{

 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 < 99) goto LReq;
 if(Zeny < 2000000) goto LReq;
 if($inf == 1) goto L_go;
 goto L_error;

 LReq:
       mes "[Devil Square Guard]";
       mes "Minimum base level to enter is 99.";
       mes "The registration fee is 2,000,000z.";
       close;

 L_go:
       if (getmapusers("ordeal_1-1.gat")==10) goto toomany;
       set Zeny,Zeny - 2000000;
       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, 12mn, 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,{

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;

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;

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] Soldier Skeleton",1028,10,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Orc Archer",1189,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Sandman",1165,10,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Archer Skeleton",1016,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Minorus",1149,15,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Requiem",1164,9,"HiddenNpc::Ondevildead";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Phreeoni",1159,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] Gargoyle",1253,15,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Alarm",1193,10,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] High Orc",1213,10,"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] Mimic",1191,15,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wraith",1192,9,"HiddenNpc::Ondevildead2";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Stormy Knight",1251,1,"HiddenNpc::Ondevildead2";
 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!",8;
 if($mob == 0) goto Ondevil3;
 end;

Ondevil3:
 set $mob,58;
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Anolian",1206,15,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Wanderer",1208,15,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Deviruchi",1109,10,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Joker",1131,14,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Moonlight",1150,2,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Dark Illusion",1302,1,"HiddenNpc::Ondevildead3";
 areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] Turtle General",1312,1,"HiddenNpc::Ondevildead3";
 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",225,249,"Treasure Box",1324,1,"HiddenNpc::Onboxdead";
 monster "ordeal_1-1.gat",235,242,"Treasure Box",1340,1,"HiddenNpc::Onboxdead";
 monster "ordeal_1-1.gat",252,232,"Treasure Box",1360,1,"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 "prontera.gat",155,179;
 close;
}

//------------------------------------------------------------
//End of Devil Square =================================
//------------------------------------------------------------

Sorry i see my name now.... Its Tyerial ^_^ The orginal script was in english fyi ^_^ I made this script along time ago and i see people like it. Thank guys for keeping this script going it means alot to see someone work thanked ^_^
 
Last edited:
hmm I didn't really look at it, but it looks like a npc script, so just copy it onto a notepad, save it, then move it to ur eathena folder>npc(i think) then anywhere there...then there should be a txt called Custom Scripts or something...open it, and at the bottom, add where u put ur script...
 
I did this because i thought that it was something like this but, don
 
Copy this scipt in a notepad, save it as DevilSquare.txt or something then go to your npc/scripts_custom.conf then add the newly created NPC script with its path.

npc: npc/customs/DevilSquare.txt

That means, inside your npc folder, there's another folder named "customs". Make one if you don't have it, then paste your DevilSquare.txt inside the customs folder.
 
Back