For some reason the spell just never reaches the creature…
[CODE]-- [Q] Forging a Head
– Dead Iron Giant SAI
SET @ENTRY := 29914;
SET @SPELL_SALVAGE_CORPSE := 56227;
UPDATE creature_template
SET AIName
=‘SmartAI’,unit_flags
=0 WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE entryorguid
IN (@ENTRY,@ENTRY100+0,@ENTRY100+1,@ENTRY100+2);
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
,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
(@ENTRY,0,0,0,1,0,100,1,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Spawn - Set React State Passive”),
(@ENTRY,0,1,0,8,0,100,0,@SPELL_SALVAGE_CORPSE,0,0,0,87,@ENTRY100+0,@ENTRY100+1,@ENTRY100+2,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Spellhit - Run Random Script”),
(@ENTRY100+0,9,0,0,0,0,100,0,0,0,0,0,56,42423,1,0,0,0,0,7,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Give Quest Item x1”),
(@ENTRY100+0,9,1,0,0,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Forced Despawn”),
(@ENTRY100+1,9,0,0,0,0,100,0,0,0,0,0,56,42423,2,0,0,0,0,7,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Give Quest Item x2”),
(@ENTRY100+1,9,1,0,0,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Forced Despawn”),
(@ENTRY100+2,9,0,0,0,0,100,0,0,0,0,0,12,30208,2,120000,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Summon Stormforged Ambusher”),
(@ENTRY100+2,9,1,0,0,0,100,0,0,0,0,0,12,30208,2,120000,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Summon Stormforged Ambusher”),
(@ENTRY100+2,9,2,0,0,0,100,0,0,0,0,0,12,30208,2,120000,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Summon Stormforged Ambusher”),
(@ENTRY100+2,9,3,0,0,0,100,0,0,0,0,0,41,3000,0,0,0,0,0,1,0,0,0,0,0,0,0,“Dead Iron Giant - On Script - Forced Despawn”);
– Permanent Feign Death
DELETE FROM creature_template_addon
WHERE entry
=@ENTRY;
INSERT INTO creature_template_addon
(entry
,mount
,bytes1
,bytes2
,emote
,auras
) VALUES (@ENTRY,0,0,1,0,“29266”);[/sql]
[/CODE]