View Single Post
  #12  
Old 02-16-2012, 11:02 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

nice ideas there!

i think i'll tweak mine a bit to where the loot is added when the npc is engaged to deal with initial zone load times, scaling that chance based on character/group/raid makeup. absolutely brilliant.

i still want to have code to remove equipment on death if anything gets added to the npc's hate list that would cause the kill to be considered trivial for the following reasons:

1) the npc will equip the item, theoretically increasing encounter difficulty (do want)
2) if every npc in game has a chance at random loot, people will seek out greens (do not want)

i moved the triggers for EVENT_DEATH and EVENT_NPC_SLAY and started a compile earlier before i passed out for a few hours. i'm going to test it in a little while. this should keep me from having to iterate over the entire corpse list for a zone to find the corpse owned by the npc as well.
Reply With Quote