if the event is failed . some party needs to finish the event but they need to wait for 10mins so they can go in inside of arena.
prontera,155,255,2 script MonsterHunt 929,{ 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) { warpparty "pvp_n_1-3",100,139,getcharid(1); end; }else{ mes "Dont have enough player/s on your party. You need 5 Member."; } } close; OnMinute: if( rand(100) < 50 ){ announce "Monster Hunt Event is open.",0; monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1751,1,"Monster Hunt::OnMobKilled"; set .monsterhunt,1; } end; OnMobKilled: set .monsterhunt,0; if( getmapusers("pvp_n_1-3") != 5 ){ announce ""+strcharinfo(1)+" party failed.",bc_all; }else{ getpartymember( getcharid(1),0 ); for( set .@i, 0; .@i < getarraysize($@partymembername$); set .@i, .@i+1 ) getitem 7227,1,getcharid(3, $@partymembername$[.@i]); announce ""+strcharinfo(1)+" party killed the monster.",bc_all; } warpparty "prontera",0,0,getcharid(1); end; } [/codeBOX]
Question
aguyaguy
i need someone to re-work this script.
if the event is failed . some party needs to finish the event but they need to wait for 10mins so they can go in inside of arena.
Link to comment
Share on other sites
9 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.