Created
October 25, 2012 14:53
-
-
Save FALL1N1/3953046 to your computer and use it in GitHub Desktop.
[SAI] The Lost Spirits
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
DELETE FROM creature_ai_scripts WHERE creature_id IN (25321,25322); | |
DELETE FROM creature_ai_texts WHERE entry IN (-899,-898,-900,-901); | |
SET @ENTRY:=25321; | |
UPDATE creature_template SET AIName= 'SmartAI' WHERE entry=@ENTRY; | |
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=@ENTRY; | |
DELETE FROM smart_scripts WHERE source_type=9 AND entryorguid=@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,11,0,100,0,0,0,0,0,22,1,0,0,0,0,0,0,0,0,0,0,0,0,0,'On spawn set phase 1'), | |
(@ENTRY,0,1,0,8,1,100,0,45504,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'On spell hit run script'), | |
(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'set phase 0'), | |
(@ENTRY*100,9,2,0,0,0,100,0,1000,1000,0,0,33,25321,0,0,0,0,0,7,0,0,0,0,0,0,0,'give quest credit'), | |
(@ENTRY*100,9,3,0,0,0,100,0,1000,1000,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'despawn'); | |
SET @ENTRY:=25322; | |
UPDATE creature_template SET AIName= 'SmartAI' WHERE entry=@ENTRY; | |
DELETE FROM smart_scripts WHERE source_type=0 AND entryorguid=@ENTRY; | |
DELETE FROM smart_scripts WHERE source_type=9 AND entryorguid=@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,11,0,100,0,0,0,0,0,22,1,0,0,0,0,0,0,0,0,0,0,0,0,0, 'On spawn set phase 1'), | |
(@ENTRY,0,1,0,8,1,100,0,45504,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'On spell hit run script'), | |
(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 'set phase 0'), | |
(@ENTRY*100,9,2,0,0,0,100,0,1000,1000,0,0,33,25322,0,0,0,0,0,7,0,0,0,0,0,0,0, 'give quest credit'), | |
(@ENTRY*100,9,3,0,0,0,100,0,1000,1000,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'despawn'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment