-
[Help] Somthing
i really dont know too much about script so anyone kinda help me?
Devil Square
Code:
/////////////////////////////////////////////////
pvp_n_room.gat,60,65,5 script Devil Square Guard 51,{
mes "[Devil Square Guard]";
mes "Welcome to the entrance door to ^FF0000Devil Square^000000";
mes "If you failed or die, the door will be closed and you have to wait until it start to open again";
next;
menu "Enter",-,"Info",Info,"Cancel",Cancel;
if(Baselevel < 70) goto LReq;
if(Zeny < 20000) goto LReq;
if($inf == 1) goto L_go;
goto L_eror;
LReq:
mes "[Devil Square Guard]";
mes "Minimum base level to enter is 70";
mes "The registration fee is 20,000z";
close;
L_go:
if (getmapusers("ordeal_1-1.gat")==10) goto toomany;
set Zeny,Zeny - 20000;
announce ""+strcharinfo(0)+" has entered the Devil Square",8;
percentheal ****100;
warp "ordeal_1-1.gat",183,182;
end;
L_eror:
mes "[Devil Square Guard]";
mes "Devil Square is now closed";
mes "It'll be open again at:";
mes "10.00 , 12.00 , 14.00 , 16.00 , 18.00 , 20.00";
mes "22.00 , 24.00 , 02.00 , 04.00 , 06.00 , 08.00";
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 3 level monster, you'll get the oportunity to open 10 Treasure Box 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 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 getmapusers("ordeal_1-1.gat") + " players is still survive at Devil Square",8;
initnpctimer;
end;
}
ordeal_1-1.gat,182,183,5 script HiddenNpc -1,{
OnClock0800:
Announce "Devil Square is OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 OPENED NOW!! 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 minutes..!!",8;
end;
OnTimer300000:
Announce "Devil Square is STARTED NOW !!",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] MINOROUS",1149,15,"HiddenNpc::Ondevildead";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] REQUIEM",1164,10,"HiddenNpc::Ondevildead";
end;
Ondevildead:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs to enter the 2nd round";
if($mob == 5) Announce "Devil Square : 5 mobs to enter 2nd round";
if($mob == 0) Announce "Devil Square will enter to 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,10,"HiddenNpc::Ondevildead2";
end;
Ondevildead2:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs left to enter the 3rd round";
if($mob == 5) Announce "Devil Square : 25 mobs left to enter the 3rd round";
if($mob == 0) Announce "Devil Square will enter to 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",1****10,"HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1.gat",183,182,246,244,"[DS] JOKER",1131,15,"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";
end;
Ondevildead3:
if ($status == 1) end;
set $mob,$mob-1;
if($mob == 25) Announce "Devil Square : 25 mobs left to VICTORY";
if($mob == 5) Announce "Devil Square : 5 mobs left to VICTORY";
if($mob == 0) Announce "Devil Square : CONGRATULATION - 10 Treasure Boxs will be yours now",8;
if($mob == 0) goto Ondevil4;
end;
Ondevil4:
set $mob,10;
monster "ordeal_1-1.gat",231,250,"Treasure Box",1324,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",234,247,"Treasure Box",1328,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",237,244,"Treasure Box",13***1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",240,241,"Treasure Box",1336,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",243,238,"Treasure Box",1340,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",246,235,"Treasure Box",1344,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",249,2***"Treasure Box",1348,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",252,229,"Treasure Box",1352,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",249,241,"Treasure Box",1356,1,"HiddenNpc::Onboxdead";
monster "ordeal_1-1.gat",240,249,"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";
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,7 script Exit 51,{
mes "[Exit]";
mes "See ya";
next;
warp "pvp_n_room.gat",62,61;
close;
}
Emp Room
[CODE]
//(