diff options
author | Dr-J <daniel.jarrott0@gmail.com> | 2016-09-26 13:22:01 +0100 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-03-03 23:31:16 +0100 |
commit | 24c755f4847259f07d33d5c562da301896d7a0e7 (patch) | |
tree | 4dd537df9cd510d5f34e36ae557a00786e92a3f4 | |
parent | e465465c675d581b23e61471dd6256a3c3932a8f (diff) |
DB/SAI: Several improvements to escape from Silverbrook script
* Ducals horse will no longer start wp when the freed alliance prisoner mounts wp will now only start when player mounts
* Quest credit given to stored target rather than closest player on wp complete
* On player dismounting or player not mounting for 5 mins after spawn will cause ducals horse to despawn
* Silverbrook Worgen will despawn when OOC rather than these building up making quest harder for next player.
(cherry picked from commit 6c351c5160ec28bab439d51670f552f452ec5489)
-rw-r--r-- | sql/updates/world/master/2017_03_03_16_world_2016_09_26_03_world.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_03_03_16_world_2016_09_26_03_world.sql b/sql/updates/world/master/2017_03_03_16_world_2016_09_26_03_world.sql new file mode 100644 index 00000000000..81a2584bbe0 --- /dev/null +++ b/sql/updates/world/master/2017_03_03_16_world_2016_09_26_03_world.sql @@ -0,0 +1,15 @@ +DELETE FROM `smart_scripts` WHERE `entryorguid`=27409 AND `source_type`=0 AND `id`>7; +DELETE FROM `smart_scripts` WHERE `entryorguid`=27417 AND `source_type`=0 AND `id`=2; + +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 +(27409, 0, 8, 0, 27, 0, 100, 512, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ducal\'s Horse - On Passenger Boarded - Set Phase 2'), +(27409, 0, 9, 0, 28, 0, 100, 512, 0, 0, 0, 0, 41, 500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ducal\'s Horse - On Passenger Removed - Despawn'), +(27409, 0, 10, 0, 27, 2, 100, 512, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ducal\'s Horse - On Passenger Boarded (Phase 2) - Store Targetlist'), +(27409, 0, 11, 12, 1, 0, 100, 512, 300000, 300000, 300000, 300000, 41, 0, 0, 0, 0, 0, 0, 19, 27411, 0, 0, 0, 0, 0, 0, 'Ducal\'s Horse - OOC - Despawn'), +(27409, 0, 12, 0, 61, 0, 100, 512, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Ducal\'s Horse - OOC - Despawn'), + +(27417, 0, 2, 0, 1, 0, 100, 0, 5000, 5000, 5000, 5000, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Silverbrook Worgen - OOC - Despawn'); + +UPDATE `smart_scripts` SET `event_phase_mask`=2, `comment`='Ducal\'s Horse - On Passenger Boarded (Phase 2) - Run Script' WHERE `entryorguid`=27409 AND `source_type`=0 AND `id`=0 AND `link`=1; +UPDATE `smart_scripts` SET `action_type`=85, `action_param3`=1, `target_type`=12, `target_param1`=1 WHERE `entryorguid`=27409 AND `source_type`=0 AND `id`=5 AND `link`=6; +UPDATE `smart_scripts` SET `event_param1`=0, `event_param2`=0, `event_param3`=0, `event_param4`=0 WHERE `entryorguid`=2740900 AND `source_type`=9 AND `id`=0 AND `link`=0; |