Fix (DB\SmartScript\Quest) Catch and Release (#9987)

Catch and Release smart script fix for quest
This commit is contained in:
TheDdraig
2022-01-03 20:53:08 +00:00
committed by GitHub
parent 23deac6e93
commit 3247bfe909

View File

@@ -0,0 +1,14 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641238616670655918');
-- Fixes issue: https://github.com/azerothcore/azerothcore-wotlk/issues/8146
-- Made corrections to the original script, made it so you cant attack while its tagged like on retail
-- Blacksilt Scout Update SAI
SET @ENTRY := 17326;
SET @SOURCETYPE := 0;
UPDATE creature_template SET AIName="SmartAI" WHERE entry=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=@SOURCETYPE;
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,@SOURCETYPE,0,1,8,0,100,0,30877,0,0,0,33,17654,0,0,0,0,0,16,0,0,0,0.0,0.0,0.0,0.0,"Blacksilt Scout - On Spellhit - Give Quest Credit"),
(@ENTRY,@SOURCETYPE,1,2,61,0,100,0,0,0,0,0,18,770,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Link - Set Unattackable"),
(@ENTRY,@SOURCETYPE,2,0,61,0,100,0,0,0,0,0,41,7000,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Link - Set Despawn"),
(@ENTRY,@SOURCETYPE,3,0,11,0,100,0,0,0,0,0,19,770,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spawn - Remove Unit Flags");