aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXyventh <Xyventh@users.noreply.github.com>2017-04-24 17:33:54 +0200
committerfunjoker <funjoker109@gmail.com>2020-04-28 12:56:08 +0200
commitd762d39d7c7d1dfef56d74dc4a0a8449359d04bc (patch)
treecaa68398528d934edae10c4228f3ab39a3137edf
parent9620869bb70c855368596f4011df8e3a99b66527 (diff)
DB/Creature: R-3D0
Closes #19506 (cherry picked from commit caed8b43c8913122429d2d2bcbc9ddcfc3b8328a)
-rw-r--r--sql/updates/world/master/2020_04_27_02_world_2017_04_24_05_world.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/updates/world/master/2020_04_27_02_world_2017_04_24_05_world.sql b/sql/updates/world/master/2020_04_27_02_world_2017_04_24_05_world.sql
new file mode 100644
index 00000000000..59deb42d81a
--- /dev/null
+++ b/sql/updates/world/master/2020_04_27_02_world_2017_04_24_05_world.sql
@@ -0,0 +1,13 @@
+SET @R3D0 := 21690;
+
+UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@R3D0;
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@R3D0, @R3D0*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
+(@R3D0, 0, 0, 0, 64, 0, 100, 0, 0, 0, 0, 0, 80, 2169000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "R-3D0 - On Gossip Hello - Call Actionlist"),
+(@R3D0*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 91, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "R-3D0 - On Script - Remove Standstate Sleep"),
+(@R3D0*100, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "R-3D0 - On Script - Talk"),
+(@R3D0*100, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 90, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "R-3D0 - On Gossip Hello - Set Standstate Sleep");
+
+DELETE FROM `creature_text` WHERE `CreatureId`=@R3D0;
+INSERT INTO `creature_text` (`CreatureId`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
+(@R3D0, 0, 0, "WARNING! WARNING! AWAY HOSTILE BEINGS! DO NOT HEAD UP THE RIDGE TO TOSHLEY'S STATION!", 12, 0, 100, 35, 0, 0, 19311, 0, "R-3D0");