Hi Team, may I ask for your help? I'm following this script, but unable to complete it, I need to add the cell distance between party killer and other party members, only those within 15 cells can get the reward in the map.
I'm trying to combine these scripts.
From here:
From here:
From here:
This what I got so far, I am unable to do the distance from killer and party members.
OnNPCKillEvent:
sleep2 500;if(getgmlevel()>=.gm ){ end;}// If gm = event wont happen if( getmonsterinfo( killedrid, MOB_MVPEXP )){for(.@aaa=0;.@aaa< getarraysize(.t_mvphunt_maps$);.@aaa++){if( strcharinfo(3)==.t_mvphunt_maps$[.@aaa]){if( getcharid(1)){.@mapname$=.t_mvphunt_maps$[.@aaa];
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
getmapxy(.@mapname$,.@mapx,.@mapy,BL_PC);for(.@i=0;.@i< $@partymembercount;.@i++){if(!isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i])||// what happens if someone in the party member is offline =/
strcharinfo(3,$@partymembercid[.@i])!=.@mapname$||// If the party member is not on the same map of the killer
checkidle(rid2name($@partymemberaid[.@i]))>5)// If player is idle for 30 secondscontinue;set.@mvppointshunt,0;
getitem .p_rwd[0],.p_rwd[1], $@partymemberaid[.@i];
getitem .p_rwd[2],.p_rwd[3], $@partymemberaid[.@i];
announce "[ System ] : Player ["+ strcharinfo(0)+"] of party ["+ strcharinfo(1)+"] has killed "+ getmonsterinfo( killedrid, MOB_NAME )+" at "+ strcharinfo(3), bc_all,0xffb6c1;}}else{set.@mvppointshunt,0;
getitem .s_rwd[0],.s_rwd[1];
getitem .s_rwd[2],.s_rwd[3];
announce "[ System ] : Player ["+ strcharinfo(0)+"] has killed "+ getmonsterinfo( killedrid, MOB_NAME )+" alone at "+ strcharinfo(3), bc_all,0xffb6c1;}MVPHunts=MVPHunts+1;
dispbottom "---------------------------------------------------";
dispbottom "You killed a total of "+MVPHunts+" MVP"+((MVPHunts==1)?"":"s")+".";
dispbottom "---------------------------------------------------";
dispbottom "[BB]: MVP Killed!";
end;}}
end;}}
Question
mawjustin
Hi Team, may I ask for your help? I'm following this script, but unable to complete it, I need to add the cell distance between party killer and other party members, only those within 15 cells can get the reward in the map.
I'm trying to combine these scripts.
From here:
From here:
From here:
This what I got so far, I am unable to do the distance from killer and party members.
Link to comment
Share on other sites
2 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.