Advertisement
Guest User

Untitled

a guest
Feb 26th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include "ScriptMgr.h"
  5. #include "ScriptPCH.h"
  6.  
  7. uint32 aurass[] = { 48074, 47440, 53307, 132, 48170, 23737, 48470, 43002, 26393, 48162, 24705 };
  8.  
  9. class GossipNpc : public CreatureScript
  10. {
  11. public:
  12. GossipNpc() : CreatureScript("GossipNpc") { }
  13.  
  14. bool OnGossipHello(Player* plr, Creature* npc)
  15. {
  16. if (plr_IsInCombat())
  17. {
  18. plr_>GetSession()->SendNotification("You must leave combat first!");
  19. npc->Whisper("You must leave combat first!", LANG_UNIVERSAL, NULL);
  20. return false;
  21.  
  22. }
  23. plr->ADD_GOSSIP_ITEM(2, "May I take you somewhere?", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
  24. plr->SEND_GOSSIP_MENU(1, npc->GetGUID));
  25. return true;
  26. }
  27. // Gossip Menus
  28. plr->PlayerTalkClass->ClearMenus();
  29. switch(uiAction)
  30. {
  31. case GOSSIP_ACTION_INFO_DEF+1:
  32. if(plr->GetSession()->GetSecurity() <=2) // if/else for horde/alliance
  33. }
  34. plr->ADD_GOSSPIP_ITEM(2, "Mall", GOSSIP_ACTION_INFO_DEV+6);
  35. }else{
  36. plr->ADD_GOSSPIP_ITEM(2, "Mall", GOSSIP_ACTION_INFO_DEV+6);
  37. }
  38. plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID());
  39. break;
  40. case GOSSIP_ACTION_INFO_DEF+6
  41. plr->TeleportTo(-4016.082031f, -1414.406250, 516.66.38.18f, 4.336.493f);
  42. break;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement