View Single Post
  #8  
Old 06-07-2016, 05:12 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

Quote:
Originally Posted by NatedogEZ View Post
This should work for you...

Code:
sub EVENT_HATE_LIST {
	if ($hate_state == 1 && $client && $client->GetLevel() > ($mlevel + 15) && $npc->GetEntityVariable("removed") != 1) {
		$npc->RemoveItem(132522);
		$npc->SetEntityVariable("removed", 1); #so it stops trying to remove the item when more people aggro it
	}
}
simple and elegant
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote