diff options
author | Killyana <morphone1@gmail.com> | 2017-11-05 23:24:23 +0100 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2017-11-05 23:24:23 +0100 |
commit | 48958d9e30cdf2308c7c060bec560550adf093c5 (patch) | |
tree | 2a24d0dbdfd4b15caee207f63e308a26281d67a4 | |
parent | 63c29e446fdfe9208bf45c7266ef0c1176c2a70d (diff) |
DB/Creature: Set prepared weapon for npcs using waypoints
Closes #20729
-rw-r--r-- | sql/updates/world/3.3.5/2017_11_05_01_world.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2017_11_05_01_world.sql b/sql/updates/world/3.3.5/2017_11_05_01_world.sql new file mode 100644 index 00000000000..562a0e4c249 --- /dev/null +++ b/sql/updates/world/3.3.5/2017_11_05_01_world.sql @@ -0,0 +1,3 @@ +-- +UPDATE `creature_addon` SET `bytes2`=2 WHERE `path_id` > 0 AND `guid` IN ( SELECT `guid` FROM `creature` WHERE `id` IN (SELECT `CreatureID` FROM `creature_equip_template` WHERE `ItemID1`=0 AND `ItemID2`=0 AND `ItemID3`>0)) AND `bytes2`=0; +UPDATE `creature_addon` SET `bytes2`=1 WHERE `path_id` > 0 AND `guid` IN ( SELECT `guid` FROM `creature` WHERE `id` IN (SELECT `CreatureID` FROM `creature_equip_template` WHERE `ItemID1`>0)) AND `bytes2`=0; |