I made this on a phone...Please give a try (based on your script and optimized it).
I added some multiple items reward with chances added some flavor to your server. ?
//Created Date: 04/07/2022
- script AEOUS_MVP_DROP FAKE_NPC,{
end;
OnNPCKillEvent:
.@rnd = rand(1,100);
if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) {
for( .@i = 0; .@i < getarraysize(.item_arrays); .@i += 3 ) {
if( .@rnd < .item_arrays[.@i+2] ) {
getitem .item_arrays[.@i], .item_arrays[.@i+1];
announce "Congratulations! Player "+ strcharinfo(0) +" has obtained "+ getitemname( .item_arrays[.@i] ) +" ["+ .item_arrays[.@i+1] +"] from "+ getmonsterinfo(killedrid, 0) +" (chance: "+.item_arrays[.@i+2]+"%) MVP Drop(s).",bc_all,0x00FF00;
}
}
end;
}
OnInit:
// (<structure,<item_id>,<chances>)
setarray .item_arrays[0],
675, 1, 10,
677, 1, 30,
7539, 1, 100;
end;
}