wait.... wait a moment ...
why you guys gives the one DIED have the killer's skull ?
- script test -1,{
OnPCKillEvent:
if ( getmapflag( strcharinfo(3), mf_pvp ) == 0 || killedrid == getcharid(3) ) end;
attachrid killedrid;
.@charid = getcharid(0);
attachrid killerrid;
getitem2 7420, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
// getnameditem 7420, rid2name( killedrid ); // <-- EDITED, this command doesn't drop item on floor
end;
}
Brian
I just read script.c
getitem2 command automatically make the item on floor, while getnameditem doesn't