• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Script ADD_GOSSIP_ITEM/SEND_GOSSIP_MENU?

Status
Not open for further replies.

Tyros

Insane Member
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
 

Tyros

Insane Member
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);
 
Status
Not open for further replies.
Top