Created
September 28, 2012 15:03
-
-
Save FALL1N1/3800398 to your computer and use it in GitHub Desktop.
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 | |
SET @RIFLEMAN := 27225; | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY_RIFLEMAN AND `id` IN (0, 1); -- incorrect id's | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@RIFLEMAN; | |
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_RIFLEMAN, 0, 0, 1, 62, 0, 100, 0, 9543, 0, 0, 0, 33, 27471, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, ''), | |
(@ENTRY_RIFLEMAN, 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 kngiht sai | |
SET @KNIGHT := 27224; | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY_KNIGHT AND `id` IN (0, 1); -- incorrect id's | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@KNIGHT; | |
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_KNIGHT, 0, 0, 1, 62, 0, 100, 0, 9544, 0, 0, 0, 33, 27473, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, ''), | |
(@ENTRY_KNIGHT, 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 footman sai | |
SET @FOOTMAN := 27229; | |
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY_FOOTMAN AND `id` IN (0, 1); -- incorrect id's | |
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@FOOTMAN; | |
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_FOOTMAN, 0, 0, 1, 62, 0, 100, 0, 9545, 0, 0, 0, 33, 27474, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, ''), | |
(@ENTRY_FOOTMAN, 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, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment