Trinitycore: [335] Forlorn Spirit (Quest) Does Not Attack

Created on 5 Nov 2016  路  7Comments  路  Source: TrinityCore/TrinityCore

Description: The Forlorn Spirit (entry 2044, GUID 0) is spawned by a GO from quest The Legend of Stalvan but she is spawned neutral instead of hostile.

Current behaviour: The NPC is spawned neutral

Expected behaviour: The NPC should spawn hostile

Steps to reproduce the problem:

  1. Obtain the aforementioned quest
  2. Go to the location and click on the GO
  3. 3.

Branch(es): 3.3.5

TC rev. hash/commit: 2db9269ec1c06b5fccc45dc0a5b4f714f9b48804

TDB version: TDB_full_world_335.61_2016_04_11.sql + updates

Operating system: WinXP / Win7

Notes:

  • On retail, other parts of this quest chain also spawn this NPC. I have not tried them in Trinity yet but I assume they'll use the same DB entry so one fix should cover them all

  • Searching the repo finds an SAI commit from 2012 and a db fix for the repeatable flag but nothing mentioning this NPC.

Branch-3.3.5a Comp-Database Feedback-PatchFix Sub-Spawns

Most helpful comment

This should fix the issue. I also fixed spawn positions for Forlorn Spirit.
``sql -- Forlorn Spirit DELETE FROMsmart_scriptsWHEREentryorguid=2044 ANDsource_type=0 ANDid=0; DELETE FROMsmart_scriptsWHEREentryorguid=204400 ANDsource_type=9; INSERT INTOsmart_scripts(entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,event_param5,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment`) VALUES
(2044,0,0,0,11,0,100,0,0,0,0,0,0,80,204400,2,0,0,0,0,1,0,0,0,0,0,0,0,"Forlorn Spirit - On Respawn - Run Script"),
(204400,9,0,0,0,0,100,0,3000,3000,0,0,0,49,0,0,0,0,0,0,21,50,0,0,0,0,0,0,"Forlorn Spirit - On Script - Start Attacking"),
(204400,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,21,50,0,0,0,0,0,0,"Forlorn Spirit - On Script - Say Line 0");

-- Old Footlocker
UPDATE smart_scripts SET target_type=8, target_x=-10951.4, target_y=1568.86, target_z=46.9779, target_o=3.75142 WHERE entryorguid=3643 AND source_type=1 AND id=0;

-- Sealed Crate
UPDATE smart_scripts SET target_x=-8841.93, target_y=985.171, target_z=98.6999, target_o=6.00926 WHERE entryorguid=1561 AND source_type=1 AND id=0;

-- Marshal Haggard's Chest
UPDATE event_scripts SET delay=0, x=-9553.53, y=-1432.44, z=62.2943, o=5.28835 WHERE id=264;

All 7 comments

[edit] I don't know how it is supposed to work, but the page http://wow.gamepedia.com/Forlorn_Spirit_(banshee) notes the following:

Oddly, she has a neutral aura, even during combat (noted during Moonbrook encounter.)

This is of course in addition to the NPC facts stating that she is hostile to both Alliance and Horde.

As you can see here it's neutral: https://youtu.be/ScETNxgiSYA?t=1m28s

She is still supposed to attack the player

http://wowwiki.wikia.com/wiki/Forlorn_Spirit

There is a delay when she first appears before she attacks in which you should be able to run away if you do not want to confront her.

In my case she did not attack at all which is why I thought it was a problem with the neutral flag.

Probably start attack is called by the script.

TrinityCore rev. 2e457b3be418 2016-11-05 01:52:38 -0300 (3.3.5 branch) (Win64, Release, Static)

SELECT * FROM `smart_scripts` WHERE `entryorguid`= 2044;
entryorguid  source_type      id    link  event_type  event_phase_mask  event_chance  event_flags  event_param1  event_param2  event_param3  event_param4  action_type  action_param1  action_param2  action_param3  action_param4  action_param5  action_param6  target_type  target_param1  target_param2  target_param3  target_x  target_y  target_z  target_o  comment                                             
-----------  -----------  ------  ------  ----------  ----------------  ------------  -----------  ------------  ------------  ------------  ------------  -----------  -------------  -------------  -------------  -------------  -------------  -------------  -----------  -------------  -------------  -------------  --------  --------  --------  --------  ----------------------------------------------------
       2044            0       0       0          11                 0           100            1             0             0             0             0            1              0              0              0              0              0              0            1              0              0              0         0         0         0         0  Forlorn Spirit - On Respawn - Say Line 0            
       2044            0       1       0           0                 0           100            0          2000          2000          2000          2000           11           3105             32              0              0              0              0            2              0              0              0         0         0         0         0  Forlorn Spirit - In Combat - Cast 'Curse of Stalvan'
       2044            0       2       0           8                 0           100            0             0             0         45000         45000           11            118              0              0              0              0              0            7              0              0              0         0         0         0         0  Forlorn Spirit - On Spellhit - Cast 'Polymorph'     

Doesn't look like there is any start attack command in the creature's SAI.

This should fix the issue. I also fixed spawn positions for Forlorn Spirit.
``sql -- Forlorn Spirit DELETE FROMsmart_scriptsWHEREentryorguid=2044 ANDsource_type=0 ANDid=0; DELETE FROMsmart_scriptsWHEREentryorguid=204400 ANDsource_type=9; INSERT INTOsmart_scripts(entryorguid,source_type,id,link,event_type,event_phase_mask,event_chance,event_flags,event_param1,event_param2,event_param3,event_param4,event_param5,action_type,action_param1,action_param2,action_param3,action_param4,action_param5,action_param6,target_type,target_param1,target_param2,target_param3,target_x,target_y,target_z,target_o,comment`) VALUES
(2044,0,0,0,11,0,100,0,0,0,0,0,0,80,204400,2,0,0,0,0,1,0,0,0,0,0,0,0,"Forlorn Spirit - On Respawn - Run Script"),
(204400,9,0,0,0,0,100,0,3000,3000,0,0,0,49,0,0,0,0,0,0,21,50,0,0,0,0,0,0,"Forlorn Spirit - On Script - Start Attacking"),
(204400,9,1,0,0,0,100,0,0,0,0,0,0,1,0,0,0,0,0,0,21,50,0,0,0,0,0,0,"Forlorn Spirit - On Script - Say Line 0");

-- Old Footlocker
UPDATE smart_scripts SET target_type=8, target_x=-10951.4, target_y=1568.86, target_z=46.9779, target_o=3.75142 WHERE entryorguid=3643 AND source_type=1 AND id=0;

-- Sealed Crate
UPDATE smart_scripts SET target_x=-8841.93, target_y=985.171, target_z=98.6999, target_o=6.00926 WHERE entryorguid=1561 AND source_type=1 AND id=0;

-- Marshal Haggard's Chest
UPDATE event_scripts SET delay=0, x=-9553.53, y=-1432.44, z=62.2943, o=5.28835 WHERE id=264;

What about the actions

  • Forlorn Spirit - In Combat - Cast 'Curse of Stalvan'
  • Forlorn Spirit - On Spellhit - Cast 'Polymorph'

Are those actions handled elsewhere, or automatically when the NPC attacks a player?

edit: sorry, I misread the SQL, didn't notice it only removed id=0 . Please ignore my question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rushor picture Rushor  路  3Comments

Jonne733 picture Jonne733  路  3Comments

cbcs picture cbcs  路  3Comments

Tatara902 picture Tatara902  路  3Comments

Lopfest picture Lopfest  路  3Comments