From 3a78a7b97658eb7a8c2877b7257053a38217e8f0 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 31 Oct 2026 08:32:39 -0300 Subject: [PATCH] feat: spawn the exchange NPC at the Trial of the Crusader entrance --- README.md | 5 +++-- data/sql/db-world/updates/mod_crossfaction_toc_npc.sql | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fe1f76..4e5a4f8 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,9 @@ Core hook `GlobalScript::CanLootOtherFactionItem` (called from `LootItem::Allowe 1. Place the module in `modules/` and re-run CMake. 2. Apply `data/sql/db-world/updates/mod_crossfaction_toc_npc.sql` (or let the DB updater do it). 3. Copy `conf/mod-crossfaction-toc.conf.dist` to your config folder. -4. Spawn the NPC where you want it, e.g. inside the raid entrance or at the Argent Tournament grounds: - `.npc add 210000` +The SQL spawns the NPC in the Trial of the Crusader entrance hall at the Argent Tournament Grounds. +Add more spawns with `.npc add 210000`. Re-applying the SQL removes every spawn of the NPC and +recreates only the entrance one. ## Configuration diff --git a/data/sql/db-world/updates/mod_crossfaction_toc_npc.sql b/data/sql/db-world/updates/mod_crossfaction_toc_npc.sql index d70cc95..dbbd2b6 100644 --- a/data/sql/db-world/updates/mod_crossfaction_toc_npc.sql +++ b/data/sql/db-world/updates/mod_crossfaction_toc_npc.sql @@ -7,3 +7,9 @@ INSERT INTO `creature_template` (`entry`, `name`, `subname`, `IconName`, `gossip DELETE FROM `creature_template_model` WHERE `CreatureID` = @ENTRY; INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (@ENTRY, 0, 27020, 1, 1, 0); + +-- Trial of the Crusader entrance hall (Argent Tournament Grounds), in the gap of the east row of champions. +-- No fixed guid so the spawn can't collide with another server's custom spawns. +DELETE FROM `creature` WHERE `id` = @ENTRY; +INSERT INTO `creature` (`id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES +(@ENTRY, 571, 1, 1, 8528.9, 716.3, 558.61, 3.14, 300);