This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @ENTRY := 29327; | |
SET @QUEST := 13549; | |
SET @GOSSIP := 54000; | |
SET @SPELL_RAKE := 54668; | |
SET @SPELL_BLOWGUN := 62105; | |
SET @SPELL_SLEEP := 42386; | |
UPDATE `creature_template` SET `AIName`='SmartAI',`npcflag`=0,`gossip_menu_id`=@GOSSIP,`faction_A`=1990,`faction_H`=1990,`unit_flags`=0 WHERE `entry`=@ENTRY; | |
DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@ENTRY; | |
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY,@ENTRY*100,@ENTRY*100+1,@ENTRY*100+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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- east central sai (broken one, fixed) | |
SET @ENTRY := 21237; | |
SET @SPELL_IGNITE_SIEGE := 32979; | |
SET @SPELL_HELLFIRE_FIRE := 34386; | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; | |
DELETE FROM `creature` WHERE `id`=@ENTRY; | |
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES | |
(210919, @ENTRY, 530, 1, 1, 11686, 0, -156.464, 2663.68, 63.7235, 3.28655, 300, 0, 0, 42, 0, 0, 0, 0, 0), | |
(74455, @ENTRY, 530, 1, 1, 0, 0, -160.337, 2663.65, 62.2968, 3.57792, 300, 0, 0, 42, 0, 0, 0, 0, 0); | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- east central sai (broken one, fixed) | |
SET @ENTRY := 21237; | |
SET @SPELL_IGNITE_SIEGE := 32979; | |
SET @SPELL_HELLFIRE_FIRE := 34386; | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; | |
DELETE FROM `creature` WHERE `id`=@ENTRY; | |
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES | |
(210919, @ENTRY, 530, 1, 1, 11686, 0, -156.464, 2663.68, 63.7235, 3.28655, 300, 0, 0, 42, 0, 0, 0, 0, 0), | |
(74455, @ENTRY, 530, 1, 1, 0, 0, -160.337, 2663.65, 62.2968, 3.57792, 300, 0, 0, 42, 0, 0, 0, 0, 0); | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- forgotten peasant sai | |
SET @PEASANT := 27226; | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY_PEASANT AND `id` IN (0, 1); --incorrect id's | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@PEASANT; | |
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_PEASANT, 0, 0, 1, 62, 0, 100, 0, 9541, 0, 0, 0, 33, 27472, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, ''), | |
(@ENTRY_PEASANT, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, ''); | |
-- forgotten rifleman sai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `creature_template` SET ainame='SmartAI' WHERE `entry`= 35116; | |
UPDATE `creature_template` SET ainame='SmartAI' WHERE `entry`= 35127; | |
DELETE FROM `creature_text` WHERE `entry`=35116; | |
INSERT INTO `creature_text` VALUES | |
(35116,0,0, 'What do you think you\'re doing? ',12,0,0,1,0,0, ''), | |
(35116,1,0, 'You\'re too late to stop our plan.',12,0,0,1,0,0, ''), | |
(35116,2,0, 'See to it that I\'m not followed.',12,0,0,1,0,0, ''); | |
DELETE FROM `creature_text` WHERE `entry`=35127; | |
INSERT INTO `creature_text` VALUES | |
(35127,0,0, 'Gladly',12,0,1,0,0,0, ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @Frostweaver := 19579; | |
SET @Hatless := 19545; | |
SET @Credit := 19550; | |
SET @Event := 12610; | |
UPDATE `quest_template` SET `RequiredSpellCast1`=0 WHERE `Id`=10307; | |
DELETE FROM `event_scripts` WHERE `id`=@Event; | |
INSERT INTO `event_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`x`,`y`,`z`,`o`) VALUES | |
(@Event,0,10,@Frostweaver,25000,2203.629883,2413.392090,109.257515,3.961037); | |
UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry`= @Hatless; | |
DELETE FROM `creature_ai_scripts` WHERE creature_id = @Hatless; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @LAMENTER := 39048; | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@LAMENTER; | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@LAMENTER AND `source_type`=0; | |
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 | |
(@LAMENTER, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 4, 15095, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @ENTRY := 8479; | |
SET @QUEST := 3453; | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; | |
UPDATE `quest_template` SET `StartScript`=0,`CompleteScript`=0 WHERE `entry`=@QUEST; | |
DELETE FROM `quest_start_scripts` WHERE `id`=@QUEST; | |
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@ENTRY,@ENTRY*100); | |
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,19,0,100,0,@QUEST,0,0,0,80,@ENTRY*100,0,2,0,0,0,1,0,0,0,0,0,0,0,"Kalaran Windblade - On Quest Accept - Run Script"), | |
(@ENTRY*100,9,0,0,0,0,100,0,10000,10000,0,0,11,12511,0,0,0,0,0,1,0,0,0,0,0,0,0,"Kalaran Windblade - On Script - Cast Torch Combine"), | |
(@ENTRY*100,9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @MAIDEN := 33220; | |
SET @FROG := 33224; | |
SET @FROG_BAD := 33211; | |
SET @SPELL_TRANSFORM := 62550; | |
SET @SPELL_SWORD := 62554; | |
SET @SPELL_KISS := 62536; | |
SET @SPELL_FROG_LOVE := 62537; | |
SET @SPELL_WARTS := 62581; | |
SET @SPELL_BALM := 62574; | |
SET @GUID := 1022683; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SET @SPELL := 45474; | |
SET @GUARD := 25342; | |
SET @WORKER := 25343; | |
DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid` IN (@GUARD,@WORKER) AND `id` IN (2,3); | |
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`) VALUES | |
(@GUARD,0,2,3,8,0,100,0,@SPELL,0,0,0,33,@GUARD,0,0,0,0,0,7,0,0,0,0,0,0,0), | |
(@GUARD,0,3,0,61,0,100,0,0,0,0,0,41,500,0,0,0,0,0,1,0,0,0,0,0,0,0), | |
(@WORKER,0,2,3,8,0,100,0,@SPELL,0,0,0,33,@GUARD,0,0,0,0,0,7,0,0,0,0,0,0,0), | |
(@WORKER,0,3,0,61,0,100,0,0,0,0,0,41,500,0,0,0,0,0,1,0,0,0,0,0,0,0); | |
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=@SPELL AND `ConditionTypeOrReference`=36;@ |