Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptMgr.h"
- #include "Player.h"
- #include "Creature.h"
- class TestGossip : public CreatureScript
- {
- public:
- TestGossip() : CreatureScript("TestGossip") { }
- bool OnGossipHello(Player* player, Creature* creature) override
- {
- // code
- return true;
- }
- bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) override
- {
- player->PlayerTalkClass->ClearMenus();
- // code
- return true;
- }
- bool OnGossipSelectCode(Player* player, Creature* creature, uint32 sender, uint32 action, char const* code) override
- {
- player->PlayerTalkClass->ClearMenus();
- // code
- return true;
- }
- };
- void AddSC_TestGossip()
- {
- new TestGossip;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement