Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
- index bade86e..5cf644b 100644
- --- a/src/server/scripts/World/npcs_special.cpp
- +++ b/src/server/scripts/World/npcs_special.cpp
- @@ -3805,6 +3805,28 @@ class boss_event_jarmila_pet: public CreatureScript
- }
- };
- +class npc_phase_shifter: public CreatureScript
- +{
- +public:
- + npc_phase_shifter(): CreatureScript("npc_phase_shifter") { };
- +
- + bool OnGossipHello (Player* pPlayer, Creature* pCreature)
- + {
- + pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "I used the Death Gate spell, but I do not see the NPC.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
- + pPlayer->SEND_GOSSIP_MENU(1,pCreature->GetGUID());
- + return true;
- + }
- + bool OnGossipSelect(Player* pPlayer, Creature* pCreature, unit32 sender, unit32 action)
- + {
- + if(action == GOSSIP_ACTION_INFO_DEF+1)
- + {
- + pPlayer->RemoveAura(pPlayer->GetAura(58354));
- + pPlayer->SetPhaseMask(1, true);
- + }
- + pPlayer->CLOSE_GOSSIP_MENU();
- + return true;
- + }
- +};
- void AddSC_npcs_special()
- {
- new npc_air_force_bots;
- @@ -3850,5 +3872,6 @@ void AddSC_npcs_special()
- new npc_jailer;
- new boss_event_jarmila;
- new boss_event_jarmila_pet;
- + new npc_phase_shifter;
- }
Add Comment
Please, Sign In to add comment