Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptMgr.h"
- #include "ScriptPCH.h"
- uint32 aurass[] = { 48074, 47440, 53307, 132, 48170, 23737, 48470, 43002, 26393, 48162, 24705 };
- class GossipNpc : public CreatureScript
- {
- public:
- GossipNpc() : CreatureScript("GossipNpc") { }
- bool OnGossipHello(Player* plr, Creature* npc)
- {
- if (plr_IsInCombat())
- {
- plr_>GetSession()->SendNotification("You must leave combat first!");
- npc->Whisper("You must leave combat first!", LANG_UNIVERSAL, NULL);
- return false;
- }
- plr->ADD_GOSSIP_ITEM(2, "May I take you somewhere?", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
- plr->SEND_GOSSIP_MENU(1, npc->GetGUID));
- return true;
- }
- // Gossip Menus
- plr->PlayerTalkClass->ClearMenus();
- switch(uiAction)
- {
- case GOSSIP_ACTION_INFO_DEF+1:
- if(plr->GetSession()->GetSecurity() <=2) // if/else for horde/alliance
- }
- plr->ADD_GOSSPIP_ITEM(2, "Mall", GOSSIP_ACTION_INFO_DEV+6);
- }else{
- plr->ADD_GOSSPIP_ITEM(2, "Mall", GOSSIP_ACTION_INFO_DEV+6);
- }
- plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID());
- break;
- case GOSSIP_ACTION_INFO_DEF+6
- plr->TeleportTo(-4016.082031f, -1414.406250, 516.66.38.18f, 4.336.493f);
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement