Credits goes to user cooler with his “patch” project. awesome scripts, tested and works good
[CODE]/* Copyright (C) 11 April 2011 patch Project
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public Licensefor more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, see http://www.gnu.org/licenses/
- patch Project Copyright (C) 11 April 2011 patch Project
- This program comes with ABSOLUTELY NO WARRANTY;
- This is free software, and you are welcome to redistribute it
- under certain conditions.
*/
/* Dungeon Normal-Heroic for 5 people /
/ Trash Mobs */
– Ahn’kahar Swarmer
SET @ENTRY := 30338;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,1000,1000,35000,45000,11,56354,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Sprint’);
– Ahn’kahar Watcher
SET @ENTRY := 31104;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,5000,5000,12000,13000,11,42746,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Cleave’),
(@ENTRY,0,1,0,2,0,100,7,0,30,0,0,11,56646,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Enrage at 30% HP’),
(@ENTRY,0,2,0,2,0,100,7,0,30,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 30% HP’),
(@ENTRY,0,3,0,0,0,100,6,9000,9000,17800,19200,11,56643,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Triple Slash’);
– NPC talk text insert
SET @ENTRY := 31104;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s becomes enraged!’,2,0,100,0,0,0, ‘combat Enrage’);
– Ahn’kahar Slasher
SET @ENTRY := 30277;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,5000,5000,12000,13000,11,42746,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Cleave’),
(@ENTRY,0,1,0,2,0,100,7,0,30,0,0,11,56646,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Enrage at 30% HP’),
(@ENTRY,0,2,0,2,0,100,7,0,30,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 30% HP’),
(@ENTRY,0,3,0,0,0,100,6,9000,12000,15000,18000,11,56643,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Triple Slash’);
– NPC talk text insert
SET @ENTRY := 30277;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s becomes enraged!’,2,0,100,0,0,0, ‘combat Enrage’);
– Bonegrinder
SET @ENTRY := 30284;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,11000,14000,22000,25000,11,56737,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Stomp’),
(@ENTRY,0,1,0,2,0,100,7,0,30,0,0,11,8599,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Enrage at 30% HP’),
(@ENTRY,0,2,0,2,0,100,7,0,30,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 30% HP’),
(@ENTRY,0,3,0,0,0,100,6,20000,23000,24000,27000,11,19134,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Frightenning Shout’),
(@ENTRY,0,4,0,0,0,100,2,4000,7000,18000,22000,11,56736,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Trample’),
(@ENTRY,0,5,0,0,0,100,4,4000,7000,18000,22000,11,59107,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Trample’);
– NPC talk text insert
SET @ENTRY := 30284;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s becomes enraged!’,2,0,100,0,0,0, ‘combat Enrage’);
– Bound Air Elemental
SET @ENTRY := 30418;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,22414,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,22414,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,0,1,100,2,10000,13000,11000,13000,11,46150,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Forked Lightning’),
(@ENTRY,0,11,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,12,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,13,0,4,1,100,5,0,0,0,0,11,59169,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,14,0,9,1,100,4,0,40,3400,4700,11,59169,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,15,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,16,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,17,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,18,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,19,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,20,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,21,0,0,1,100,4,10000,13000,11000,13000,11,59152,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Forked Lightning’);
– Bound Fire Elemental
SET @ENTRY := 30416;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,7,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,7,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,7,0,0,0,0,11,17195,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,6,0,40,3400,4700,11,17195,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,6,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,6,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,6,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,6,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,6,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,6,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,9,1,100,6,0,8,11000,14000,11,12470,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Fire Nova on Close’);
– Bound Water Elemental
SET @ENTRY := 30419;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,7,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,7,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,7,0,0,0,0,11,56862,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,6,0,40,3400,4700,11,56862,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,6,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,6,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,6,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,6,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,6,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,6,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,0,1,100,2,9000,12000,12000,15000,11,39207,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Water Spout’),
(@ENTRY,0,11,0,0,1,100,4,9000,12000,12000,15000,11,35735,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Water Spout’);
– Deep Crawler
SET @ENTRY := 30279;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,2,4000,7000,9000,12000,11,56580,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Gluttinous Poison’),
(@ENTRY,0,1,0,0,0,100,4,4000,7000,9000,12000,11,59108,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Gluttinous Poison’),
(@ENTRY,0,2,0,12,0,100,4,20,20,14000,17000,11,59109,0,0,0,0,0,6,33,0,0,0,0,0,0,‘Cast Fatal Sting at 20% Target HP’),
(@ENTRY,0,3,0,12,0,100,2,20,20,14000,17000,11,56581,0,0,0,0,0,6,33,0,0,0,0,0,0,‘Cast Fatal Sting at 20% Target HP’);
– Eye of Taldaram
SET @ENTRY := 30285;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,13,0,100,3,0,0,0,0,11,56730,3,0,0,0,0,6,0,0,0,0,0,0,0,‘Cast Dark Counterspell’),
(@ENTRY,0,1,0,13,0,100,5,0,0,0,0,11,59111,3,0,0,0,0,6,0,0,0,0,0,0,0,‘Cast Dark Counterspell’),
(@ENTRY,0,2,0,6,0,100,3,0,0,0,0,11,56733,3,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Shadowfury on Death’),
(@ENTRY,0,3,0,6,0,100,5,0,0,0,0,11,61463,3,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Shadowfury on Death’),
(@ENTRY,0,4,0,0,0,100,6,15000,19000,23000,27000,11,56728,0,0,0,0,0,2,1,0,0,0,0,0,0,‘Cast Eyes in the Dark’),
(@ENTRY,0,5,0,0,0,100,2,5000,5000,11900,12600,11,17439,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Shadow Shock’),
(@ENTRY,0,6,0,0,0,100,4,5000,5000,11900,12600,11,17289,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Shadow Shock’);
– Forgotten One
SET @ENTRY := 30414;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,9000,12000,18000,21000,11,34322,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Psychic Scream’),
(@ENTRY,0,1,0,9,0,100,2,0,5,16000,19000,11,60845,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Shadow Nova on Close’),
(@ENTRY,0,2,0,9,0,100,4,0,5,16000,19000,11,60851,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Shadow Nova on Close’),
(@ENTRY,0,3,0,9,0,100,2,10,20,7000,11000,11,60833,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Shadow Crash on Close’),
(@ENTRY,0,4,0,9,0,100,4,10,20,7000,11000,11,60848,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Shadow Crash on Close’);
– Plague Walker
SET @ENTRY := 30283;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,0,0,100,6,7000,11000,120000,130000,11,56707,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Contagion of Rot’),
(@ENTRY,0,1,0,11,0,100,3,0,0,0,0,11,56709,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Aura of Lost Hope on Spawn’),
(@ENTRY,0,2,0,11,0,100,5,0,0,0,0,11,61459,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Aura of Lost Hope on Spawn’);
– Plundering Geist
SET @ENTRY := 30287;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,2,0,100,3,0,50,0,0,11,56715,0,0,0,0,0,1,1,0,0,0,0,0,0,‘Cast Plunder Health at 50% HP’),
(@ENTRY,0,1,0,2,0,100,5,0,50,0,0,11,59114,0,0,0,0,0,1,1,0,0,0,0,0,0,‘Cast Plunder Health at 50% HP’);
– Savage Cave Beast
SET @ENTRY := 30329;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,2,0,100,7,0,30,0,0,11,48193,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Enrage at 30% HP’),
(@ENTRY,0,1,0,2,0,100,7,0,30,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 30% HP’),
(@ENTRY,0,2,0,0,0,100,6,4000,7000,9000,12000,11,30471,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast Uppercut’),
(@ENTRY,0,3,0,0,0,100,2,9000,12000,17000,20000,11,56867,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Poison Cloud’),
(@ENTRY,0,4,0,0,0,100,4,9000,12000,17000,20000,11,59116,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Poison Cloud’);
– NPC talk text insert
SET @ENTRY := 30329;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s becomes enraged!’,2,0,100,0,0,0, ‘combat Enrage’);
– Twilight Apostle
SET @ENTRY := 30179;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,2,0,100,7,0,30,0,0,11,28902,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Bloodlust at 30% HP’),
(@ENTRY,0,1,0,14,0,100,6,10000,40,14000,17000,11,11986,0,0,0,0,0,7,0,0,0,0,0,0,0,‘Cast Healing Wave on Friendlies’),
(@ENTRY,0,2,0,2,0,100,7,0,15,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Flee at 15% HP’),
(@ENTRY,0,3,0,2,0,100,7,0,15,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 15% HP’),
(@ENTRY,0,4,0,1,0,100,2,500,1000,600000,600000,11,12550,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Lightning Shield on Spawn’),
(@ENTRY,0,5,0,1,0,100,4,500,1000,600000,600000,11,61570,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Lightning Shield on Spawn’);
– NPC talk text insert
SET @ENTRY := 30179;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s attempts to run away in fear!’,2,0,100,0,0,0, ‘combat Flee’);
– Twilight Darkcaster
SET @ENTRY := 30319;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,2,2,100,3,0,15,0,0,22,3,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 3 at 15% HP’),
(@ENTRY,0,11,0,2,3,100,3,0,15,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Flee at 15% HP’),
(@ENTRY,0,12,0,7,3,100,3,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Reset on Evade’),
(@ENTRY,0,13,0,2,3,100,3,0,15,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 15% HP’),
(@ENTRY,0,14,0,0,1,100,2,4000,7000,17000,20000,11,56898,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Corruption’),
(@ENTRY,0,15,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,16,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,17,0,4,1,100,5,0,0,0,0,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,18,0,9,1,100,4,0,40,3400,4700,11,12739,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,19,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,20,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,21,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,22,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,23,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,24,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,25,0,2,2,100,5,0,15,0,0,22,3,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 3 at 15% HP’),
(@ENTRY,0,26,0,2,3,100,5,0,15,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Flee at 15% HP’),
(@ENTRY,0,27,0,7,3,100,5,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Reset on Evade’),
(@ENTRY,0,28,0,2,3,100,5,0,15,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 15% HP’),
(@ENTRY,0,29,0,0,1,100,4,4000,7000,17000,20000,11,56898,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Corruption’),
(@ENTRY,0,30,0,0,1,100,6,12000,15000,19000,23000,11,13338,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Curse of Tongues’);
– NPC talk text insert
SET @ENTRY := 30319;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s attempts to run away in fear!’,2,0,100,0,0,0, ‘combat Flee’);
– Twilight Worshipper
SET @ENTRY := 30111;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,17290,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,2,2,100,3,0,15,0,0,22,3,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 3 at 15% HP’),
(@ENTRY,0,11,0,2,3,100,3,0,15,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Flee at 15% HP’),
(@ENTRY,0,12,0,7,3,100,3,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Reset on Evade’),
(@ENTRY,0,13,0,2,3,100,3,0,15,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 15% HP’),
(@ENTRY,0,14,0,0,0,100,2,9000,12000,14000,17000,11,56858,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Flamestrike’),
(@ENTRY,0,15,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,16,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,17,0,4,1,100,5,0,0,0,0,11,61567,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,18,0,9,1,100,4,0,40,3400,4700,11,61567,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,19,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,20,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,21,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,22,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,23,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,24,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,25,0,2,2,100,5,0,15,0,0,22,3,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 3 at 15% HP’),
(@ENTRY,0,26,0,2,3,100,5,0,15,0,0,25,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Flee at 15% HP’),
(@ENTRY,0,27,0,7,3,100,5,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Reset on Evade’),
(@ENTRY,0,28,0,2,3,100,5,0,15,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Say Text at 15% HP’),
(@ENTRY,0,29,0,0,0,100,4,9000,12000,14000,17000,11,61568,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Flamestrike’);
– NPC talk text insert
SET @ENTRY := 30111;
DELETE FROM creature_text
WHERE entry
=@ENTRY;
INSERT INTO creature_text
(entry
,groupid
,id
,text
,type
,language
,probability
,emote
,duration
,sound
,comment
) VALUES
(@ENTRY,0,0, ‘%s attempts to run away in fear!’,2,0,100,0,0,0, ‘combat Flee’);
– Ahn’kahar Web Winder
SET @ENTRY := 30276;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,9,0,100,2,0,40,14000,19000,11,56640,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Web Grab on Close’),
(@ENTRY,0,1,0,9,0,100,4,0,40,14000,19000,11,59106,0,0,0,0,0,5,0,0,0,0,0,0,0,‘Cast Web Grab on Close’),
(@ENTRY,0,2,0,9,0,100,6,0,25,16000,21000,11,56632,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Tangled Webs on Close’);
– Frostbringer
SET @ENTRY := 30286;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,57825,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,57825,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,9,1,100,2,0,8,12000,15000,11,15063,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Frost Nova on Close’),
(@ENTRY,0,11,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,12,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,13,0,4,1,100,5,0,0,0,0,11,61461,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,14,0,9,1,100,4,0,40,3400,4700,11,61461,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,15,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,16,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,17,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,18,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,19,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,20,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,21,0,9,1,100,4,0,8,12000,15000,11,61462,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Frost Nova on Close’),
(@ENTRY,0,22,0,2,1,100,7,0,30,0,0,11,56716,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Cast Icy Winds at 30% HP’);
– Ahn’kahar Spell Flinger
SET @ENTRY := 30278;
DELETE FROM creature_ai_scripts
WHERE creature_id
=@ENTRY;
UPDATE creature_template
SET AIName
=‘SmartAI’ WHERE entry
=@ENTRY;
DELETE FROM smart_scripts
WHERE source_type
=0 AND entryorguid
=@ENTRY;
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,4,0,100,3,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,1,0,4,1,100,3,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,2,0,4,1,100,3,0,0,0,0,11,56698,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,3,0,9,1,100,2,0,40,3400,4700,11,56698,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,4,0,9,1,100,2,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,5,0,9,1,100,2,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,6,0,9,1,100,2,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,7,0,3,1,100,2,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,8,0,3,2,100,2,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,9,0,3,2,100,2,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,10,0,0,1,100,2,10000,14000,13000,16000,11,56702,0,0,0,0,0,1,1,0,0,0,0,0,0,‘Cast Shadow Sickle’),
(@ENTRY,0,11,0,4,0,100,5,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 on Aggro’),
(@ENTRY,0,12,0,4,1,100,5,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving on Aggro’),
(@ENTRY,0,13,0,4,1,100,5,0,0,0,0,11,59102,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt on Aggro’),
(@ENTRY,0,14,0,9,1,100,4,0,40,3400,4700,11,59102,0,0,0,0,0,2,0,0,0,0,0,0,0,‘Cast bolt’),
(@ENTRY,0,15,0,9,1,100,4,40,100,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving when not in bolt Range’),
(@ENTRY,0,16,0,9,1,100,4,10,15,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving at 15 Yards’),
(@ENTRY,0,17,0,9,1,100,4,0,40,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Stop Moving when in bolt Range’),
(@ENTRY,0,18,0,3,1,100,4,0,15,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 2 at 15% Mana’),
(@ENTRY,0,19,0,3,2,100,4,0,15,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Start Moving at 15% Mana’),
(@ENTRY,0,20,0,3,2,100,4,30,100,100,100,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,‘Set Phase 1 When Mana is above 30%’),
(@ENTRY,0,21,0,0,1,100,4,10000,14000,13000,16000,11,59103,0,0,0,0,0,1,1,0,0,0,0,0,0,‘Cast Shadow Sickle’);[/SQL][/CODE]