hi, can anyone help me with my script Devil Square only 1 party allowed to enter and make the prize give to each party members? coz i made the treasure box to drop a custom box then the box contains lots of items.. or rather once the treasure box is killed the items or the custom box will send to party leader is this possible?
here's the script
// 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 //
/////////////////////////////////////////////////
turbo_room,122,121,3 script sRO Devil Square 737,{
mes "[Devil Square Guardian]";
mes "Welcome to the entrance door to ^FF0000sRO Devil 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",228,229;
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 Treasure Box with items, and equips, 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,6;
areamonster "ordeal_1-1",183,182,246,244,"[DS] Amon Ra ",1511,1,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Bacsojin",1630,1,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Baphomet",1039,1,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Dark Lord",1272,1,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Doppelganger",1046,1,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Dracula",1389,1,"DS_HiddenNpc::Ondevildead";
end;
Ondevildead:
set $@mob,$@mob - 1;
if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs to enter the 2nd round",0;
if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 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,6;
areamonster "ordeal_1-1",183,182,246,244,"[DS] Detale",1719,1,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Ktullanux",1779,1,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Thanatos",1708,1,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Vesper",1685,1,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Evil Snake Lord",1418,1,"DS_HiddenNpc::Ondevildead2";
areamonster "ordeal_1-1",183,182,246,244,"[DS] RSX 0806",1623,1,"DS_HiddenNpc::Ondevildead2";
end;
Ondevildead2:
set $@mob,$@mob - 1;
if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs left to enter the 3rd round",0;
if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 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,6;
areamonster "ordeal_1-1",183,182,246,244,"[DS] Wounded Morroc",1917,1,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Nidhoggr's Shadow",2022,1,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Valkyrie Randgris",1751,1,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Fallen Bishop",1871,1,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Assassin Cross Eremes",1647,1,"DS_HiddenNpc::Ondevildead3";
areamonster "ordeal_1-1",183,182,246,244,"[DS] Gloom Under Night",1768,1,"DS_HiddenNpc::Ondevildead3";
end;
Ondevildead3:
set $@mob,$@mob - 1;
if($@mob == 4) mapannounce "ordeal_1-1","Devil Square : 4 mobs left to VICTORY",0;
if($@mob == 1) mapannounce "ordeal_1-1","Devil Square : 1 mobs left to VICTORY",0;
if($@mob == 0) {
mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - Treasure Boxs will be yours now",0;
goto Ondevil4;
}
end;
Ondevil4:
set $@DS_complete,1;
set $@mob,1;
monster "ordeal_1-1",235,238,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead";
end;
Onboxdead:
set $@mob, $@mob - 1;
announce "Devil Square : "+ strcharinfo(0) +" has opened the sRO Devil Square Box at Devil Square contains 1000x TCG 200x Event Tickets 50x Poring Coins 50x Valhalla Flower & 500x Mithril Coins",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;
}
Question
jigsgfx
hi, can anyone help me with my script Devil Square only 1 party allowed to enter and make the prize give to each party members? coz i made the treasure box to drop a custom box then the box contains lots of items.. or rather once the treasure box is killed the items or the custom box will send to party leader is this possible?
here's the script
thanks in advanced
Edited by jigsgfxLink to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.