I'm looking for a way to add the possibility to loot on private servers, which can be done easily by making a plugin that interacts with the currenttarget after when the mob dies.
There is already an event for this, I just need to know how to catch when this fires so that I can execute the Interact command.
I've also just tried to check if current target is dead, and lootable, then interact with it, but Honorbuddy clears the target after death, so it is impossible to tell since it is no longer the target. My first thought was to use TargetLastTarget then check, but this caused issues in Combat.
Then I tried to make a list of all the WoWCorpse objects around, but there is no way to check if the corpses are lootable...
So My question is, does anyone know what code is needed to catch the MobKilled event?
There is already an event for this, I just need to know how to catch when this fires so that I can execute the Interact command.
I've also just tried to check if current target is dead, and lootable, then interact with it, but Honorbuddy clears the target after death, so it is impossible to tell since it is no longer the target. My first thought was to use TargetLastTarget then check, but this caused issues in Combat.
Then I tried to make a list of all the WoWCorpse objects around, but there is no way to check if the corpses are lootable...
So My question is, does anyone know what code is needed to catch the MobKilled event?