Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class Shadowy_Laborer: public CreatureScript
- {
- public:
- Shadowy_Laborer () : CreatureScript("Shadowy_Laborer") { }
- bool OnGossipHello(Player *player, Creature *_creature)
- {
- player->ADD_GOSSIP_ITEM(0, "Who Are You?", GOSSIP_SENDER_MAIN, 1);
- player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, _creature ->GetGUID());
- return true;
- }
- bool OnGossipSelect(Player *player, Creature *_creature, uint32 sender, uint32 uiAction)
- {
- player->PlayerTalkClass->ClearMenus();
- switch(uiAction)
- {
- case 1:
- player->CLOSE_GOSSIP_MENU();
- _creature->CastSpell(player,47069,false);
- break;
- default:
- break;
- }
- return true;
- }
- };
- void AddSC_Shadowy_Laborer()
- {
- new Shadowy_Laborer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement