@Via u mean like this?
-------------------------------------------------------------------------------------------
function script Mirage { OnNPCKillEvent: getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) ); clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,30;
return;
}
-------------------------------------------------------------------------------------------
but how do I apply it in an item_bonus like calling the function(Mirage) with 5% chance when attacking