- script MVP_Announce -1,{
OnNPCKillEvent:
if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0)
if (getcharid(1))
announce "El MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") ha sido asesinado por '"+ strcharinfo(0) +"' de la party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all;
else
announce "El MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") ha sido asesinado por '"+ strcharinfo(0) +"'.",bc_yellow|bc_all;
end;
}
can someone help me
- script jklasdf -1,{
OnInit:
setarray .mobid, 1002, 1001;
setarray .map$, "prt_fild08", "prontera";
end;
OnNPCKillEvent:
.@index = inarray(.mobid[0], killedrid );
if ( strcharinfo(3) == .map$[.@index] ) {
announce strcharinfo(0) +""+ ( strcharinfo(1) ? " of party "+ strcharinfo(1):"" ) +" has killed "+ getmonsterinfo(killedrid,MOB_NAME)+" at "+ strcharinfo(3), bc_all;
}
end;
}
list down all mvps and match the maplist corresponding to the spawn id. This may cause t