PC = "Player Character" will only effect when players are killed.
- script Mirage -1,{
OnNPCKillEvent:
if(rand(1,.npcpercent)-1||!@m_Eq) end;
getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
clone .@Map$,.@X,.@Y,"Mirage::OnCloneDeath",getcharid(0),getcharid(0),14261,0,30;
end;
OnPCKillEvent:
if(rand(1,.pcpercent)-1||!@m_Eq) end;
getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
clone .@Map$,.@X,.@Y,"Mirage::OnCloneDeath",getcharid(0),getcharid(0),14261,0,30;
end;
OnCloneDeath:
charcommand "#heal "+strcharinfo(0)+" -9999";
end;
OnInit:
set .pcpercent,50; // Player Percent 1=1% 100=100%
set .npcpercent,20; // Non-player Character 1=1% 100=100%
end;
}
WOW thx so much Skorm...Solved!