Skip to content

About

Cross-faction friendly Trial of the Crusader loot: one faction set drops for the raid majority, plus an NPC to exchange items for your faction's counterpart.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

mod-crossfaction-toc

Makes Trial of the Crusader (all four difficulties, map 649) friendly to cross-faction raids.

Every boss and chest there rolls an Alliance and a Horde loot reference, and each item is flagged for one faction, so a mixed raid gets two sets and each player only sees half of the loot.

With this module:

  • One set drops. References that contain only items of one faction roll only when that faction is the majority of the (non-GM) players inside the instance. Ties go to the group leader's faction (the looter's if the leader is offline), so an evenly split raid gets the same faction's loot all run. The Swift Alliance Steed and Swift Horde Wolf from the 10-player heroic tribute chest are not references, so both still drop and each faction loots its own.
  • Everyone can loot it. Inside the raid, any item listed in player_factionchange_items is visible and rollable for both factions. Equipping is still faction-locked.
  • Exchange NPC. The Argent Exchange Officer (creature 210000, a blood elf Argent Peacekeeper) opens a vendor window listing, for free, the counterpart of every item in the player's bags that is locked to the other faction (from player_factionchange_items). "Buying" a counterpart swaps it for the original, and the new item takes the old one's bag slot. Selling to this NPC is disabled.
    • Items qualify at any time after looting, whether soulbound (raid gear), bind-on-equip (gear) or unbound (recipes). The new item binds like the original: a soulbound item gives a soulbound counterpart, an unbound one stays unbound.
    • Stackable items, quest items, and items with an enchant or gem never qualify, since the new item would lose them.
    • An item still in its loot trade window (2 hours of played time after looting) keeps that window after the exchange, so it can still be passed on to the same players. This requires Item.SetItemTradeable = 1 in worldserver.conf (the default).
    • Nobody can swap an item back, since the counterpart belongs to their own faction.
    • Texts are localized: chat and error strings in module_string(_locale), the gossip text in npc_text(_locale) (the client requests it by ID), and the name in creature_template_locale.

Requirements

Core hook GlobalScript::CanLootOtherFactionItem (called from LootItem::AllowedForPlayer), added in azerothcore/azerothcore-wotlk#28320.

Installation

  1. Place the module in modules/ and re-run CMake.
  2. Apply the files in data/sql/db-world/updates/ (or let the DB updater do it).
  3. Copy conf/mod-crossfaction-toc.conf.dist to your config folder. 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

Option Default Description
CrossFactionToC.Enable 1 Enables the loot filtering and cross-faction loot visibility. The exchange NPC works either way.

About

Cross-faction friendly Trial of the Crusader loot: one faction set drops for the raid majority, plus an NPC to exchange items for your faction's counterpart.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages