Jump to content
  • 0

AnnieRuru's Devil Square Script


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Hello everyone, i would like to suggest to change it daily held everyday 15:00 and 23:00 . and after u finish Devil square it will reward to the survivor 50 Million zeny and 1 Poring Coin.

//   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 		//
// +  Add a little bit infos for newbie users  //
//	  Completely rewrite by ~AnnieRuru~	  //
// +  Tested with SVN14214 Trunk			   //
/////////////////////////////////////////////////

prontera,154,194,5	script	Devil Square Guardian	979,{
mes "[Devil Square Guardian]";
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",L_info,"Cancel",L_cancel;

if ( $@DS_entry == 0 ) goto L_error;
if ( Baselevel < 70 || Zeny < 20000 ) goto L_req;
if ( getmapusers("ordeal_1-1") >= 10 ) goto L_toomany;

set Zeny,Zeny - 20000;
announce strcharinfo(0)+" has entered the Devil Square",8;
percentheal 100,100;
warp "ordeal_1-1",183,182;
end;

L_error:
mes "[Devil Square Guardian]";
mes "Devil Square is now closed";
mes "It'll be open again at:";
mes "00.00 , 02.00 , 04.00 , 06.00 , 08.00 , 10.00";
mes "12.00 , 14.00 , 16.00 , 18.00 , 20.00 , 22.00";
close;

L_req:
mes "[Devil Square Guardian]";
mes "Minimum base level to enter is 70";
mes "The registration fee is 20,000z";
close;

L_toomany:
mes "[Devil Square Guardian]";
mes "I'm sorry but the Devil Square is FULL";
mes "Maximum users to enter is 10 players";
close;

L_info:
mes "[Devil Square Guardian]";
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 opportunity to open 10 Treasure Box with items, equips, and rare cards inside!!";
close;

L_cancel:
mes "[Devil Square Guardian]";
mes "See ya";
close;
}

ordeal_1-1,0,0,0	script	DS_HiddenNpc	-1,{
OnMinute00:
if (gettime(3) %2 == 1) end;
set $@DS_complete,0;
disablenpc "Exit#DS";
mapannounce "ordeal_1-1","Devil Square is now closed",0;
killmonsterall "ordeal_1-1";
announce "Devil Square is OPENED NOW!! 5 Minutes until it starts..!!",0;
set $@DS_entry,1;
sleep 60000;
announce "Devil Square will begin in 4 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 3 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 2 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 1 minutes..!!",0;
sleep 60000;
announce "Devil Square is STARTED NOW !!",0;
initnpctimer;
set $@DS_entry,0;
set $@mob,75;
areamonster "ordeal_1-1",183,182,246,244,"[DS] SOLDIER SKELETON",1028,10,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ORC ARCHER",1189,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] SANDMAN",1165,10,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ARCHER SKELETON",1016,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MINOROUS",1149,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] REQUIEM",1164,10,"DS_HiddenNpc::Ondevildead";
end;

Ondevildead:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs to enter the 2nd round",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs to enter 2nd round",0;
if($@mob == 0) {
	mapannounce "ordeal_1-1","Devil Square will enter to 2nd round",0;
	goto Ondevil2;
}
end;

Ondevil2:
set $@mob,70;
areamonster "ordeal_1-1",183,182,246,244,"[DS] GARGOYLE",1253,15,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ALARM",1193,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] HIGH ORC",1213,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] INJUSTICE",1257,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MIMIC",1191,15,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] WRAITH",1192,10,"DS_HiddenNpc::Ondevildead2";
end;

Ondevildead2:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to enter the 3rd round",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to enter the 3rd round",0;
if($@mob == 0) {
	mapannounce "ordeal_1-1","Devil Square will enter to 3rd round",0;
	goto Ondevil3;
}
end;

Ondevil3:
set $@mob,58;
areamonster "ordeal_1-1",183,182,246,244,"[DS] ANOLIAN",1206,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] WANDERER",1208,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] DEVIRUCHI",1109,10,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] JOKER",1131,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MOONLIGHT",1150,2,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] DARK ILLUSION",1302,1,"DS_HiddenNpc::Ondevildead3";
end;

Ondevildead3:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to VICTORY",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to VICTORY",0;
if($@mob == 0) {
	mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - 10 Treasure Boxs will be yours now",0;
	goto Ondevil4;
}
end;

Ondevil4:
set $@DS_complete,1;
set $@mob,10;
monster "ordeal_1-1",231,250,"Treasure Box",1324,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",234,247,"Treasure Box",1328,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",237,244,"Treasure Box",1332,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",240,241,"Treasure Box",1336,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",243,238,"Treasure Box",1340,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",246,235,"Treasure Box",1344,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",249,232,"Treasure Box",1348,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",252,229,"Treasure Box",1352,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",249,241,"Treasure Box",1356,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",240,249,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
end;

Onboxdead:
set $@mob, $@mob - 1;
announce "Devil Square : "+ strcharinfo(0) +" has opened the treasure box at Devil Square",0;
if ($@mob == 0) enablenpc "Exit#DS";
end;

OnTimer30000:
if ( $@DS_complete == 1 ) {
	stopnpctimer;
	end;
} else
if (getmapusers("ordeal_1-1") == 0) {
	announce "All players failed to survive at Devil Square",0;
	killmonsterall "ordeal_1-1";
	stopnpctimer;
	end;
} else {
	mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0;
	initnpctimer;
	end;
}

}

// -- Mapflags
ordeal_1-1	mapflag	nowarp
ordeal_1-1	mapflag	nowarpto
ordeal_1-1	mapflag	noteleport
ordeal_1-1	mapflag	nosave	SavePoint
ordeal_1-1	mapflag	nomemo
ordeal_1-1	mapflag	nobranch
ordeal_1-1	mapflag	nopenalty

ordeal_1-1,246,245,7	script	Exit#DS	51,{
mes "[Exit]";
mes "See ya";
next;
warp "SavePoint",0,0;
close;
}

bump

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Use 'OnHour' or 'OnClock'.

ordeal_1-1,246,245,7 script Exit#DS 51,{
mes "[Exit]";
mes "I'll give you 50 Million zeny and 1 Poring Coin as a prize.";
mes "See ya";
zeny += 50000000;
getitem 7539;
next;
warp "SavePoint",0,0;
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Use 'OnHour' or 'OnClock'.

ordeal_1-1,246,245,7 script Exit#DS 51,{
mes "[Exit]";
mes "I'll give you 50 Million zeny and 1 Poring Coin as a prize.";
mes "See ya";
zeny += 50000000;
getitem 7539;
next;
warp "SavePoint",0,0;
close;
}

thanks.. how do i change it everytime finish 1 round, it will @cleanmap ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Ondevil2:
atcommand "@cleanmap";
set $@mob,70;
.....

Ondevil3:
atcommand "@cleanmap";
set $@mob,58;
.....

Ondevil4:
atcommand "@cleanmap";
set $@DS_complete,1;

But, if you use above code, when you kill the last monster, the items wil be gone as well because @cleanmap will trigger everytime new monsters are summoned.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Ondevil2:
atcommand "@cleanmap";
set $@mob,70;
.....

Ondevil3:
atcommand "@cleanmap";
set $@mob,58;
.....

Ondevil4:
atcommand "@cleanmap";
set $@DS_complete,1;

But, if you use above code, when you kill the last monster, the items wil be gone as well because @cleanmap will trigger everytime new monsters are summoned.

where shud i put this to?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Just see the difference between the original code and the edited code

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

Use 'OnHour' or 'OnClock'.

ordeal_1-1,246,245,7 script Exit#DS 51,{
mes "[Exit]";
mes "I'll give you 50 Million zeny and 1 Poring Coin as a prize.";
mes "See ya";
zeny += 50000000;
getitem 7539;
next;
warp "SavePoint",0,0;
close;
}

hi, the event didtn end player also able to click the NPC and go out from the npc=.="

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Post your whole code.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  


//Ondevil4:
// set $@DS_complete,1;
// set $@mob,10;
// monster "ordeal_1-1",231,250,"Treasure Box",1324,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",234,247,"Treasure Box",1328,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",237,244,"Treasure Box",1332,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",240,241,"Treasure Box",1336,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",243,238,"Treasure Box",1340,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",246,235,"Treasure Box",1344,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",249,232,"Treasure Box",1348,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",252,229,"Treasure Box",1352,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",249,241,"Treasure Box",1356,1,"DS_HiddenNpc::Onboxdead";
// monster "ordeal_1-1",240,249,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
// end;
//Onboxdead:
// set $@mob, $@mob - 1;
// announce "Devil Square : "+ strcharinfo(0) +" has opened the treasure box at Devil Square",0;
// if ($@mob == 0) enablenpc "Exit#DS";
// end;


OnTimer30000:
if ( $@DS_complete == 1 ) {
stopnpctimer;
end;
} else
if (getmapusers("ordeal_1-1") == 0) {
announce "All players failed to survive at Devil Square",0;
killmonsterall "ordeal_1-1";
stopnpctimer;
end;
} else {
mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0;
initnpctimer;
end;
}

}

// -- Mapflags
ordeal_1-1 mapflag nowarp
ordeal_1-1 mapflag nowarpto
ordeal_1-1 mapflag noteleport
ordeal_1-1 mapflag nosave SavePoint
ordeal_1-1 mapflag nomemo
ordeal_1-1 mapflag nobranch
ordeal_1-1 mapflag nopenalty

ordeal_1-1,246,245,7 script Exit#DS 51,{
mes "[Exit]";
mes "See ya";
next;
warp "izlude",127,146;
close;
}

Post your whole code.

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

prontera,154,194,5 script Devil Square Guardian 979,{
mes "[Devil Square Guardian]";
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",L_info,"Cancel",L_cancel;

if ( $@DS_entry == 0 ) goto L_error;
if ( Baselevel < 70 || Zeny < 20000 ) goto L_req;
if ( getmapusers("ordeal_1-1") >= 10 ) goto L_toomany;

set Zeny,Zeny - 20000;
announce strcharinfo(0)+" has entered the Devil Square",8;
percentheal 100,100;
warp "ordeal_1-1",183,182;
end;

L_error:
mes "[Devil Square Guardian]";
mes "Devil Square is now closed";
mes "It'll be open again at:";
mes "15:00 and 23:00.";
close;

L_req:
mes "[Devil Square Guardian]";
mes "Minimum base level to enter is 70";
mes "The registration fee is 20,000z";
close;

L_toomany:
mes "[Devil Square Guardian]";
mes "I'm sorry but the Devil Square is FULL";
mes "Maximum users to enter is 10 players";
close;

L_info:
mes "[Devil Square Guardian]";
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 opportunity to open 10 Treasure Box with items, equips, and rare cards inside!!";
close;

L_cancel:
mes "[Devil Square Guardian]";
mes "See ya";
close;
}

ordeal_1-1,0,0,0 script DS_HiddenNpc -1,{
OnHour15:
OnHour23:
set $@DS_complete,0;
disablenpc "Exit#DS";
mapannounce "ordeal_1-1","Devil Square is now closed",0;
killmonsterall "ordeal_1-1";
announce "Devil Square is OPENED NOW!! 5 Minutes until it starts..!!",0;
set $@DS_entry,1;
sleep 60000;
announce "Devil Square will begin in 4 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 3 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 2 minutes..!!",0;
sleep 60000;
announce "Devil Square will begin in 1 minutes..!!",0;
sleep 60000;
announce "Devil Square is STARTED NOW !!",0;
initnpctimer;
set $@DS_entry,0;
set $@mob,75;
areamonster "ordeal_1-1",183,182,246,244,"[DS] SOLDIER SKELETON",1028,10,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ORC ARCHER",1189,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] SANDMAN",1165,10,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ARCHER SKELETON",1016,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MINOROUS",1149,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] REQUIEM",1164,10,"DS_HiddenNpc::Ondevildead";
end;

Ondevildead:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs to enter the 2nd round",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs to enter 2nd round",0;
if($@mob == 0) {
mapannounce "ordeal_1-1","Devil Square will enter to 2nd round",0;
goto Ondevil2;
}
end;

Ondevil2:
atcommand "@cleanmap";
set $@mob,70;
areamonster "ordeal_1-1",183,182,246,244,"[DS] GARGOYLE",1253,15,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] ALARM",1193,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] HIGH ORC",1213,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] INJUSTICE",1257,10,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MIMIC",1191,15,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] WRAITH",1192,10,"DS_HiddenNpc::Ondevildead2";
end;

Ondevildead2:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to enter the 3rd round",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to enter the 3rd round",0;
if($@mob == 0) {
mapannounce "ordeal_1-1","Devil Square will enter to 3rd round",0;
goto Ondevil3;
}
end;

Ondevil3:
atcommand "@cleanmap";
set $@mob,58;
areamonster "ordeal_1-1",183,182,246,244,"[DS] ANOLIAN",1206,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] WANDERER",1208,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] DEVIRUCHI",1109,10,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] JOKER",1131,15,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] MOONLIGHT",1150,2,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] DARK ILLUSION",1302,1,"DS_HiddenNpc::Ondevildead3";
end;

Ondevildead3:
set $@mob,$@mob - 1;
if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to VICTORY",0;
if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to VICTORY",0;
if($@mob == 0) {
mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - 10 Treasure Boxs will be yours now",0;
goto Ondevil4;
}
end;

Ondevil4:
atcommand "@cleanmap";
set $@DS_complete,1;
set $@mob,10;
monster "ordeal_1-1",231,250,"Treasure Box",1324,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",234,247,"Treasure Box",1328,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",237,244,"Treasure Box",1332,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",240,241,"Treasure Box",1336,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",243,238,"Treasure Box",1340,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",246,235,"Treasure Box",1344,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",249,232,"Treasure Box",1348,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",252,229,"Treasure Box",1352,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",249,241,"Treasure Box",1356,1,"DS_HiddenNpc::Onboxdead";
monster "ordeal_1-1",240,249,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
end;

Onboxdead:
set $@mob, $@mob - 1;
announce "Devil Square : "+ strcharinfo(0) +" has opened the treasure box at Devil Square",0;
if ($@mob == 0) enablenpc "Exit#DS";
end;

OnTimer30000:
if ( $@DS_complete == 1 ) { stopnpctimer; end; }
else
if (getmapusers("ordeal_1-1") == 0) {
announce "All players failed to survive at Devil Square",0;
killmonsterall "ordeal_1-1";
stopnpctimer;
end;
} else {
mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0;
initnpctimer;
end;
}
}

// -- Mapflags
ordeal_1-1 mapflag nowarp
ordeal_1-1 mapflag nowarpto
ordeal_1-1 mapflag noteleport
ordeal_1-1 mapflag nosave SavePoint
ordeal_1-1 mapflag nomemo
ordeal_1-1 mapflag nobranch
ordeal_1-1 mapflag nopenalty

ordeal_1-1,246,245,7 script Exit#DS 51,{
mes "[Exit]";
mes "I'll give you 50 Million zeny and 1 Poring Coin as a prize.";
mes "See ya";
zeny += 50000000;
getitem 7539;
next;
warp "SavePoint",0,0;
close;
}

Untested /hmm

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...