Guest User

Untitled

a guest
Nov 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp
  2. index bade86e..5cf644b 100644
  3. --- a/src/server/scripts/World/npcs_special.cpp
  4. +++ b/src/server/scripts/World/npcs_special.cpp
  5. @@ -3805,6 +3805,28 @@ class boss_event_jarmila_pet: public CreatureScript
  6. }
  7. };
  8.  
  9. +class npc_phase_shifter: public CreatureScript
  10. +{
  11. +public:
  12. + npc_phase_shifter(): CreatureScript("npc_phase_shifter") { };
  13. +
  14. + bool OnGossipHello (Player* pPlayer, Creature* pCreature)
  15. + {
  16. + 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);
  17. + pPlayer->SEND_GOSSIP_MENU(1,pCreature->GetGUID());
  18. + return true;
  19. + }
  20. + bool OnGossipSelect(Player* pPlayer, Creature* pCreature, unit32 sender, unit32 action)
  21. + {
  22. + if(action == GOSSIP_ACTION_INFO_DEF+1)
  23. + {
  24. + pPlayer->RemoveAura(pPlayer->GetAura(58354));
  25. + pPlayer->SetPhaseMask(1, true);
  26. + }
  27. + pPlayer->CLOSE_GOSSIP_MENU();
  28. + return true;
  29. + }
  30. +};
  31. void AddSC_npcs_special()
  32. {
  33. new npc_air_force_bots;
  34. @@ -3850,5 +3872,6 @@ void AddSC_npcs_special()
  35. new npc_jailer;
  36. new boss_event_jarmila;
  37. new boss_event_jarmila_pet;
  38. + new npc_phase_shifter;
  39. }
Add Comment
Please, Sign In to add comment