I have a Monster Hunt Event script and i want some changes here. like if someone die the remaining members of party will warp out automatically and they have to wait atleast 5minutes to join and finish the event. thanks..
prontera,157,162,5 script Monster Hunt 105,{
mes "[Monster Hunt]";
if( !.monsterhunt ){
mes "No event for the moment.";
}else if( getmapusers("pvp_n_1-3") ){
mes "There is someone/party inside.";
}else if( !getcharid(1) || getpartyleader(getcharid(1),2) != getcharid(0) ){
mes "You're not a Leader in a Party.";
}else{
getpartymember( getcharid(1) );
set .@PartyCount, $@partymembercount;
if (.@PartyCount == 5) {
mes "Would you like to join?";
menu "Yes",-,"No",M_Exit;
warpparty "pvp_n_1-3",100,139,getcharid(1);
end;
}else{
mes "Dont have enough player/s on your party. You need 5 Members.";
}
}
close;
OnMinute04:
if( rand(100) < 100 ){
announce "Monster hunt is now open! First party of 5 players (all level 255).",0;
killmonsterall "pvp_n_1-3";
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled";
set .monsterhunt,1;
}
end;
OnMobKilled:
set .monsterhunt,0;
if( getmapusers("pvp_n_1-3") != 5 ){
announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all;
warpparty "prontera",156,126,getcharid(1);
goto OnClear;
}else{
getpartymember( getcharid(1),0 );
for( set .@i, 0; .@i < getarraysize($@partymembername$); set .@i, .@i+1 )
getitem 7227,1,getcharid(3, $@partymembername$[.@i]);
announce "Monster Hunt event finished <<"+strcharinfo(1)+">> ,the monster will be respawn maybe in an hour",bc_all;
}
warpparty "prontera",156,126,getcharid(1);
end;
OnClear:
set .monsterhunt,1;
set .@PartyCount, $@partymembercount;
if (.@PartyCount == 5) {
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled";
}
end;
M_Exit:
close;
}
Reply
Report
Question
myieee
I have a Monster Hunt Event script and i want some changes here. like if someone die the remaining members of party will warp out automatically and they have to wait atleast 5minutes to join and finish the event. thanks..
Edited by myieeeLink to comment
Share on other sites
8 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.