Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *╔═╦═╦═╦╦╦══╦═╦╗─╔╦══╗
- *║╦╣║║║║║╠╗╗║╦╣╚╦╝║══╣
- *║╩╣║║║║║╠╩╝║╩╬╗║╔╬══║
- *╚═╩╩═╩╩═╩══╩═╝╚═╝╚══╝
- * http://emudevs.com
- */
- class item_gossip : public ItemScript
- {
- public:
- item_gossip() : ItemScript("item_gossip") { }
- bool OnUse(Player* player, Item* item, SpellCastTargets const & /* targets */) OVERRIDE
- {
- player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Test", GOSSIP_SENDER_MAIN, 1);
- player->SEND_GOSSIP_MENU(1, item->GetGUID());
- return true;
- }
- void OnGossipSelect(Player* player, Item* item, uint32 /* sender */, uint32 actions) OVERRIDE
- {
- player->PlayerTalkClass->ClearMenus();
- if (actions == 1)
- player->GetSession()->SendNotification("MENU ONE");
- return;
- }
- };
- void AddSC_gossip()
- {
- new item_gossip;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement