This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sql/arena-spectator/spectator.sql b/sql/arena-spectator/spectator.sql | |
new file mode 100644 | |
index 0000000..39cff15 | |
--- /dev/null | |
+++ b/sql/arena-spectator/spectator.sql | |
@@ -0,0 +1,12 @@ | |
+-- Implement Arena Spectator | |
+DELETE FROM `command` WHERE `name` = 'spectate'; | |
+INSERT INTO `command` (`name`, `security`, `help`) VALUES ('spectate', 0, 'Syntax: .spectate $subcommand.\nUse .help sppectate'); | |
+DELETE FROM `command` WHERE `name` = 'spectate view'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp | |
index 9ee7bc4..aecff33 100644 | |
--- a/src/server/game/Entities/Player/Player.cpp | |
+++ b/src/server/game/Entities/Player/Player.cpp | |
@@ -12443,12 +12443,13 @@ void Player::QuickEquipItem(uint16 pos, Item* pItem) | |
} | |
} | |
+extern uint32 GetItemEnchantVisual(Player* player, Item* item); | |
void Player::SetVisibleItemSlot(uint8 slot, Item* pItem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp | |
index d90fd6f..28bee74 100644 | |
--- a/src/server/game/Chat/Chat.cpp | |
+++ b/src/server/game/Chat/Chat.cpp | |
@@ -782,18 +782,31 @@ Creature* ChatHandler::getSelectedCreature() | |
return ObjectAccessor::GetCreatureOrPetOrVehicle(*m_session->GetPlayer(), m_session->GetPlayer()->GetTarget()); | |
} | |
+// Returns selected game object (selected with .gob t) if exists and if gameobject ID is searched for | |
+static char* GetSelectedGameObject(ChatHandler* handler, char const* linkType) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp | |
index 9ee7bc4..6ff16be 100644 | |
--- a/src/server/game/Entities/Player/Player.cpp | |
+++ b/src/server/game/Entities/Player/Player.cpp | |
@@ -14358,7 +14358,7 @@ void Player::PrepareGossipMenu(WorldObject* source, uint32 menuId /*= 0*/, bool | |
break; | |
case GOSSIP_OPTION_VENDOR: | |
{ | |
- VendorItemData const* vendorItems = creature->GetVendorItems(); | |
+ VendorItemData const* vendorItems = itr->second.ActionMenuId ? sObjectMgr->GetNpcVendorItemList(itr->second.ActionMenuId) : creature->GetVendorItems(); |