User Tag List

Results 1 to 2 of 2

Thread: Script ADD_GOSSIP_ITEM/SEND_GOSSIP_MENU?

  1. #1
    Insane Member <span style='color: #FFFF00'><span class='glow_DAA520'>Tyros</span></span>'s Avatar
    Join Date
    Sep 2014
    Posts
    6
    XP
    18,477
    Level
    41
    Thanks
    0
    Thanked 5 Times in 3 Posts

    Script ADD_GOSSIP_ITEM/SEND_GOSSIP_MENU?

    It seems these functions have been completely removed, moved, or renamed. How should I change my script now in order to accommodate these changes?

    error C2039: 'ADD_GOSSIP_ITEM': is not a member of 'Player'

    Thank you

    Occurs with:
    player->ADD_GOSSIP_ITEM
    player->ADD_GOSSIP_ITEM_EXTENDED
    player->SEND_GOSSIP_MENU

  2. #2
    Original Poster
    Insane Member <span style='color: #FFFF00'><span class='glow_DAA520'>Tyros</span></span>'s Avatar
    Join Date
    Sep 2014
    Posts
    6
    XP
    18,477
    Level
    41
    Thanks
    0
    Thanked 5 Times in 3 Posts
    Solved:

    Function is no longer
    Code:
    player->ADD_GOSSIP_ITEM(...)
    player->ADD_GOSSIP_ITEM_EXTENDED(...)
    They have both been merged into this
    Code:
    // Using provided text, not from DB
    AddGossipItemFor(Player* player, uint32 icon, std::string const& text, uint32 sender, uint32 action);
    // Using provided texts, not from DB
    AddGossipItemFor(Player* player, uint32 icon, std::string const& text, uint32 sender, uint32 action, std::string const& popupText, uint32 popupMoney, bool coded);
    And now has an option for DB usage instead with
    Code:
    // Uses gossip item info from DB
    AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action);
    And
    Code:
    player->SEND_GOSSIP_MENU(...)
    Has become
    Code:
    SendGossipMenuFor(Player* player, uint32 npcTextID, ObjectGuid const& guid);
    SendGossipMenuFor(Player* player, uint32 npcTextID, Creature const* creature);

  3. The Following User Says Thank You to Tyros For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •