Using attached eluna script will only trigger for items recieved by materloot.
In \src\game\WorldHandlers\LootHandler.cpp:
sEluna->OnLootItem is called in HandleLootMasterGiveOpcode but not in HandleAutostoreLootItemOpcode
The fix that seems to work is to include:
#ifdef ENABLE_ELUNA
sEluna->OnLootItem(player, newitem, item->count, lguid);
#endif /* ENABLE_ELUNA */
right below player->SendNewItem(newitem, uint32(item->count), false, false, true);
in HandleAutostoreLootItemOpcode.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now