SHOW:
|
|
- or go back to the newest paste.
| 1 | //---------------------------------// | |
| 2 | //Teleporter Gossip Script by MilboW// | |
| 3 | //---------------------------------// | |
| 4 | //---------------------------------// | |
| 5 | //---------------------------------// | |
| 6 | //---------------------------------// | |
| 7 | //---------------------------------// | |
| 8 | //---------------------------------// | |
| 9 | //---------------------------------// | |
| 10 | - | |
| 10 | + | |
| 11 | - | #include "ScriptMgr.h" |
| 11 | + | |
| 12 | ||
| 13 | - | |
| 13 | + | static uint32 const auras[] = { 48074, 47440, 53307, 132, 48170, 23737, 48470, 43002, 26393, 48162, 24705 };
|
| 14 | - | uint32 aurass[] = { 48074, 47440, 53307, 132, 48170, 23737, 48470, 43002, 26393, 48162, 24705 };
|
| 14 | + | |
| 15 | - | |
| 15 | + | |
| 16 | {
| |
| 17 | public: | |
| 18 | GossipNpc() : CreatureScript("GossipNpc") { }
| |
| 19 | - | GossipNpc() : CreatureScript("GossipNpc") { }
|
| 19 | + | |
| 20 | - | |
| 20 | + | bool OnGossipHello(Player* plr, Creature* npc) |
| 21 | - | bool OnGossipHello(Player* plr, Creature* npc) |
| 21 | + | {
|
| 22 | if (plr->IsInCombat()) | |
| 23 | - | if (plr->IsInCombat()) |
| 23 | + | |
| 24 | plr->GetSession()->SendNotification("You're in combat!");
| |
| 25 | - | plr->GetSession()->SendNotification("You're in combat!");
|
| 25 | + | //npc->MonsterWhisper("You're in combat!", LANG_UNIVERSAL, NULL);
|
| 26 | - | //npc->MonsterWhisper("You're in combat!", LANG_UNIVERSAL, NULL);
|
| 26 | + | return true; |
| 27 | - | return false; |
| 27 | + | |
| 28 | ||
| 29 | - | |
| 29 | + | plr->ADD_GOSSIP_ITEM(2, "Teleport Service", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); |
| 30 | - | plr->ADD_GOSSIP_ITEM(2, "Teleport Service", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); |
| 30 | + | plr->ADD_GOSSIP_ITEM(3, "|cffFFC125Buff me!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); |
| 31 | - | plr->ADD_GOSSIP_ITEM(3, "|cffFFC125Buff me!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2); |
| 31 | + | plr->ADD_GOSSIP_ITEM(3, "|cffDA70D6Heal me!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 23); |
| 32 | - | plr->ADD_GOSSIP_ITEM(3, "|cffDA70D6Heal me!", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+23); |
| 32 | + | plr->ADD_GOSSIP_ITEM(4, "Repair Items (1g)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 24); |
| 33 | - | plr->ADD_GOSSIP_ITEM(4, "Repair Items (1g)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+24); |
| 33 | + | plr->ADD_GOSSIP_ITEM(2, "Gurubashi Arena", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 25); |
| 34 | - | plr->ADD_GOSSIP_ITEM(2, "Gurubashi Arena", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+25); |
| 34 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000Nevermind..", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 99); |
| 35 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000Nevermind..", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+99); |
| 35 | + | plr->SEND_GOSSIP_MENU(1, npc->GetGUID()); |
| 36 | return true; | |
| 37 | } | |
| 38 | bool OnGossipSelect(Player* plr, Creature* npc, uint32 sender, uint32 uiAction) | |
| 39 | - | bool OnGossipSelect(Player* plr, Creature* npc, uint32 sender, uint32 uiAction) |
| 39 | + | {
|
| 40 | plr->PlayerTalkClass->ClearMenus(); | |
| 41 | - | if (!plr) |
| 41 | + | |
| 42 | - | return false; |
| 42 | + | switch (uiAction) |
| 43 | - | |
| 43 | + | |
| 44 | - | plr->PlayerTalkClass->ClearMenus(); |
| 44 | + | case GOSSIP_ACTION_INFO_DEF + 1: |
| 45 | - | |
| 45 | + | if (plr->GetSession()->GetSecurity() <= SEC_GAMEMASTER) |
| 46 | - | switch(uiAction) |
| 46 | + | |
| 47 | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall & Events", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); | |
| 48 | - | case GOSSIP_ACTION_INFO_DEF+1: |
| 48 | + | plr->ADD_GOSSIP_ITEM(2, "Cities", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); |
| 49 | - | if(plr->GetSession()->GetSecurity() <= 2) |
| 49 | + | plr->ADD_GOSSIP_ITEM(2, "Eastern Kingdoms", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5); |
| 50 | - | {
|
| 50 | + | plr->ADD_GOSSIP_ITEM(2, "Kalimdor", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 6); |
| 51 | - | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall & Events", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3); |
| 51 | + | plr->ADD_GOSSIP_ITEM(2, "Outland", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 7); |
| 52 | - | plr->ADD_GOSSIP_ITEM(2, "Cities", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4); |
| 52 | + | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CNorthrend", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 8); |
| 53 | - | plr->ADD_GOSSIP_ITEM(2, "Eastern Kingdoms", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+5); |
| 53 | + | plr->ADD_GOSSIP_ITEM(2, "Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9); |
| 54 | - | plr->ADD_GOSSIP_ITEM(2, "Kalimdor", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+6); |
| 54 | + | plr->ADD_GOSSIP_ITEM(3, "|cffFF6EB4Custom Instances", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10); |
| 55 | - | plr->ADD_GOSSIP_ITEM(2, "Outland", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+7); |
| 55 | + | plr->ADD_GOSSIP_ITEM(3, "|cffffffffTBC & LK Raids", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 35); |
| 56 | - | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CNorthrend", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+8); |
| 56 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9999); |
| 57 | - | plr->ADD_GOSSIP_ITEM(2, "Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+9); |
| 57 | + | |
| 58 | - | plr->ADD_GOSSIP_ITEM(3, "|cffFF6EB4Custom Instances", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+10); |
| 58 | + | else |
| 59 | - | plr->ADD_GOSSIP_ITEM(3, "|cffffffffTBC & LK Raids", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+35); |
| 59 | + | |
| 60 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+99); |
| 60 | + | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall & Events", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3); |
| 61 | - | }else{
|
| 61 | + | plr->ADD_GOSSIP_ITEM(2, "Cities", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4); |
| 62 | - | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall & Events", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3); |
| 62 | + | plr->ADD_GOSSIP_ITEM(2, "|cff4747FFEastern Kingdoms", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5); |
| 63 | - | plr->ADD_GOSSIP_ITEM(2, "Cities", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4); |
| 63 | + | plr->ADD_GOSSIP_ITEM(2, "|cffCC6600Kalimdor", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 6); |
| 64 | - | plr->ADD_GOSSIP_ITEM(2, "|cff4747FFEastern Kingdoms", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+5); |
| 64 | + | plr->ADD_GOSSIP_ITEM(2, "|cff00CC00Outland", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 7); |
| 65 | - | plr->ADD_GOSSIP_ITEM(2, "|cffCC6600Kalimdor", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+6); |
| 65 | + | plr->ADD_GOSSIP_ITEM(2, "|cff148AFFNorthrend", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 8); |
| 66 | - | plr->ADD_GOSSIP_ITEM(2, "|cff00CC00Outland", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+7); |
| 66 | + | plr->ADD_GOSSIP_ITEM(2, "Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9); |
| 67 | - | plr->ADD_GOSSIP_ITEM(2, "|cff148AFFNorthrend", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+8); |
| 67 | + | plr->ADD_GOSSIP_ITEM(3, "|cffFF6EB4Custom Instances", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10); |
| 68 | - | plr->ADD_GOSSIP_ITEM(2, "Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+9); |
| 68 | + | plr->ADD_GOSSIP_ITEM(3, "|cffffffffTBC & LK Raids", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 36); |
| 69 | - | plr->ADD_GOSSIP_ITEM(3, "|cffFF6EB4Custom Instances", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+10); |
| 69 | + | plr->ADD_GOSSIP_ITEM(3, "|cff00ff00GM Island", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 98); |
| 70 | - | plr->ADD_GOSSIP_ITEM(3, "|cffffffffTBC & LK Raids", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+36); |
| 70 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 9999); |
| 71 | - | plr->ADD_GOSSIP_ITEM(3, "|cff00ff00GM Island", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+98); |
| 71 | + | |
| 72 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+99); |
| 72 | + | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 73 | - | } |
| 73 | + | |
| 74 | - | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 74 | + | case GOSSIP_ACTION_INFO_DEF + 3: |
| 75 | - | break; |
| 75 | + | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 11); |
| 76 | - | case GOSSIP_ACTION_INFO_DEF+3: |
| 76 | + | plr->ADD_GOSSIP_ITEM(2, "Event 1 (Rabbit)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 12); |
| 77 | - | plr->ADD_GOSSIP_ITEM(2, "|cff00C78CMall", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+11); |
| 77 | + | plr->ADD_GOSSIP_ITEM(5, "Event 2 (StairCase 1)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 13); |
| 78 | - | plr->ADD_GOSSIP_ITEM(2, "Event 1 (Rabbit)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+12); |
| 78 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); |
| 79 | - | plr->ADD_GOSSIP_ITEM(5, "Event 2 (StairCase 1)", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+13); |
| 79 | + | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 80 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); |
| 80 | + | |
| 81 | - | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 81 | + | case GOSSIP_ACTION_INFO_DEF + 4: |
| 82 | - | break; |
| 82 | + | if (plr->GetTeam() == ALLIANCE) |
| 83 | - | case GOSSIP_ACTION_INFO_DEF+4: |
| 83 | + | |
| 84 | - | if(plr->GetTeam() == ALLIANCE){
|
| 84 | + | plr->ADD_GOSSIP_ITEM(2, "Stormwind // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 26); |
| 85 | - | plr->ADD_GOSSIP_ITEM(2, "Stormwind // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+26); |
| 85 | + | plr->ADD_GOSSIP_ITEM(2, "Ironforge // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 27); |
| 86 | - | plr->ADD_GOSSIP_ITEM(2, "Ironforge // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+27); |
| 86 | + | plr->ADD_GOSSIP_ITEM(2, "Darnassus // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 28); |
| 87 | - | plr->ADD_GOSSIP_ITEM(2, "Darnassus // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+28); |
| 87 | + | plr->ADD_GOSSIP_ITEM(2, "The Exodar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 29); |
| 88 | - | plr->ADD_GOSSIP_ITEM(2, "The Exodar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+29); |
| 88 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF1414Attack Orgrimmar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 35); |
| 89 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF1414Attack Orgrimmar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+35); |
| 89 | + | plr->ADD_GOSSIP_ITEM(1, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); |
| 90 | - | plr->ADD_GOSSIP_ITEM(1, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); |
| 90 | + | |
| 91 | - | }else if(plr->GetTeam() == HORDE){
|
| 91 | + | else |
| 92 | - | plr->ADD_GOSSIP_ITEM(2, "Orgrimmar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+30); |
| 92 | + | |
| 93 | - | plr->ADD_GOSSIP_ITEM(2, "Undercity // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+31); |
| 93 | + | plr->ADD_GOSSIP_ITEM(2, "Orgrimmar // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 30); |
| 94 | - | plr->ADD_GOSSIP_ITEM(2, "Thunder Bluff // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+32); |
| 94 | + | plr->ADD_GOSSIP_ITEM(2, "Undercity // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 31); |
| 95 | - | plr->ADD_GOSSIP_ITEM(2, "Silvermoon// costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+33); |
| 95 | + | plr->ADD_GOSSIP_ITEM(2, "Thunder Bluff // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 32); |
| 96 | - | plr->ADD_GOSSIP_ITEM(9, "|cffFF1414Attack Stormwind // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+34); |
| 96 | + | plr->ADD_GOSSIP_ITEM(2, "Silvermoon// costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 33); |
| 97 | - | plr->ADD_GOSSIP_ITEM(1, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); |
| 97 | + | plr->ADD_GOSSIP_ITEM(9, "|cffFF1414Attack Stormwind // costs 1 gold", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 34); |
| 98 | - | |
| 98 | + | plr->ADD_GOSSIP_ITEM(1, "|cffFF0000<- Back", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); |
| 99 | - | } |
| 99 | + | |
| 100 | - | |
| 100 | + | |
| 101 | - | plr->SEND_GOSSIP_MENU(1, npc->GetGUID()); |
| 101 | + | |
| 102 | - | break; |
| 102 | + | |
| 103 | - | case GOSSIP_ACTION_INFO_DEF+98: // GM Island Teleport |
| 103 | + | case GOSSIP_ACTION_INFO_DEF + 98: // GM Island Teleport |
| 104 | - | plr->TeleportTo(1, 16222.500000f, 16257.566406f, 13.127848f, 1.548749f); |
| 104 | + | plr->TeleportTo(1, 16222.500000f, 16257.566406f, 13.127848f, 1.548749f); |
| 105 | - | plr->AddItem(12064, 1); |
| 105 | + | plr->AddItem(12064, 1); |
| 106 | - | plr->AddItem(2586, 1); |
| 106 | + | plr->AddItem(2586, 1); |
| 107 | - | plr->AddItem(11508, 1); |
| 107 | + | plr->AddItem(11508, 1); |
| 108 | - | plr->CLOSE_GOSSIP_MENU(); |
| 108 | + | break; |
| 109 | - | break; |
| 109 | + | case GOSSIP_ACTION_INFO_DEF + 26: // Stormwind teleport |
| 110 | - | case GOSSIP_ACTION_INFO_DEF+26: // Stormwind teleport |
| 110 | + | plr->TeleportTo(0, -8828.601563f, 627.279053f, 94.030663f, 3.924985f); |
| 111 | - | |
| 111 | + | plr->ModifyMoney(-10000); |
| 112 | - | plr->TeleportTo(0, -8828.601563f, 627.279053f, 94.030663f, 3.924985f); |
| 112 | + | break; |
| 113 | - | plr->ModifyMoney(-10000); |
| 113 | + | case GOSSIP_ACTION_INFO_DEF + 29: // The Exodar Teleport |
| 114 | - | plr->CLOSE_GOSSIP_MENU(); |
| 114 | + | plr->TeleportTo(530, -3965.699951f, -11653.599609f, -137.184998f, 0.852154f); |
| 115 | - | break; |
| 115 | + | plr->ModifyMoney(-10000); |
| 116 | - | case GOSSIP_ACTION_INFO_DEF+29: // The Exodar Teleport |
| 116 | + | break; |
| 117 | - | plr->TeleportTo(530, -3965.699951f, -11653.599609f, -137.184998f, 0.852154f); |
| 117 | + | case GOSSIP_ACTION_INFO_DEF + 27: // Ironforge teleport |
| 118 | - | plr->ModifyMoney(-10000); |
| 118 | + | plr->TeleportTo(0, -4918.879883f, -940.406006f, 504.854126f, 5.423470f); |
| 119 | - | plr->CLOSE_GOSSIP_MENU(); |
| 119 | + | plr->ModifyMoney(-10000); |
| 120 | - | break; |
| 120 | + | break; |
| 121 | - | case GOSSIP_ACTION_INFO_DEF+27: // Ironforge teleport |
| 121 | + | case GOSSIP_ACTION_INFO_DEF + 28: // Darnassus Teleport |
| 122 | - | plr->TeleportTo(0, -4918.879883f, -940.406006f, 504.854126f, 5.423470f); |
| 122 | + | plr->TeleportTo(1, 9949.559570f, 2284.20996f, 1342.969482f, 1.595870f); |
| 123 | - | plr->ModifyMoney(-10000); |
| 123 | + | plr->ModifyMoney(-10000); |
| 124 | - | plr->CLOSE_GOSSIP_MENU(); |
| 124 | + | break; |
| 125 | - | break; |
| 125 | + | case GOSSIP_ACTION_INFO_DEF + 30: // Orgrimmar Teleport |
| 126 | - | case GOSSIP_ACTION_INFO_DEF+28: // Darnassus Teleport |
| 126 | + | plr->TeleportTo(1, 1561.713257f, -4438.890137f, 7.368488f, 0.410725f); |
| 127 | - | plr->TeleportTo(1, 9949.559570f, 2284.20996f, 1342.969482f, 1.595870f); |
| 127 | + | plr->ModifyMoney(-10000); |
| 128 | - | plr->ModifyMoney(-10000); |
| 128 | + | break; |
| 129 | - | plr->CLOSE_GOSSIP_MENU(); |
| 129 | + | case GOSSIP_ACTION_INFO_DEF + 31: // Undercity Teleport |
| 130 | - | break; |
| 130 | + | plr->TeleportTo(0, 1573.561279f, 240.414459f, -62.077351f, 0.033143f); |
| 131 | - | case GOSSIP_ACTION_INFO_DEF+30: // Orgrimmar Teleport |
| 131 | + | plr->ModifyMoney(-10000); |
| 132 | - | plr->TeleportTo(1, 1561.713257f, -4438.890137f, 7.368488f, 0.410725f); |
| 132 | + | break; |
| 133 | - | plr->ModifyMoney(-10000); |
| 133 | + | case GOSSIP_ACTION_INFO_DEF + 32: // Thunder Bluff Teleport |
| 134 | - | plr->CLOSE_GOSSIP_MENU(); |
| 134 | + | plr->TeleportTo(1, -1297.956421f, 208.591827f, 68.681366f, 5.084499f); |
| 135 | - | break; |
| 135 | + | plr->ModifyMoney(-10000); |
| 136 | - | case GOSSIP_ACTION_INFO_DEF+31: // Undercity Teleport |
| 136 | + | break; |
| 137 | - | plr->TeleportTo(0, 1573.561279f, 240.414459f, -62.077351f, 0.033143f); |
| 137 | + | case GOSSIP_ACTION_INFO_DEF + 33: // Silvermoon Teleport |
| 138 | - | plr->ModifyMoney(-10000); |
| 138 | + | plr->TeleportTo(530, 9397.452148f, -7279.064941f, 14.216600f, 0.009944f); |
| 139 | - | plr->CLOSE_GOSSIP_MENU(); |
| 139 | + | plr->ModifyMoney(-10000); |
| 140 | - | break; |
| 140 | + | break; |
| 141 | - | case GOSSIP_ACTION_INFO_DEF+32: // Thunder Bluff Teleport |
| 141 | + | case GOSSIP_ACTION_INFO_DEF + 34: // Attack Stormwind |
| 142 | - | plr->TeleportTo(1, -1297.956421f, 208.591827f, 68.681366f, 5.084499f); |
| 142 | + | plr->TeleportTo(0, -9165.100586f, 465.795807f, 104.171112f, 5.289221f); |
| 143 | - | plr->ModifyMoney(-10000); |
| 143 | + | plr->ModifyMoney(-10000); |
| 144 | - | plr->CLOSE_GOSSIP_MENU(); |
| 144 | + | break; |
| 145 | - | break; |
| 145 | + | case GOSSIP_ACTION_INFO_DEF + 35: // Attack Orgrimmar |
| 146 | - | case GOSSIP_ACTION_INFO_DEF+33: // Silvermoon Teleport |
| 146 | + | plr->TeleportTo(1, 1025.285156f, -4439.764160f, 12.237539f, 0.178984f); |
| 147 | - | plr->TeleportTo(530, 9397.452148f, -7279.064941f, 14.216600f, 0.009944f); |
| 147 | + | plr->ModifyMoney(-10000); |
| 148 | - | plr->ModifyMoney(-10000); |
| 148 | + | break; |
| 149 | - | plr->CLOSE_GOSSIP_MENU(); |
| 149 | + | case GOSSIP_ACTION_INFO_DEF + 5: |
| 150 | - | break; |
| 150 | + | break; |
| 151 | - | case GOSSIP_ACTION_INFO_DEF+34: // Attack Stormwind |
| 151 | + | case GOSSIP_ACTION_INFO_DEF + 6: |
| 152 | - | plr->TeleportTo(0, -9165.100586f, 465.795807f, 104.171112f, 5.289221f); |
| 152 | + | break; |
| 153 | - | plr->ModifyMoney(-10000); |
| 153 | + | case GOSSIP_ACTION_INFO_DEF + 12: // Rabbit Event Teleport |
| 154 | - | plr->CLOSE_GOSSIP_MENU(); |
| 154 | + | plr->TeleportTo(0, -10240.200195f, 928.818970f, 44.496384f, 5.323780f); |
| 155 | - | break; |
| 155 | + | plr->ModifyMoney(-50000); |
| 156 | - | case GOSSIP_ACTION_INFO_DEF+35: // Attack Orgrimmar |
| 156 | + | break; |
| 157 | - | plr->TeleportTo(1, 1025.285156f, -4439.764160f, 12.237539f, 0.178984f); |
| 157 | + | case GOSSIP_ACTION_INFO_DEF + 13: // Staircase 1 Teleport |
| 158 | - | plr->ModifyMoney(-10000); |
| 158 | + | plr->TeleportTo(0, -4067.917480f, -3381.699707f, 372.380859f, 2.860715f); |
| 159 | - | plr->CLOSE_GOSSIP_MENU(); |
| 159 | + | plr->ModifyMoney(-50000); |
| 160 | - | break; |
| 160 | + | break; |
| 161 | - | case GOSSIP_ACTION_INFO_DEF+5: |
| 161 | + | case GOSSIP_ACTION_INFO_DEF + 11: //Mall Teleport |
| 162 | - | break; |
| 162 | + | plr->TeleportTo(530, -1859.869995f, 5420.069824f, -10.380500f, 2.146750f); |
| 163 | - | case GOSSIP_ACTION_INFO_DEF+6: |
| 163 | + | plr->ModifyMoney(-50000); |
| 164 | - | break; |
| 164 | + | break; |
| 165 | - | case GOSSIP_ACTION_INFO_DEF+12: // Rabbit Event Teleport |
| 165 | + | case GOSSIP_ACTION_INFO_DEF + 9: //Dungeons SubMenu |
| 166 | - | plr->TeleportTo(0, -10240.200195f, 928.818970f, 44.496384f, 5.323780f); |
| 166 | + | plr->ADD_GOSSIP_ITEM(2, "Classic Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 23); |
| 167 | - | plr->ModifyMoney(-50000); |
| 167 | + | plr->ADD_GOSSIP_ITEM(2, "BC Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 24); |
| 168 | - | plr->CLOSE_GOSSIP_MENU(); |
| 168 | + | plr->ADD_GOSSIP_ITEM(2, "Wrath Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 25); |
| 169 | - | break; |
| 169 | + | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 170 | - | case GOSSIP_ACTION_INFO_DEF+13: // Staircase 1 Teleport |
| 170 | + | |
| 171 | - | plr->TeleportTo(0, -4067.917480f, -3381.699707f, 372.380859f, 2.860715f); |
| 171 | + | case GOSSIP_ACTION_INFO_DEF + 2: //Buff me |
| 172 | - | plr->ModifyMoney(-50000); |
| 172 | + | for (uint32 i = 0; i < sizeof(auras)/sizeof(*auras); ++i) |
| 173 | - | plr->CLOSE_GOSSIP_MENU(); |
| 173 | + | plr->AddAura(auras[i], plr); |
| 174 | - | break; |
| 174 | + | plr->CastSpell(plr, 24705, 1); |
| 175 | - | case GOSSIP_ACTION_INFO_DEF+11: //Mall Teleport |
| 175 | + | plr->GetSession()->SendNotification("|cff0000ffYou have been buffed!");
|
| 176 | - | plr->TeleportTo(530, -1859.869995f, 5420.069824f, -10.380500f, 2.146750f); |
| 176 | + | plr->ModifyMoney(-100000); // 10 gold |
| 177 | - | plr->ModifyMoney(-50000); |
| 177 | + | break; |
| 178 | - | plr->CLOSE_GOSSIP_MENU(); |
| 178 | + | case GOSSIP_ACTION_INFO_DEF + 24: // Repair |
| 179 | - | break; |
| 179 | + | plr->DurabilityRepairAll(false, 0, false); |
| 180 | - | case GOSSIP_ACTION_INFO_DEF+9: //Dungeons SubMenu |
| 180 | + | |
| 181 | - | plr->ADD_GOSSIP_ITEM(2, "Classic Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+23); |
| 181 | + | plr->ModifyMoney(-10000); |
| 182 | - | plr->ADD_GOSSIP_ITEM(2, "BC Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+24); |
| 182 | + | break; |
| 183 | - | plr->ADD_GOSSIP_ITEM(2, "Wrath Dungeons", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+25); |
| 183 | + | case GOSSIP_ACTION_INFO_DEF + 23: // Heal me |
| 184 | - | plr->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID()); |
| 184 | + | plr->SetPower(plr->getPowerType(), plr->GetMaxPower(plr->getPowerType())); |
| 185 | - | break; |
| 185 | + | plr->SetHealth(plr->GetMaxHealth()); |
| 186 | - | case GOSSIP_ACTION_INFO_DEF+2: //Buff me |
| 186 | + | // plr->SendTalentsInfoData(false); // The fuck was this? Its used with talent resetting, not needed here |
| 187 | - | for(int i = 0; i < 10; i++) |
| 187 | + | |
| 188 | - | plr->AddAura(aurass[i], plr); |
| 188 | + | plr->ModifyMoney(-10000); // 1 gold |
| 189 | - | plr->CastSpell(plr, 24705, 1); |
| 189 | + | break; |
| 190 | - | plr->GetSession()->SendNotification("|cff0000ffYou have been buffed!");
|
| 190 | + | case GOSSIP_ACTION_INFO_DEF + 25:// Gurubashi Arena Teleport |
| 191 | - | plr->ModifyMoney(-100000); // 10 gold |
| 191 | + | plr->TeleportTo(0, -13288.905273f, 109.301590f, 23.305859f, 1.078724f); |
| 192 | - | plr->CLOSE_GOSSIP_MENU(); |
| 192 | + | plr->ModifyMoney(-500000); |
| 193 | - | break; |
| 193 | + | break; |
| 194 | - | case GOSSIP_ACTION_INFO_DEF+24: // Repair |
| 194 | + | case GOSSIP_ACTION_INFO_DEF + 99: // Close Function |
| 195 | - | plr->DurabilityRepairAll(false, 0, false); |
| 195 | + | plr->CLOSE_GOSSIP_MENU(); |
| 196 | return true; | |
| 197 | - | plr->ModifyMoney(-10000); |
| 197 | + | default: |
| 198 | - | plr->CLOSE_GOSSIP_MENU(); |
| 198 | + | break; |
| 199 | - | break; |
| 199 | + | |
| 200 | - | case GOSSIP_ACTION_INFO_DEF+23: // Heal me |
| 200 | + | |
| 201 | - | plr->SetPower(POWER_MANA, plr->GetMaxPower(POWER_MANA)); |
| 201 | + | // Show main menu |
| 202 | - | plr->SetHealth(plr->GetMaxHealth()); |
| 202 | + | OnGossipHello(plr, npc); |
| 203 | - | plr->SendTalentsInfoData(false); |
| 203 | + | return true; |
| 204 | } | |
| 205 | - | plr->ModifyMoney(-10000); // 1 gold |
| 205 | + | |
| 206 | - | plr->CLOSE_GOSSIP_MENU(); |
| 206 | + | |
| 207 | - | break; |
| 207 | + | |
| 208 | - | case GOSSIP_ACTION_INFO_DEF+25:// Gurubashi Arena Teleport |
| 208 | + | new GossipNpc(); |
| 209 | - | plr->TeleportTo(0, -13288.905273f, 109.301590f, 23.305859f, 1.078724f); |
| 209 | + |