Ive been trying my luck at some gossip code and have created basic teleport options. I have been trying to add a Bank and Mailbox option but havent found any examples for a gossip script. I am also looking for a way to add text to the window that isnt selectable.
Code:
case GOSSIP_ACTION_INFO_DEF+101: // Open Mail
pPlayer->CLOSE_GOSSIP_MENU();
pPlayer->HandleGetMailList();
return false;
break;
case GOSSIP_ACTION_INFO_DEF+102: // Open Bank
pPlayer->CLOSE_GOSSIP_MENU();
pPlayer->SendShowBank(pPlayer->GetGUID());
return false;
break;
The core gives me errors when I try to compile.
Code:
error C2039: 'HandleGetMailList' : is not a member of 'Player'
error C2039: 'SendShowBank' : is not a member of 'Player'
The only include I have in the script is ScriptPCH.h.
Can someone explain what I am doing wrong here?
Code:
#define GOSSIP_ITEM_109 "You are not allowed to use my services in enemy territory."
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_109, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+109);
How do I make this text not selectable in the gossip window?