Jump to content
  • PLAYER_EVENT_ON_LOOT_ITEM only triggers for masterlooted items (possible fix included)


    mostlikely
    • Main Category: Script (Eluna / SD3)
      Sub-Category: Looting
      Version: 21.14 (Master Branch)
      Related to:

    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.

    AutoEquipItem.lua


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use