diff options
| author | Wyreth <Wyreth@users.noreply.github.com> | 2017-10-23 22:49:01 +0200 |
|---|---|---|
| committer | Killyana <morphone1@gmail.com> | 2017-10-23 22:49:01 +0200 |
| commit | a96982532f1e3c00aa6b9edb555f99ac008af536 (patch) | |
| tree | 382c5ca77b909dfec74cc38f057933bf4e6a5487 | |
| parent | 49afd704106e787ea665023fca657bffd9be3ecc (diff) | |
DB/SAI: Brother Sarno
Closes #20690
| -rw-r--r-- | sql/updates/world/3.3.5/2017_10_23_04_world.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2017_10_23_04_world.sql b/sql/updates/world/3.3.5/2017_10_23_04_world.sql new file mode 100644 index 00000000000..15868357995 --- /dev/null +++ b/sql/updates/world/3.3.5/2017_10_23_04_world.sql @@ -0,0 +1,16 @@ +-- +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=7917; +DELETE FROM `smart_scripts` WHERE `entryorguid`=7917 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 +(7917, 0, 0, 1, 10, 0, 100, 0, 1, 10, 40000, 80000, 66, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Brother Sarno - OOC LoS - Face Invoker"), +(7917, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 3000, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Brother Sarno - OOC LoS - Say Line 1"), +(7917, 0, 2, 0, 52, 0, 100, 0, 0, 7917, 0, 0, 66, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Brother Sarno - On Text Over - Reset Orientation"); + +DELETE FROM `creature_text` WHERE `creatureid`=7917; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(7917, 0, 0, "Greetings, $c! Welcome to the Cathedral of Light!", 12, 0, 100, 3, 0, 0, 3988, 0, "Brother Sarno"); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=7917; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22, 1, 7917, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, "", "Execute SAI only if invoker is a player AND"), +(22, 1, 7917, 0, 0, 15, 0, 32, 0, 0, 1, 0, 0, "", "Execute SAI only if invoker is NOT a Death Knight"); |
