View Single Post
  #6  
Old 08-17-2016, 08:43 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Quote:
Originally Posted by image View Post
The problem is we never pass an AddLooter for the player that killed their PC target (this allows CanMobLoot to pass):

https://github.com/EQEmu/Server/blob...tack.cpp#L1474

need something along the lines of

new_corpse->AddLooter(killerMob);

the catch is killerMob doesn't check for owner -- so if a client pet comes in this won't trigger you have to get the owner of killermob if it is available and replace it.

Also AddLooter doesn't properly handle NULL, so make sure killerMob is a valid pointer.
The check above all that reward stuff checks for nullptr and if the killer is a client. So assuming that the line you posted is the proper syntax, that's all he should have to add.
Reply With Quote