I requested this script last month and emistry made this for me. so i just want some changes here. is there any posible like if the party is failed they need to wait for like 5mins , and if someone afk in the event , the afk player will be warped out if someone party clicked the NPC because i edited some part of this script like this
OnMobKilled:
set .monsterhunt,0;
if( getmapusers("pvp_n_1-3") != 10 ){
announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all;
i just want to change in to (how many players in inside like mapchecker , and if the event is on going like (This area is invaded) if its not (This area is empty)
prontera,146,162,5 script Monster Hunt 986,{
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 == 10) {
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 10 Member.";
}
}
close;
OnMinute00:
if( rand(100) < 50 ){
announce "Monster hunt is now open! First party of 10 players (all level 255).",0;
killmonsterall "pvp_n_1-3";
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",2017,1,"Monster Hunt::OnMobKilled";
set .monsterhunt,1;
}
end;
OnMobKilled:
set .monsterhunt,0;
if( getmapusers("pvp_n_1-3") != 10 ){
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,50,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 == 10) {
monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",2017,1,"Monster Hunt::OnMobKilled";
}
end;
M_Exit:
close;
}
pvp_n_1-3 mapflag restricted 5
Question
myieee
I requested this script last month and emistry made this for me. so i just want some changes here. is there any posible like if the party is failed they need to wait for like 5mins , and if someone afk in the event , the afk player will be warped out if someone party clicked the NPC because i edited some part of this script like this
and this and also in the main page. instead of this i just want to change in to (how many players in inside like mapchecker , and if the event is on going like (This area is invaded) if its not (This area is empty)Link to comment
Share on other sites
6 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.