Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions data/sql/db-world/updates/mod_crossfaction_toc_npc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Loading