Any help is greatly appreciated. I'm pretty new to C++, so I'm just looking for some direction.
* When a player dies(not in BG/Arena/Instance).
+ Move all equipment/gold to corpse.
- Where should I do this at setDeathState(), CreateCorpse() or ...?
- How would I add items to the corpse, possibly like how trading works. Where the items stay on the character, but if someone selects an item to loot off of their corpse, it's unequipped and placed in the killers inventory? If that's possible, that way when they return to get their corpse, any items not looted wont have to be equipped back onto the character...
+ Make corpse lootable, only to opposing faction.
- corpse->SetFlag(CORPSE_FIELD_DYNAMIC_FLAGS, CORPSE_DYNFLAG_LOOTABLE);
- Not sure how to make it so only the opposing faction can loot them.
- And only limiting it to either the individual to who did the killing, group or everyone(I'd prefer FFA).