From 63769621d416792465902287b0f3d24066f8a485 Mon Sep 17 00:00:00 2001 From: Dedmen Miller Date: Thu, 2 Nov 2023 23:56:54 +0100 Subject: [PATCH 1/2] Editable IDs --- sql/world/guildhouse_spawns.sql | 26 +++++++++++++---------- src/guildhouse.h | 9 ++++++++ src/mod_guildhouse.cpp | 11 +++++----- src/mod_guildhouse_butler.cpp | 37 +++++++++++++++++---------------- 4 files changed, 49 insertions(+), 34 deletions(-) create mode 100644 src/guildhouse.h diff --git a/sql/world/guildhouse_spawns.sql b/sql/world/guildhouse_spawns.sql index 10406cf..88e2ea2 100644 --- a/sql/world/guildhouse_spawns.sql +++ b/sql/world/guildhouse_spawns.sql @@ -10,6 +10,10 @@ CREATE TABLE IF NOT EXISTS `guild_house_spawns` ( UNIQUE KEY `entry` (`entry`) ) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8; +-- !!! NOTE: set these before running the queries in order to avoid conflicts !!! +SET @C_TEMPLATE = 500030; +SET @GO_TEMPLATE = 500000; + REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orientation`, `comment`) VALUES (1, 26327, 16216.5, 16279.4, 20.9306, 0.552869, 'Paladin Trainer'), (2, 26324, 16221.3, 16275.7, 20.9285, 1.37363, 'Druid Trainer'), @@ -20,7 +24,7 @@ REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orien (7, 26330, 16235.5, 16280.8, 20.9257, 2.18652, 'Shaman Trainer'), (8, 26331, 16240.8, 16283.3, 20.9299, 1.86843, 'Warlock Trainer'), (9, 26332, 16246.6, 16284.5, 20.9301, 1.68975, 'Warrior Trainer'), - (10, 500032, 16218.9, 16284.5, 13.1761, 6.18533, 'Innkeeper'), + (10, @C_TEMPLATE + 2, 16218.9, 16284.5, 13.1761, 6.18533, 'Innkeeper'), (11, 30605, 16228.0, 16280.5, 13.1761, 2.98877, 'Banker'), (12, 29195, 16252.3, 16284.9, 20.9324, 1.79537, 'Death Knight Trainer'), (13, 2836, 16220.5, 16302.3, 13.176, 6.14647, 'Blacksmithing Trainer'), @@ -45,16 +49,16 @@ REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orien (32, 184137, 16220.3, 16272, 12.9736, 4.45592, 'Mailbox (Object)'), (33, 1685, 16253.8, 16294.3, 13.1758, 6.11938, 'Forge (Object)'), (34, 4087, 16254.4, 16298.7, 13.1758, 3.36027, 'Anvil (Object)'), - (35, 500000, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Stormwind (Object)'), - (36, 500001, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Darnassus (Object)'), - (37, 500002, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Exodar (Object)'), - (38, 500003, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Ironforge (Object)'), - (39, 500004, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Orgrimmar (Object)'), - (40, 500005, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Silvermoon (Object)'), - (41, 500006, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Thunder Bluff (Object)'), - (42, 500007, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Undercity (Object)'), - (43, 500008, 16211.1, 16266.9, 13.7458, 5.6724, 'Portal: Shattrath (Object)'), - (44, 500009, 16213.9, 16270.5, 13.1378, 5.4996, 'Portal: Dalaran (Object)'), + (35, @GO_TEMPLATE + 0, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Stormwind (Object)'), + (36, @GO_TEMPLATE + 1, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Darnassus (Object)'), + (37, @GO_TEMPLATE + 2, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Exodar (Object)'), + (38, @GO_TEMPLATE + 3, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Ironforge (Object)'), + (39, @GO_TEMPLATE + 4, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Orgrimmar (Object)'), + (40, @GO_TEMPLATE + 5, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Silvermoon (Object)'), + (41, @GO_TEMPLATE + 6, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Thunder Bluff (Object)'), + (42, @GO_TEMPLATE + 7, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Undercity (Object)'), + (43, @GO_TEMPLATE + 8, 16211.1, 16266.9, 13.7458, 5.6724, 'Portal: Shattrath (Object)'), + (44, @GO_TEMPLATE + 9, 16213.9, 16270.5, 13.1378, 5.4996, 'Portal: Dalaran (Object)'), (45, 187293, 16230.5, 16283.5, 13.9061, 3, 'Guild Vault (Object)'), (46, 28692, 16236.2, 16315.7, 20.8454, 4.64365, 'Trade Supplies'), (47, 28776, 16223.7, 16297.9, 20.8454, 6.17044, 'Tabard Vendor'), diff --git a/src/guildhouse.h b/src/guildhouse.h new file mode 100644 index 0000000..d47fe2a --- /dev/null +++ b/src/guildhouse.h @@ -0,0 +1,9 @@ + +// Offsets from creatures_objects.sql +constexpr uint32 GetCreatureEntry(uint32 offset) { + return 500030 + offset; +} + +constexpr uint32 GetGameObjectEntry(uint32 offset) { + return 500000 + offset; +} diff --git a/src/mod_guildhouse.cpp b/src/mod_guildhouse.cpp index aaa5c19..a2a33e5 100644 --- a/src/mod_guildhouse.cpp +++ b/src/mod_guildhouse.cpp @@ -14,6 +14,7 @@ #include "GameObject.h" #include "Transport.h" #include "Maps/MapMgr.h" +#include "guildhouse.h" class GuildData : public DataMap::Base { @@ -333,12 +334,12 @@ class GuildHouseSeller : public CreatureScript if (player->GetTeamId() == TEAM_ALLIANCE) { // Portal to Stormwind - entry = 500000; + entry = GetGameObjectEntry(0); } else { // Portal to Orgrimmar - entry = 500004; + entry = GetGameObjectEntry(4); } if (entry == 0) @@ -418,7 +419,7 @@ class GuildHouseSeller : public CreatureScript void SpawnButlerNPC(Player *player) { - uint32 entry = 500031; + uint32 entry = GetCreatureEntry(1); float posX = 16202.185547f; float posY = 16255.916992f; float posZ = 21.160221f; @@ -653,7 +654,7 @@ class GuildHouseCommand : public CommandScript return false; } - if (player->FindNearestCreature(500031, VISIBLE_RANGE, true)) + if (player->FindNearestCreature(GetCreatureEntry(1), VISIBLE_RANGE, true)) { handler->SendSysMessage("You already have the Guild House Butler!"); handler->SetSentErrorMessage(true); @@ -666,7 +667,7 @@ class GuildHouseCommand : public CommandScript float ori = 6.195375f; Creature *creature = new Creature(); - if (!creature->Create(map->GenerateLowGuid(), map, GetGuildPhase(player), 500031, 0, posX, posY, posZ, ori)) + if (!creature->Create(map->GenerateLowGuid(), map, GetGuildPhase(player), GetCreatureEntry(1), 0, posX, posY, posZ, ori)) { handler->SendSysMessage("You already have the Guild House Butler!"); handler->SetSentErrorMessage(true); diff --git a/src/mod_guildhouse_butler.cpp b/src/mod_guildhouse_butler.cpp index daa8d44..c04448d 100644 --- a/src/mod_guildhouse_butler.cpp +++ b/src/mod_guildhouse_butler.cpp @@ -13,6 +13,7 @@ #include "GameObject.h" #include "Transport.h" #include "CreatureAI.h" +#include "guildhouse.h" int cost, GuildHouseInnKeeper, GuildHouseBank, GuildHouseMailBox, GuildHouseAuctioneer, GuildHouseTrainer, GuildHouseVendor, GuildHouseObject, GuildHousePortal, GuildHouseSpirit, GuildHouseProf, GuildHouseBuyRank; @@ -58,7 +59,7 @@ class GuildHouseSpawner : public CreatureScript } ClearGossipMenuFor(player); - AddGossipItemFor(player, GOSSIP_ICON_TALK, "Spawn Innkeeper", GOSSIP_SENDER_MAIN, 500032, "Add an Innkeeper?", GuildHouseInnKeeper, false); + AddGossipItemFor(player, GOSSIP_ICON_TALK, "Spawn Innkeeper", GOSSIP_SENDER_MAIN, GetCreatureEntry(2), "Add an Innkeeper?", GuildHouseInnKeeper, false); AddGossipItemFor(player, GOSSIP_ICON_TALK, "Spawn Mailbox", GOSSIP_SENDER_MAIN, 184137, "Spawn a Mailbox?", GuildHouseMailBox, false); AddGossipItemFor(player, GOSSIP_ICON_TALK, "Spawn Stable Master", GOSSIP_SENDER_MAIN, 28690, "Spawn a Stable Master?", GuildHouseVendor, false); AddGossipItemFor(player, GOSSIP_ICON_TALK, "Spawn Class Trainer", GOSSIP_SENDER_MAIN, 2); @@ -115,21 +116,21 @@ class GuildHouseSpawner : public CreatureScript if (player->GetTeamId() == TEAM_ALLIANCE) { // ALLIANCE players get these options - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Ironforge", GOSSIP_SENDER_MAIN, 500003, "Add Ironforge Portal?", GuildHousePortal, false); - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Darnassus", GOSSIP_SENDER_MAIN, 500001, "Add Darnassus Portal?", GuildHousePortal, false); - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Exodar", GOSSIP_SENDER_MAIN, 500002, "Add Exodar Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Ironforge", GOSSIP_SENDER_MAIN, GetGameObjectEntry(3), "Add Ironforge Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Darnassus", GOSSIP_SENDER_MAIN, GetGameObjectEntry(1), "Add Darnassus Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Exodar", GOSSIP_SENDER_MAIN, GetGameObjectEntry(2), "Add Exodar Portal?", GuildHousePortal, false); } else { // HORDE players get these options - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Undercity", GOSSIP_SENDER_MAIN, 500007, "Add Undercity Portal?", GuildHousePortal, false); - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Thunderbluff", GOSSIP_SENDER_MAIN, 500006, "Add Thunderbuff Portal?", GuildHousePortal, false); - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Silvermoon", GOSSIP_SENDER_MAIN, 500005, "Add Silvermoon Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Undercity", GOSSIP_SENDER_MAIN, GetGameObjectEntry(7), "Add Undercity Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Thunderbluff", GOSSIP_SENDER_MAIN, GetGameObjectEntry(6), "Add Thunderbuff Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Silvermoon", GOSSIP_SENDER_MAIN, GetGameObjectEntry(5), "Add Silvermoon Portal?", GuildHousePortal, false); } // These two portals work for either Team - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Shattrath", GOSSIP_SENDER_MAIN, 500008, "Add Shattrath Portal?", GuildHousePortal, false); - AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Dalaran", GOSSIP_SENDER_MAIN, 500009, "Add Dalaran Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Shattrath", GOSSIP_SENDER_MAIN, GetGameObjectEntry(8), "Add Shattrath Portal?", GuildHousePortal, false); + AddGossipItemFor(player, GOSSIP_ICON_TAXI, "Portal: Dalaran", GOSSIP_SENDER_MAIN, GetGameObjectEntry(9), "Add Dalaran Portal?", GuildHousePortal, false); AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Go Back!", GOSSIP_SENDER_MAIN, 9); SendGossipMenuFor(player, DEFAULT_GOSSIP_MESSAGE, m_creature->GetGUID()); @@ -191,7 +192,7 @@ class GuildHouseSpawner : public CreatureScript cost = GuildHouseBank; SpawnNPC(action, player); break; - case 500032: // Innkeeper + case GetCreatureEntry(2): // Innkeeper cost = GuildHouseInnKeeper; SpawnNPC(action, player); break; @@ -256,14 +257,14 @@ class GuildHouseSpawner : public CreatureScript cost = GuildHouseObject; SpawnObject(action, player); break; - case 500001: // Darnassus Portal - case 500002: // Exodar Portal - case 500003: // Ironforge Portal - case 500005: // Silvermoon Portal - case 500006: // Thunder Bluff Portal - case 500007: // Undercity Portal - case 500008: // Shattrath Portal - case 500009: // Dalaran Portal + case GetGameObjectEntry(1): // Darnassus Portal + case GetGameObjectEntry(2): // Exodar Portal + case GetGameObjectEntry(3): // Ironforge Portal + case GetGameObjectEntry(5): // Silvermoon Portal + case GetGameObjectEntry(6): // Thunder Bluff Portal + case GetGameObjectEntry(7): // Undercity Portal + case GetGameObjectEntry(8): // Shattrath Portal + case GetGameObjectEntry(9): // Dalaran Portal cost = GuildHousePortal; SpawnObject(action, player); break; From 4db625eb26be1446d0941a5923132a426a2e3098 Mon Sep 17 00:00:00 2001 From: Pagani Walter Date: Mon, 8 Apr 2024 08:42:37 -0300 Subject: [PATCH 2/2] Merging changes with the latest repository branch --- .../2024_04_07_01_guildhouse_spawns.sql | 28 ++++---- sql/world/guildhouse_spawns.sql | 72 ------------------- src/guildhouse.h | 6 +- 3 files changed, 20 insertions(+), 86 deletions(-) delete mode 100644 sql/world/guildhouse_spawns.sql diff --git a/data/sql/db-world/2024_04_07_01_guildhouse_spawns.sql b/data/sql/db-world/2024_04_07_01_guildhouse_spawns.sql index b228f74..91b05ce 100644 --- a/data/sql/db-world/2024_04_07_01_guildhouse_spawns.sql +++ b/data/sql/db-world/2024_04_07_01_guildhouse_spawns.sql @@ -8,7 +8,11 @@ CREATE TABLE IF NOT EXISTS `guild_house_spawns` ( `comment` varchar(500) DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `entry` (`entry`) -) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- !!! NOTE: set these before running the queries in order to avoid conflicts !!! +SET @C_TEMPLATE = 500030; +SET @GO_TEMPLATE = 500000; REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orientation`, `comment`) VALUES (1, 26327, 16216.5, 16279.4, 20.9306, 0.552869, 'Paladin Trainer'), @@ -20,7 +24,7 @@ REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orien (7, 26330, 16235.5, 16280.8, 20.9257, 2.18652, 'Shaman Trainer'), (8, 26331, 16240.8, 16283.3, 20.9299, 1.86843, 'Warlock Trainer'), (9, 26332, 16246.6, 16284.5, 20.9301, 1.68975, 'Warrior Trainer'), - (10, 500032, 16218.9, 16284.5, 13.1761, 6.18533, 'Innkeeper'), + (10, @C_TEMPLATE + 2, 16218.9, 16284.5, 13.1761, 6.18533, 'Innkeeper'), (11, 30605, 16228.0, 16280.5, 13.1761, 2.98877, 'Banker'), (12, 29195, 16252.3, 16284.9, 20.9324, 1.79537, 'Death Knight Trainer'), (13, 2836, 16220.5, 16302.3, 13.176, 6.14647, 'Blacksmithing Trainer'), @@ -45,16 +49,16 @@ REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orien (32, 184137, 16220.3, 16272, 12.9736, 4.45592, 'Mailbox (Object)'), (33, 1685, 16253.8, 16294.3, 13.1758, 6.11938, 'Forge (Object)'), (34, 4087, 16254.4, 16298.7, 13.1758, 3.36027, 'Anvil (Object)'), - (35, 500000, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Stormwind (Object)'), - (36, 500001, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Darnassus (Object)'), - (37, 500002, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Exodar (Object)'), - (38, 500003, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Ironforge (Object)'), - (39, 500004, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Orgrimmar (Object)'), - (40, 500005, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Silvermoon (Object)'), - (41, 500006, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Thunder Bluff (Object)'), - (42, 500007, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Undercity (Object)'), - (43, 500008, 16211.1, 16266.9, 13.7458, 5.6724, 'Portal: Shattrath (Object)'), - (44, 500009, 16213.9, 16270.5, 13.1378, 5.4996, 'Portal: Dalaran (Object)'), + (35, @GO_TEMPLATE + 0, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Stormwind (Object)'), + (36, @GO_TEMPLATE + 1, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Darnassus (Object)'), + (37, @GO_TEMPLATE + 2, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Exodar (Object)'), + (38, @GO_TEMPLATE + 3, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Ironforge (Object)'), + (39, @GO_TEMPLATE + 4, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Orgrimmar (Object)'), + (40, @GO_TEMPLATE + 5, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Silvermoon (Object)'), + (41, @GO_TEMPLATE + 6, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Thunder Bluff (Object)'), + (42, @GO_TEMPLATE + 7, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Undercity (Object)'), + (43, @GO_TEMPLATE + 8, 16211.1, 16266.9, 13.7458, 5.6724, 'Portal: Shattrath (Object)'), + (44, @GO_TEMPLATE + 9, 16213.9, 16270.5, 13.1378, 5.4996, 'Portal: Dalaran (Object)'), (45, 187293, 16230.5, 16283.5, 13.9061, 3, 'Guild Vault (Object)'), (46, 28692, 16236.2, 16315.7, 20.8454, 4.64365, 'Trade Supplies'), (47, 28776, 16223.7, 16297.9, 20.8454, 6.17044, 'Tabard Vendor'), diff --git a/sql/world/guildhouse_spawns.sql b/sql/world/guildhouse_spawns.sql deleted file mode 100644 index 88e2ea2..0000000 --- a/sql/world/guildhouse_spawns.sql +++ /dev/null @@ -1,72 +0,0 @@ -CREATE TABLE IF NOT EXISTS `guild_house_spawns` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `entry` int(11) NOT NULL DEFAULT '0', - `posX` float NOT NULL DEFAULT '0', - `posY` float NOT NULL DEFAULT '0', - `posZ` float NOT NULL DEFAULT '0', - `orientation` float NOT NULL DEFAULT '0', - `comment` varchar(500) DEFAULT '0', - PRIMARY KEY (`id`), - UNIQUE KEY `entry` (`entry`) -) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8; - --- !!! NOTE: set these before running the queries in order to avoid conflicts !!! -SET @C_TEMPLATE = 500030; -SET @GO_TEMPLATE = 500000; - -REPLACE INTO `guild_house_spawns` (`id`, `entry`, `posX`, `posY`, `posZ`, `orientation`, `comment`) VALUES - (1, 26327, 16216.5, 16279.4, 20.9306, 0.552869, 'Paladin Trainer'), - (2, 26324, 16221.3, 16275.7, 20.9285, 1.37363, 'Druid Trainer'), - (3, 26325, 16218.6, 16277, 20.9872, 0.967188, 'Hunter Trainer'), - (4, 26326, 16224.9, 16274.9, 20.9319, 1.58765, 'Mage Trainer'), - (5, 26328, 16227.9, 16275.9, 20.9254, 1.9941, 'Priest Trainer'), - (6, 26329, 16231.4, 16278.1, 20.9222, 2.20026, 'Rogue Trainer'), - (7, 26330, 16235.5, 16280.8, 20.9257, 2.18652, 'Shaman Trainer'), - (8, 26331, 16240.8, 16283.3, 20.9299, 1.86843, 'Warlock Trainer'), - (9, 26332, 16246.6, 16284.5, 20.9301, 1.68975, 'Warrior Trainer'), - (10, @C_TEMPLATE + 2, 16218.9, 16284.5, 13.1761, 6.18533, 'Innkeeper'), - (11, 30605, 16228.0, 16280.5, 13.1761, 2.98877, 'Banker'), - (12, 29195, 16252.3, 16284.9, 20.9324, 1.79537, 'Death Knight Trainer'), - (13, 2836, 16220.5, 16302.3, 13.176, 6.14647, 'Blacksmithing Trainer'), - (14, 8128, 16220.2, 16299.6, 13.178, 6.22894, 'Mining Trainer'), - (15, 8736, 16219.8, 16296.9, 13.1746, 6.24465, 'Engineering Trainer'), - (16, 18774, 16222.4, 16293, 13.1813, 1.51263, 'Jewelcrafting Trainer (Alliance)'), - (17, 18751, 16222.4, 16293, 13.1813, 1.51263, 'Jewelcrafting Trainer (Horde)'), - (18, 18773, 16227.5, 16292.3, 13.1839, 1.49691, 'Enchanting Trainer (Alliance)'), - (19, 18753, 16227.5, 16292.3, 13.1839, 1.49691, 'Enchanting Trainer (Horde)'), - (20, 30721, 16231.6, 16301, 13.1757, 3.07372, 'Inscription Trainer (Alliance)'), - (21, 30722, 16231.6, 16301, 13.1757, 3.07372, 'Inscription Trainer (Horde)'), - (22, 19187, 16231.2, 16295, 13.1761, 3.06574, 'Leatherworking Trainer'), - (23, 19180, 16228.9, 16304.7, 13.1819, 4.64831, 'Skinning Trainer'), - (24, 19052, 16218.1, 16281.8, 13.1756, 6.1975, 'Alchemy Trainer'), - (25, 908, 16218.3, 16284.3, 13.1756, 6.1975, 'Herbalism Trainer'), - (26, 2627, 16220.4, 16278.7, 13.1756, 1.46157, 'Tailoring Trainer'), - (27, 19184, 16225, 16310.9, 29.262, 6.22119, 'First Aid Trainer'), - (28, 2834, 16225.3, 16313.9, 29.262, 6.28231, 'Fishing Trainer'), - (29, 19185, 16227, 16278, 13.1762, 1.4872, 'Cooking Trainer'), - (30, 8719, 16242, 16291.6, 22.9311, 1.52061, 'Alliance Auctioneer'), - (31, 9856, 16242, 16291.6, 22.9311, 1.52061, 'Horde Auctioneer'), - (32, 184137, 16220.3, 16272, 12.9736, 4.45592, 'Mailbox (Object)'), - (33, 1685, 16253.8, 16294.3, 13.1758, 6.11938, 'Forge (Object)'), - (34, 4087, 16254.4, 16298.7, 13.1758, 3.36027, 'Anvil (Object)'), - (35, @GO_TEMPLATE + 0, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Stormwind (Object)'), - (36, @GO_TEMPLATE + 1, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Darnassus (Object)'), - (37, @GO_TEMPLATE + 2, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Exodar (Object)'), - (38, @GO_TEMPLATE + 3, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Ironforge (Object)'), - (39, @GO_TEMPLATE + 4, 16232.9, 16264.1, 13.55570, 3.028813, 'Portal: Orgrimmar (Object)'), - (40, @GO_TEMPLATE + 5, 16231.3, 16254.2, 13.65647, 3.028813, 'Portal: Silvermoon (Object)'), - (41, @GO_TEMPLATE + 6, 16233.4, 16260.6, 13.84770, 3.028813, 'Portal: Thunder Bluff (Object)'), - (42, @GO_TEMPLATE + 7, 16232.8, 16257.1, 13.93456, 3.028813, 'Portal: Undercity (Object)'), - (43, @GO_TEMPLATE + 8, 16211.1, 16266.9, 13.7458, 5.6724, 'Portal: Shattrath (Object)'), - (44, @GO_TEMPLATE + 9, 16213.9, 16270.5, 13.1378, 5.4996, 'Portal: Dalaran (Object)'), - (45, 187293, 16230.5, 16283.5, 13.9061, 3, 'Guild Vault (Object)'), - (46, 28692, 16236.2, 16315.7, 20.8454, 4.64365, 'Trade Supplies'), - (47, 28776, 16223.7, 16297.9, 20.8454, 6.17044, 'Tabard Vendor'), - (48, 4255, 16230.2, 16316.1, 20.8455, 4.64365, 'Food & Drink Vendor'), - (49, 6491, 16319.937, 16242.404, 24.4747, 2.206830, 'Spirit Healer'), - (50, 191028, 16255.5, 16304.9, 20.9785, 2.97516, 'Barber Chair (Object)'), - (51, 29636, 16233.2, 16315.9, 20.8454, 4.64365, 'Reagent Vendor'), - (52, 29493, 16229.1, 16286.4, 13.176, 3.03831, 'Ammo & Repair Vendor'), - (53, 28690, 16226.97, 16267.9, 13.15, 4.6533, 'Stable Master'), - (54, 9858, 16238.2, 16291.8, 22.9306, 1.55386, 'Neutral Auctioneer'), - (55, 2622, 16242.8, 16302.1, 13.176, 4.55570, 'Poisons Vendor'); \ No newline at end of file diff --git a/src/guildhouse.h b/src/guildhouse.h index d47fe2a..f21a6f9 100644 --- a/src/guildhouse.h +++ b/src/guildhouse.h @@ -1,9 +1,11 @@ // Offsets from creatures_objects.sql -constexpr uint32 GetCreatureEntry(uint32 offset) { +constexpr uint32 GetCreatureEntry(uint32 offset) +{ return 500030 + offset; } -constexpr uint32 GetGameObjectEntry(uint32 offset) { +constexpr uint32 GetGameObjectEntry(uint32 offset) +{ return 500000 + offset; }