Description:
Quest "The Raven Stones" the bird can't guide player to the location of the nearest tablet fragment, the bird can also be killed by player.
Steps to reproduce the problem:
.character level 70
.quest add 10988
.go xyz -4073.391602 3538.034912 288.76930 530
.Use "Cenarion Sparrowhawk Whistle"
Branch(es):
3.3.5
TC rev. hash/commit:
961adea
Operating system:
CentOS
On Spawn should probably move to nearest https://www.wowhead.com/npc=22986/skettis-invis-raven-stone and then summon the raven stone gob.
Currently the gobs are just summoned so you can just loot them without using quest item there are 39 spawns of this npc around skettis but the raven stone gobs are not anywhere near them
Gobs should probably be summoned using the non working dbc spell 39797 - Summon Raven Stone
This only fixes the spell to summon gob
~~~sql
DELETE FROM spell_dbc
WHERE Id
=39797;
INSERT INTO spell_dbc
(Id
, Dispel
, Mechanic
, Attributes
, AttributesEx
, AttributesEx2
, AttributesEx3
, AttributesEx4
, AttributesEx5
, AttributesEx6
, AttributesEx7
, Stances
, StancesNot
, Targets
, CastingTimeIndex
, AuraInterruptFlags
, ProcFlags
, ProcChance
, ProcCharges
, MaxLevel
, BaseLevel
, SpellLevel
, DurationIndex
, RangeIndex
, StackAmount
, EquippedItemClass
, EquippedItemSubClassMask
, EquippedItemInventoryTypeMask
, Effect1
, Effect2
, Effect3
, EffectDieSides1
, EffectDieSides2
, EffectDieSides3
, EffectRealPointsPerLevel1
, EffectRealPointsPerLevel2
, EffectRealPointsPerLevel3
, EffectBasePoints1
, EffectBasePoints2
, EffectBasePoints3
, EffectMechanic1
, EffectMechanic2
, EffectMechanic3
, EffectImplicitTargetA1
, EffectImplicitTargetA2
, EffectImplicitTargetA3
, EffectImplicitTargetB1
, EffectImplicitTargetB2
, EffectImplicitTargetB3
, EffectRadiusIndex1
, EffectRadiusIndex2
, EffectRadiusIndex3
, EffectApplyAuraName1
, EffectApplyAuraName2
, EffectApplyAuraName3
, EffectAmplitude1
, EffectAmplitude2
, EffectAmplitude3
, EffectMultipleValue1
, EffectMultipleValue2
, EffectMultipleValue3
, EffectItemType1
, EffectItemType2
, EffectItemType3
, EffectMiscValue1
, EffectMiscValue2
, EffectMiscValue3
, EffectMiscValueB1
, EffectMiscValueB2
, EffectMiscValueB3
, EffectTriggerSpell1
, EffectTriggerSpell2
, EffectTriggerSpell3
, EffectSpellClassMaskA1
, EffectSpellClassMaskA2
, EffectSpellClassMaskA3
, EffectSpellClassMaskB1
, EffectSpellClassMaskB2
, EffectSpellClassMaskB3
, EffectSpellClassMaskC1
, EffectSpellClassMaskC2
, EffectSpellClassMaskC3
, MaxTargetLevel
, SpellFamilyName
, SpellFamilyFlags1
, SpellFamilyFlags2
, SpellFamilyFlags3
, MaxAffectedTargets
, DmgClass
, PreventionType
, DmgMultiplier1
, DmgMultiplier2
, DmgMultiplier3
, AreaGroupId
, SchoolMask
, Comment
) VALUES (39797, 0, 0, 384, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 7, 0, -1, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Summon Raven Stone');
We have like no sniffs of this quest and only creature info from all_creatures sniffs for https://www.wowhead.com/npc=22972/cenarion-sparrowhawk
This is not from sniff but this is working as said cant find any actual sniff of this quest
~~~sql
DELETE FROM spell_dbc
WHERE Id
=39797;
INSERT INTO spell_dbc
(Id
, Dispel
, Mechanic
, Attributes
, AttributesEx
, AttributesEx2
, AttributesEx3
, AttributesEx4
, AttributesEx5
, AttributesEx6
, AttributesEx7
, Stances
, StancesNot
, Targets
, CastingTimeIndex
, AuraInterruptFlags
, ProcFlags
, ProcChance
, ProcCharges
, MaxLevel
, BaseLevel
, SpellLevel
, DurationIndex
, RangeIndex
, StackAmount
, EquippedItemClass
, EquippedItemSubClassMask
, EquippedItemInventoryTypeMask
, Effect1
, Effect2
, Effect3
, EffectDieSides1
, EffectDieSides2
, EffectDieSides3
, EffectRealPointsPerLevel1
, EffectRealPointsPerLevel2
, EffectRealPointsPerLevel3
, EffectBasePoints1
, EffectBasePoints2
, EffectBasePoints3
, EffectMechanic1
, EffectMechanic2
, EffectMechanic3
, EffectImplicitTargetA1
, EffectImplicitTargetA2
, EffectImplicitTargetA3
, EffectImplicitTargetB1
, EffectImplicitTargetB2
, EffectImplicitTargetB3
, EffectRadiusIndex1
, EffectRadiusIndex2
, EffectRadiusIndex3
, EffectApplyAuraName1
, EffectApplyAuraName2
, EffectApplyAuraName3
, EffectAmplitude1
, EffectAmplitude2
, EffectAmplitude3
, EffectMultipleValue1
, EffectMultipleValue2
, EffectMultipleValue3
, EffectItemType1
, EffectItemType2
, EffectItemType3
, EffectMiscValue1
, EffectMiscValue2
, EffectMiscValue3
, EffectMiscValueB1
, EffectMiscValueB2
, EffectMiscValueB3
, EffectTriggerSpell1
, EffectTriggerSpell2
, EffectTriggerSpell3
, EffectSpellClassMaskA1
, EffectSpellClassMaskA2
, EffectSpellClassMaskA3
, EffectSpellClassMaskB1
, EffectSpellClassMaskB2
, EffectSpellClassMaskB3
, EffectSpellClassMaskC1
, EffectSpellClassMaskC2
, EffectSpellClassMaskC3
, MaxTargetLevel
, SpellFamilyName
, SpellFamilyFlags1
, SpellFamilyFlags2
, SpellFamilyFlags3
, MaxAffectedTargets
, DmgClass
, PreventionType
, DmgMultiplier1
, DmgMultiplier2
, DmgMultiplier3
, AreaGroupId
, SchoolMask
, Comment
) VALUES
(39797, 0, 0, 384, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 7, 0, -1, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Summon Raven Stone');
DELETE FROM gameobject
WHERE id
=185541;
UPDATE creature_template
SET AIName
='SmartAI' WHERE entry
=22972;
DELETE FROM smart_scripts
WHERE entryorguid
=22972;
INSERT INTO smart_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_param4
, target_x
, target_y
, target_z
, target_o
, cus_target_param1
, comment
) VALUES
(22972, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Set Unit Flags'),
(22972, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Move to Nearest Invis Raven Stone'),
(22972, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 22986, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Say Line 0'),
(22972, 0, 3, 4, 34, 0, 100, 0, 0, 1, 0, 0, 0, 11, 39797, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Cast Summon Raven Stone'),
(22972, 0, 4, 5, 61, 0, 100, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Say Line 1'),
(22972, 0, 5, 6, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22986, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn Nearest Invis Raven Stone'),
(22972, 0, 6, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn');
DELETE FROM creature_text
WHERE CreatureID
=22972;
INSERT INTO creature_text
(CreatureID
, GroupID
, ID
, Text
, Type
, Language
, Probability
, Emote
, Duration
, Sound
, BroadcastTextId
, TextRange
, comment
) VALUES
(22972, 0, 0, '%s surveys the ground for buried raven stones.', 16, 0, 100, 0, 0, 0, 20675, 0, 'Cenarion Sparrowhawk'),
(22972, 1, 0, '%s locates a buried raven stone.', 16, 0, 100, 0, 0, 0, 20676, 0, 'Cenarion Sparrowhawk'),
(22972, 2, 0, "%s doesn't seem to have had any luck finding raven stones nearby.", 16, 0, 100, 0, 0, 0, 21065, 0, 'Cenarion Sparrowhawk');
This is not from sniff but this is working as said cant find any actual sniff of this quest
Fair point. Druid class quests & quest lines have way fewer visitors than most other classes.
Ye and no longer available on retail either
Yep and sucks seems to even any useful videos of this quest since only videos I can find look like from private server and just show player flying around and looting the gobs without using quest item to summon the npc
~~~sql
DELETE FROM spell_dbc
WHERE Id
=39797;
INSERT INTO spell_dbc
(Id
, Dispel
, Mechanic
, Attributes
, AttributesEx
, AttributesEx2
, AttributesEx3
, AttributesEx4
, AttributesEx5
, AttributesEx6
, AttributesEx7
, Stances
, StancesNot
, Targets
, CastingTimeIndex
, AuraInterruptFlags
, ProcFlags
, ProcChance
, ProcCharges
, MaxLevel
, BaseLevel
, SpellLevel
, DurationIndex
, RangeIndex
, StackAmount
, EquippedItemClass
, EquippedItemSubClassMask
, EquippedItemInventoryTypeMask
, Effect1
, Effect2
, Effect3
, EffectDieSides1
, EffectDieSides2
, EffectDieSides3
, EffectRealPointsPerLevel1
, EffectRealPointsPerLevel2
, EffectRealPointsPerLevel3
, EffectBasePoints1
, EffectBasePoints2
, EffectBasePoints3
, EffectMechanic1
, EffectMechanic2
, EffectMechanic3
, EffectImplicitTargetA1
, EffectImplicitTargetA2
, EffectImplicitTargetA3
, EffectImplicitTargetB1
, EffectImplicitTargetB2
, EffectImplicitTargetB3
, EffectRadiusIndex1
, EffectRadiusIndex2
, EffectRadiusIndex3
, EffectApplyAuraName1
, EffectApplyAuraName2
, EffectApplyAuraName3
, EffectAmplitude1
, EffectAmplitude2
, EffectAmplitude3
, EffectMultipleValue1
, EffectMultipleValue2
, EffectMultipleValue3
, EffectItemType1
, EffectItemType2
, EffectItemType3
, EffectMiscValue1
, EffectMiscValue2
, EffectMiscValue3
, EffectMiscValueB1
, EffectMiscValueB2
, EffectMiscValueB3
, EffectTriggerSpell1
, EffectTriggerSpell2
, EffectTriggerSpell3
, EffectSpellClassMaskA1
, EffectSpellClassMaskA2
, EffectSpellClassMaskA3
, EffectSpellClassMaskB1
, EffectSpellClassMaskB2
, EffectSpellClassMaskB3
, EffectSpellClassMaskC1
, EffectSpellClassMaskC2
, EffectSpellClassMaskC3
, MaxTargetLevel
, SpellFamilyName
, SpellFamilyFlags1
, SpellFamilyFlags2
, SpellFamilyFlags3
, MaxAffectedTargets
, DmgClass
, PreventionType
, DmgMultiplier1
, DmgMultiplier2
, DmgMultiplier3
, AreaGroupId
, SchoolMask
, Comment
) VALUES
(39797, 0, 0, 384, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 7, 0, -1, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Summon Raven Stone');
DELETE FROM gameobject
WHERE id
=185541;
UPDATE creature_template
SET AIName
='SmartAI' WHERE entry
=22972;
DELETE FROM smart_scripts
WHERE entryorguid
=22972;
INSERT INTO smart_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_param4
, target_x
, target_y
, target_z
, target_o
, cus_target_param1
, comment
) VALUES
(22972, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Set Unit Flags'),
(22972, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Move to Nearest Invis Raven Stone'),
(22972, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 22986, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Say Line 0'),
(22972, 0, 3, 4, 34, 0, 100, 0, 0, 1, 0, 0, 0, 11, 39797, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Cast Summon Raven Stone'),
(22972, 0, 4, 5, 61, 0, 100, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Say Line 1'),
(22972, 0, 5, 6, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22986, 50, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn Nearest Invis Raven Stone'),
(22972, 0, 6, 7, 61, 0, 100, 0, 0, 1, 0, 0, 0, 60, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Turn Fly on'),
(22972, 0, 7, 8, 61, 0, 100, 0, 0, 1, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 40, 40, 10, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Move Offset'),
(22972, 0, 8, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn'),
(22972, 0, 9, 10, 54, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Set Unit Flags'),
(22972, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 8000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Say Line 0'),
(22972, 0, 11, 12, 52, 0, 100, 0, 2, 22972, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Say Line 2'),
(22972, 0, 12, 13, 61, 0, 100, 0, 0, 1, 0, 0, 0, 60, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Turn Fly on'),
(22972, 0, 13, 14, 61, 0, 100, 0, 0, 1, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 40, 40, 10, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Move Offset'),
(22972, 0, 14, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Despawn');
DELETE FROM conditions
WHERE SourceTypeOrReferenceId
=22 AND SourceEntry
=22972 AND SourceId
=0;
INSERT INTO conditions
(SourceTypeOrReferenceId
, SourceGroup
, SourceEntry
, SourceId
, ElseGroup
, ConditionTypeOrReference
, ConditionTarget
, ConditionValue1
, ConditionValue2
, ConditionValue3
, NegativeCondition
, ErrorType
, ErrorTextId
, ScriptName
, Comment
) VALUES
(22, 1, 22972, 0, 0, 29, 1, 22986, 50, 0, 0, 0, 0, '', 'Only run SAI if Invis Rune Stone within 50 yards'),
(22, 10, 22972, 0, 0, 29, 1, 22986, 50, 0, 1, 0, 0, '', 'Only run SAI if No Invis Rune Stone within 50 yards');
DELETE FROM creature_text
WHERE CreatureID
=22972;
INSERT INTO creature_text
(CreatureID
, GroupID
, ID
, Text
, Type
, Language
, Probability
, Emote
, Duration
, Sound
, BroadcastTextId
, TextRange
, comment
) VALUES
(22972, 0, 0, '%s surveys the ground for buried raven stones.', 16, 0, 100, 0, 0, 0, 20675, 0, 'Cenarion Sparrowhawk'),
(22972, 1, 0, '%s locates a buried raven stone.', 16, 0, 100, 0, 0, 0, 20676, 0, 'Cenarion Sparrowhawk'),
(22972, 2, 0, '%s locates a buried raven stone.', 16, 0, 100, 0, 0, 0, 20676, 0, 'Cenarion Sparrowhawk'),
(22972, 3, 0, "%s doesn't seem to have had any luck finding raven stones nearby.", 16, 0, 100, 0, 0, 0, 21065, 0, 'Cenarion Sparrowhawk');
~~~
Updated version will now only sucessfully trigger event if there is invis npc within 50 yards when used
if there is no invis within 50 yards will fail
Have also made to fly off once its found a raven stone
Finally, I saw the original video, which is the most classic task chain of Druid, and now I redo it.
But I found that there are some differences between the current implementation and video:
0:28 If the collect fails, the player will not be bombed.
0:54 After talks with NPC, the player will not become crow man.
1:31 monsters don't call so many birds to help them in battle.
2:35 The goblin will not jump into the water for players to chase him.
3:23 Boss will not call so many birds to fight for him. This is another video https://youtu.be/EIFhKHtvOe0
@aleigood Can you open a separate issue about each quest please as will be easier to track
@aleigood Can you open a separate issue about each quest please as will be easier to track
Yes, I'm sorting it out.
Cmangos has a lot events scripted related to this chain
Like https://github.com/cmangos/tbc-db/commit/3b1fb662a346a8b1a27e2c626377d0a7c0b4bf52 but quite possible there's more scripts and/or updated versions of already scripted quests
Most helpful comment
~~~sql
DELETE FROM
spell_dbc
WHEREId
=39797;INSERT INTO
spell_dbc
(Id
,Dispel
,Mechanic
,Attributes
,AttributesEx
,AttributesEx2
,AttributesEx3
,AttributesEx4
,AttributesEx5
,AttributesEx6
,AttributesEx7
,Stances
,StancesNot
,Targets
,CastingTimeIndex
,AuraInterruptFlags
,ProcFlags
,ProcChance
,ProcCharges
,MaxLevel
,BaseLevel
,SpellLevel
,DurationIndex
,RangeIndex
,StackAmount
,EquippedItemClass
,EquippedItemSubClassMask
,EquippedItemInventoryTypeMask
,Effect1
,Effect2
,Effect3
,EffectDieSides1
,EffectDieSides2
,EffectDieSides3
,EffectRealPointsPerLevel1
,EffectRealPointsPerLevel2
,EffectRealPointsPerLevel3
,EffectBasePoints1
,EffectBasePoints2
,EffectBasePoints3
,EffectMechanic1
,EffectMechanic2
,EffectMechanic3
,EffectImplicitTargetA1
,EffectImplicitTargetA2
,EffectImplicitTargetA3
,EffectImplicitTargetB1
,EffectImplicitTargetB2
,EffectImplicitTargetB3
,EffectRadiusIndex1
,EffectRadiusIndex2
,EffectRadiusIndex3
,EffectApplyAuraName1
,EffectApplyAuraName2
,EffectApplyAuraName3
,EffectAmplitude1
,EffectAmplitude2
,EffectAmplitude3
,EffectMultipleValue1
,EffectMultipleValue2
,EffectMultipleValue3
,EffectItemType1
,EffectItemType2
,EffectItemType3
,EffectMiscValue1
,EffectMiscValue2
,EffectMiscValue3
,EffectMiscValueB1
,EffectMiscValueB2
,EffectMiscValueB3
,EffectTriggerSpell1
,EffectTriggerSpell2
,EffectTriggerSpell3
,EffectSpellClassMaskA1
,EffectSpellClassMaskA2
,EffectSpellClassMaskA3
,EffectSpellClassMaskB1
,EffectSpellClassMaskB2
,EffectSpellClassMaskB3
,EffectSpellClassMaskC1
,EffectSpellClassMaskC2
,EffectSpellClassMaskC3
,MaxTargetLevel
,SpellFamilyName
,SpellFamilyFlags1
,SpellFamilyFlags2
,SpellFamilyFlags3
,MaxAffectedTargets
,DmgClass
,PreventionType
,DmgMultiplier1
,DmgMultiplier2
,DmgMultiplier3
,AreaGroupId
,SchoolMask
,Comment
) VALUES(39797, 0, 0, 384, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 7, 0, -1, 0, 0, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185541, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Summon Raven Stone');
DELETE FROM
gameobject
WHEREid
=185541;UPDATE
creature_template
SETAIName
='SmartAI' WHEREentry
=22972;DELETE FROM
smart_scripts
WHEREentryorguid
=22972;INSERT INTO
smart_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_param4
,target_x
,target_y
,target_z
,target_o
,cus_target_param1
,comment
) VALUES(22972, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Set Unit Flags'),
(22972, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Move to Nearest Invis Raven Stone'),
(22972, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 0, 19, 22986, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Say Line 0'),
(22972, 0, 3, 4, 34, 0, 100, 0, 0, 1, 0, 0, 0, 11, 39797, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Cast Summon Raven Stone'),
(22972, 0, 4, 5, 61, 0, 100, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Say Line 1'),
(22972, 0, 5, 6, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 22986, 50, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn Nearest Invis Raven Stone'),
(22972, 0, 6, 7, 61, 0, 100, 0, 0, 1, 0, 0, 0, 60, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Turn Fly on'),
(22972, 0, 7, 8, 61, 0, 100, 0, 0, 1, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 40, 40, 10, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Move Offset'),
(22972, 0, 8, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Movement Inform - Despawn'),
(22972, 0, 9, 10, 54, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Set Unit Flags'),
(22972, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 8000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Just Summoned - Say Line 0'),
(22972, 0, 11, 12, 52, 0, 100, 0, 2, 22972, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Say Line 2'),
(22972, 0, 12, 13, 61, 0, 100, 0, 0, 1, 0, 0, 0, 60, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Turn Fly on'),
(22972, 0, 13, 14, 61, 0, 100, 0, 0, 1, 0, 0, 0, 114, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 40, 40, 10, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Move Offset'),
(22972, 0, 14, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Cenarion Sparrowhawk - On Text Over - Despawn');
DELETE FROM
conditions
WHERESourceTypeOrReferenceId
=22 ANDSourceEntry
=22972 ANDSourceId
=0;INSERT INTO
conditions
(SourceTypeOrReferenceId
,SourceGroup
,SourceEntry
,SourceId
,ElseGroup
,ConditionTypeOrReference
,ConditionTarget
,ConditionValue1
,ConditionValue2
,ConditionValue3
,NegativeCondition
,ErrorType
,ErrorTextId
,ScriptName
,Comment
) VALUES(22, 1, 22972, 0, 0, 29, 1, 22986, 50, 0, 0, 0, 0, '', 'Only run SAI if Invis Rune Stone within 50 yards'),
(22, 10, 22972, 0, 0, 29, 1, 22986, 50, 0, 1, 0, 0, '', 'Only run SAI if No Invis Rune Stone within 50 yards');
DELETE FROM
creature_text
WHERECreatureID
=22972;INSERT INTO
creature_text
(CreatureID
,GroupID
,ID
,Text
,Type
,Language
,Probability
,Emote
,Duration
,Sound
,BroadcastTextId
,TextRange
,comment
) VALUES(22972, 0, 0, '%s surveys the ground for buried raven stones.', 16, 0, 100, 0, 0, 0, 20675, 0, 'Cenarion Sparrowhawk'),
(22972, 1, 0, '%s locates a buried raven stone.', 16, 0, 100, 0, 0, 0, 20676, 0, 'Cenarion Sparrowhawk'),
(22972, 2, 0, '%s locates a buried raven stone.', 16, 0, 100, 0, 0, 0, 20676, 0, 'Cenarion Sparrowhawk'),
(22972, 3, 0, "%s doesn't seem to have had any luck finding raven stones nearby.", 16, 0, 100, 0, 0, 0, 21065, 0, 'Cenarion Sparrowhawk');
~~~
Updated version will now only sucessfully trigger event if there is invis npc within 50 yards when used
if there is no invis within 50 yards will fail
Have also made to fly off once its found a raven stone