azerothcore-wotlk icon indicating copy to clipboard operation
azerothcore-wotlk copied to clipboard

Scourge War Machines should not be present during quest Drag and Drop

Open rorshan opened this issue 1 month ago • 2 comments

Triage

Original CC issue: https://github.com/chromiecraft/chromiecraft/issues/8715

Reproduction steps:

  1. .q a 13323
  2. .go c 1977226 for quest location

Scourge War Machine: https://wowgaming.altervista.org/aowow/?npc=32154 Probably an incorrect phasemask if I had to guess.

Original issue below

Current Behaviour

In the place of that quest we see different Scourge Wagons. The problem is they are marcked as enemy and attack you once you get closer. The other thing I see is that in live wotlk you dont even see those wagons.

Expected Blizzlike Behaviour

Wagons cannot be seen in live wotlk back in the day, nor in wotlk classic.

Source

https://www.youtube.com/watch?v=YBDu0NbRJRg

Steps to reproduce the problem

  1. Start quest Drag and Drop

Extra Notes

No response

Customizations

No response

AC rev. hash/commit

https://github.com/chromiecraft/azerothcore-wotlk/commit/c552158e9916f962a647e41b5f9e66efee538803

Operating system

Ubuntu 22.04

Modules

Server

ChromieCraft

rorshan avatar Nov 26 '25 18:11 rorshan

🤖 Analysis by AI Assistant with MCP

Summary

The Scourge War Machine (creature_template entry 32154) spawns at Aldur'thar: The South Gate are incorrectly visible to players during the "Drag and Drop" quest (13323). According to the video evidence provided, these War Machines should not be visible when doing quests in that area. All 17 spawns at Aldur'thar have phaseMask = 1 (default phase) and no visibility conditions, making them visible to all players.

Database Info

Creature Template

  • creature_template entry 32154 - "Scourge War Machine"
    • faction: 21 (Undead, Scourge - hostile)
    • AIName: SmartAI
    • phaseMask not controlled at template level

Creature Spawns

  • creature table has 41 total spawns of entry 32154:
    • 17 spawns at Aldur'thar South Gate (z ≈ 500) - GUIDs 1977224-1977240 (these are the problematic ones)
    • 24 spawns in Valley of Lost Hope (z ≈ 300-370) - GUIDs 1977201-1977223, 1977241
    • All spawns have phaseMask = 1 (default phase)

Related Quests

Quest ID Quest Name Quest Giver Uses War Machine
13323 Drag and Drop Thassarian (29799) ❌ No - takes place at same location
13374 Amped for Revolt! Fringe Engineer Tezzla (32430) ✅ Yes - objective
13376 Total Ohmage: The Valley of Lost Hope! Fringe Engineer Tezzla (32430) ✅ Yes - objective
13381 Watts My Target Kibli Killohertz (32444) ✅ Yes - objective
13382 Putting the Hertz: The Valley of Lost Hope Kibli Killohertz (32444) ✅ Yes - objective

Conditions Table

  • conditions table has no visibility conditions for creature entry 32154 (SourceTypeOrReferenceId = 29)

Source Files

Wiki References

  • https://www.azerothcore.org/wiki/creature - phaseMask field documentation
  • https://www.azerothcore.org/wiki/conditions - visibility conditions documentation
  • https://www.azerothcore.org/wiki/creature_template - creature template fields

Recommendations

The fix should add visibility conditions to the Scourge War Machines at Aldur'thar (the 17 spawns with z > 480). Options include:

  1. Option A (Visibility Condition): Add entries to the conditions table using CONDITION_SOURCE_TYPE_CREATURE_VISIBILITY (29) with a quest-based condition. The War Machines should only be visible when specific quests (like 13374, 13376, 13381, 13382) are taken or in progress.

  2. Option B (PhaseMask): Update the phaseMask for the 17 spawns at Aldur'thar (GUIDs 1977224-1977240) to use a different phase (e.g., phase 2), and ensure that the gunship quests that require killing War Machines apply the appropriate phase aura.

  3. Option C (Delete Spawns): If these spawns at Aldur'thar are completely non-blizzlike, they could be removed entirely (17 spawns with GUIDs 1977224-1977240).

Suggested SQL for Option A:

-- Make Scourge War Machines visible only when one of the gunship quests is active
DELETE FROM conditions WHERE SourceTypeOrReferenceId = 29 AND SourceEntry = 32154;
INSERT INTO conditions (SourceTypeOrReferenceId, SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionTypeOrReference, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorType, ErrorTextId, ScriptName, Comment) VALUES
(29, 0, 32154, 0, 0, 9, 0, 13374, 0, 0, 0, 0, 0, '', 'Scourge War Machine - Visible if quest Amped for Revolt! is taken'),
(29, 0, 32154, 0, 1, 9, 0, 13376, 0, 0, 0, 0, 0, '', 'Scourge War Machine - Visible if quest Total Ohmage is taken'),
(29, 0, 32154, 0, 2, 9, 0, 13381, 0, 0, 0, 0, 0, '', 'Scourge War Machine - Visible if quest Watts My Target is taken'),
(29, 0, 32154, 0, 3, 9, 0, 13382, 0, 0, 0, 0, 0, '', 'Scourge War Machine - Visible if quest Putting the Hertz is taken');

Note: This would hide War Machines from ALL players not on these quests. If they should remain visible in the Valley of Lost Hope but hidden at Aldur'thar specifically, a more nuanced solution using spawn GUIDs or area conditions may be needed.

Test Steps

  1. .quest add 13323 - Add "Drag and Drop" quest
  2. .go creature id 1977226 - Teleport to a Scourge War Machine at Aldur'thar South Gate
  3. Observe that War Machines are visible and hostile (current bug)
  4. Apply the fix
  5. .reload creature - Reload creatures
  6. Verify War Machines are no longer visible without the appropriate quests
  7. .quest add 13374 - Add "Amped for Revolt!" quest
  8. Verify War Machines become visible when this quest is active

blinkysc avatar Dec 01 '25 23:12 blinkysc

The answer is more likely to be Option B

Nyeriah avatar Dec 01 '25 23:12 Nyeriah