- script Item_Drop -1,{
OnNPCKillEvent:
.@mob_id = killedrid;
getmapxy .@m$,.@x,.@y,UNITTYPE_PC;
getmobdrops .@mob_id;
.@n = $@MobDrop_count;
copyarray .@mob_item,$@MobDrop_item,.@n;
for(;.@i < .@n;.@i++) {
if(getareadropitem(.@m$,.@x - 15,.@y - 15,.@x + 15,.@y + 15,.@mob_item[.@i]))
dispbottom "Dropped "+getitemname(.@mob_item[.@i]);
}
end;
}