diff --git a/data/sql/updates/pending_db_world/rev_1689199652093827600.sql b/data/sql/updates/pending_db_world/rev_1689199652093827600.sql new file mode 100644 index 000000000..ae62016a2 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1689199652093827600.sql @@ -0,0 +1,389 @@ +-- Change from SMART_EVENT_RANGE to SMART_EVENT_AREA_RANGE +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=2276 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=2335 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=2377 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=25000, `event_param2`=25000, `event_param3`=25000, `event_param4`=25000, `event_param5`=5 WHERE `entryorguid`=2387 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=7000, `event_param2`=15000, `event_param3`=7000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=2646 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=19000, `event_param3`=12000, `event_param4`=19000, `event_param5`=5 WHERE `entryorguid`=4469 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=3500, `event_param2`=5000, `event_param3`=3500, `event_param4`=5000, `event_param5`=10 WHERE `entryorguid`=4648 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=15000, `event_param3`=13000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=6195 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=180000, `event_param2`=180000, `event_param3`=180000, `event_param4`=180000, `event_param5`=5 WHERE `entryorguid`=7092 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=16000, `event_param3`=10000, `event_param4`=16000, `event_param5`=9 WHERE `entryorguid`=7357 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15000, `event_param2`=18000, `event_param3`=15000, `event_param4`=18000, `event_param5`=8 WHERE `entryorguid`=8211 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=14000, `event_param3`=9000, `event_param4`=14000, `event_param5`=30 WHERE `entryorguid`=8219 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=14000, `event_param3`=9000, `event_param4`=14000, `event_param5`=30 WHERE `entryorguid`=8296 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=20000, `event_param2`=30000, `event_param3`=20000, `event_param4`=30000, `event_param5`=10 WHERE `entryorguid`=8400 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=16000, `event_param3`=13000, `event_param4`=16000, `event_param5`=8 WHERE `entryorguid`=8578 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8000, `event_param2`=12000, `event_param3`=8000, `event_param4`=12000, `event_param5`=8 WHERE `entryorguid`=8900 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=11000, `event_param3`=9000, `event_param4`=11000, `event_param5`=30 WHERE `entryorguid`=8911 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=20000, `event_param2`=22000, `event_param3`=20000, `event_param4`=22000, `event_param5`=8 WHERE `entryorguid`=8913 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=20000, `event_param3`=16000, `event_param4`=20000, `event_param5`=8 WHERE `entryorguid`=8913 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=20000, `event_param3`=10000, `event_param4`=20000, `event_param5`=10 WHERE `entryorguid`=9376 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=18000, `event_param3`=12000, `event_param4`=18000, `event_param5`=8 WHERE `entryorguid`=10647 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=2000, `event_param2`=4000, `event_param3`=2000, `event_param4`=4000, `event_param5`=5 WHERE `entryorguid`=11353 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=19000, `event_param3`=10000, `event_param4`=19000, `event_param5`=9 WHERE `entryorguid`=11466 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=13000, `event_param3`=9000, `event_param4`=13000, `event_param5`=9 WHERE `entryorguid`=11484 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=11804 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=25000, `event_param2`=30000, `event_param3`=25000, `event_param4`=30000, `event_param5`=5 WHERE `entryorguid`=11859 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=15000, `event_param3`=13000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=11883 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15000, `event_param2`=25000, `event_param3`=15000, `event_param4`=25000, `event_param5`=10 WHERE `entryorguid`=12420 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=19000, `event_param2`=23000, `event_param3`=19000, `event_param4`=23000, `event_param5`=30 WHERE `entryorguid`=12475 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=14324 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=19000, `event_param3`=13000, `event_param4`=19000, `event_param5`=6 WHERE `entryorguid`=14324 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=14349 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=3000, `event_param2`=5000, `event_param3`=3000, `event_param4`=5000, `event_param5`=9 WHERE `entryorguid`=14397 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=18000, `event_param3`=12000, `event_param4`=18000, `event_param5`=5 WHERE `entryorguid`=14477 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=15000, `event_param3`=13000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=15213 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=8 WHERE `entryorguid`=15308 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=8 WHERE `entryorguid`=15308 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=11000, `event_param2`=16000, `event_param3`=11000, `event_param4`=16000, `event_param5`=8 WHERE `entryorguid`=16308 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=19000, `event_param2`=23000, `event_param3`=19000, `event_param4`=23000, `event_param5`=8 WHERE `entryorguid`=16943 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=17195 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=10 WHERE `entryorguid`=17359 AND `source_type`=0 AND `id`=8 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=18000, `event_param3`=13000, `event_param4`=18000, `event_param5`=8 WHERE `entryorguid`=17722 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=18000, `event_param3`=13000, `event_param4`=18000, `event_param5`=8 WHERE `entryorguid`=17722 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15500, `event_param2`=18500, `event_param3`=15500, `event_param4`=18500, `event_param5`=8 WHERE `entryorguid`=17833 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=10000, `event_param3`=10000, `event_param4`=10000, `event_param5`=9 WHERE `entryorguid`=17892 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=10000, `event_param3`=10000, `event_param4`=10000, `event_param5`=9 WHERE `entryorguid`=17892 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=6000, `event_param2`=7700, `event_param3`=6000, `event_param4`=7700, `event_param5`=10 WHERE `entryorguid`=17963 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=6000, `event_param2`=7700, `event_param3`=6000, `event_param4`=7700, `event_param5`=10 WHERE `entryorguid`=17963 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=5 WHERE `entryorguid`=18401 AND `source_type`=0 AND `id`=2 AND `link`=8; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=3600, `event_param2`=8400, `event_param3`=3600, `event_param4`=8400, `event_param5`=8 WHERE `entryorguid`=18420 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8000, `event_param2`=15000, `event_param3`=8000, `event_param4`=15000, `event_param5`=10 WHERE `entryorguid`=18681 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=16000, `event_param3`=12000, `event_param4`=16000, `event_param5`=10 WHERE `entryorguid`=18681 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8500, `event_param2`=18000, `event_param3`=8500, `event_param4`=18000, `event_param5`=10 WHERE `entryorguid`=18685 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=19000, `event_param2`=23000, `event_param3`=19000, `event_param4`=23000, `event_param5`=8 WHERE `entryorguid`=18698 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=8 WHERE `entryorguid`=18882 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=14000, `event_param3`=12000, `event_param4`=14000, `event_param5`=30 WHERE `entryorguid`=19354 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=19494 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15000, `event_param2`=18000, `event_param3`=15000, `event_param4`=18000, `event_param5`=8 WHERE `entryorguid`=19593 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=16000, `event_param3`=12000, `event_param4`=16000, `event_param5`=8 WHERE `entryorguid`=19657 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=14000, `event_param2`=18000, `event_param3`=14000, `event_param4`=18000, `event_param5`=10 WHERE `entryorguid`=19738 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=19830 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=19881 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10800, `event_param2`=25300, `event_param3`=10800, `event_param4`=25300, `event_param5`=8 WHERE `entryorguid`=20059 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=11000, `event_param2`=15000, `event_param3`=11000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=20135 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=15000, `event_param3`=9000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=20163 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=16500, `event_param3`=12000, `event_param4`=16500, `event_param5`=10 WHERE `entryorguid`=20795 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=10000, `event_param3`=10000, `event_param4`=10000, `event_param5`=10 WHERE `entryorguid`=21136 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=10000, `event_param3`=10000, `event_param4`=10000, `event_param5`=10 WHERE `entryorguid`=21136 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9800, `event_param2`=18400, `event_param3`=9800, `event_param4`=18400, `event_param5`=9 WHERE `entryorguid`=21148 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8000, `event_param2`=13000, `event_param3`=8000, `event_param4`=13000, `event_param5`=20 WHERE `entryorguid`=21181 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=10 WHERE `entryorguid`=21228 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=14000, `event_param3`=9000, `event_param4`=14000, `event_param5`=10 WHERE `entryorguid`=21695 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8000, `event_param2`=11000, `event_param3`=8000, `event_param4`=11000, `event_param5`=10 WHERE `entryorguid`=22081 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=13000, `event_param2`=23000, `event_param3`=13000, `event_param4`=23000, `event_param5`=10 WHERE `entryorguid`=22281 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=21000, `event_param3`=16000, `event_param4`=21000, `event_param5`=10 WHERE `entryorguid`=22344 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=20000, `event_param2`=20000, `event_param3`=20000, `event_param4`=20000, `event_param5`=8 WHERE `entryorguid`=24685 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=20000, `event_param2`=20000, `event_param3`=20000, `event_param4`=20000, `event_param5`=8 WHERE `entryorguid`=24685 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=26271 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=26272 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=15000, `event_param3`=12000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=26493 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=8000, `event_param2`=13000, `event_param3`=8000, `event_param4`=13000, `event_param5`=5 WHERE `entryorguid`=26605 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=18000, `event_param2`=21000, `event_param3`=18000, `event_param4`=21000, `event_param5`=8 WHERE `entryorguid`=26681 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=8000, `event_param3`=5000, `event_param4`=8000, `event_param5`=5 WHERE `entryorguid`=26711 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=12000, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=26762 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=24000, `event_param2`=28000, `event_param3`=24000, `event_param4`=28000, `event_param5`=10 WHERE `entryorguid`=26828 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=7000, `event_param2`=11000, `event_param3`=7000, `event_param4`=11000, `event_param5`=5 WHERE `entryorguid`=27002 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=21000, `event_param3`=16000, `event_param4`=21000, `event_param5`=5 WHERE `entryorguid`=27249 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15000, `event_param2`=20000, `event_param3`=15000, `event_param4`=20000, `event_param5`=10 WHERE `entryorguid`=27383 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=14000, `event_param2`=20000, `event_param3`=14000, `event_param4`=20000, `event_param5`=10 WHERE `entryorguid`=27633 AND `source_type`=0 AND `id`=18 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=40 WHERE `entryorguid`=27635 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=40 WHERE `entryorguid`=27635 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=3400, `event_param2`=4800, `event_param3`=3400, `event_param4`=4800, `event_param5`=35 WHERE `entryorguid`=27653 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=3400, `event_param2`=4800, `event_param3`=3400, `event_param4`=4800, `event_param5`=35 WHERE `entryorguid`=27653 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=7000, `event_param2`=15000, `event_param3`=7000, `event_param4`=15000, `event_param5`=10 WHERE `entryorguid`=29382 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=4000, `event_param2`=7000, `event_param3`=4000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=29770 AND `source_type`=0 AND `id`=21 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=4000, `event_param2`=7000, `event_param3`=4000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=29858 AND `source_type`=0 AND `id`=7 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=12000, `event_param2`=24000, `event_param3`=12000, `event_param4`=24000, `event_param5`=10 WHERE `entryorguid`=29984 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=29984 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=15000, `event_param2`=21000, `event_param3`=15000, `event_param4`=21000, `event_param5`=5 WHERE `entryorguid`=30022 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=5 WHERE `entryorguid`=30414 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=16000, `event_param2`=19000, `event_param3`=16000, `event_param4`=19000, `event_param5`=5 WHERE `entryorguid`=30414 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=5000, `event_param2`=7000, `event_param3`=5000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=30445 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=30000, `event_param2`=45000, `event_param3`=30000, `event_param4`=45000, `event_param5`=10 WHERE `entryorguid`=30725 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=18000, `event_param2`=25000, `event_param3`=18000, `event_param4`=25000, `event_param5`=8 WHERE `entryorguid`=30956 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=15000, `event_param3`=9000, `event_param4`=15000, `event_param5`=8 WHERE `entryorguid`=31007 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=18000, `event_param2`=25000, `event_param3`=18000, `event_param4`=25000, `event_param5`=8 WHERE `entryorguid`=31161 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=10000, `event_param2`=16000, `event_param3`=10000, `event_param4`=16000, `event_param5`=8 WHERE `entryorguid`=32228 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=20000, `event_param2`=35000, `event_param3`=20000, `event_param4`=35000, `event_param5`=10 WHERE `entryorguid`=37976 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param1`=9000, `event_param2`=14000, `event_param3`=9000, `event_param4`=14000, `event_param5`=10 WHERE `entryorguid`=40417 AND `source_type`=0 AND `id`=2 AND `link`=0; +-- IC -> AreaRange +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=545 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4805 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=507 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2573 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2761 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2793 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4831 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4978 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=6047 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=127 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=314 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=875 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1364 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1889 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1958 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2306 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2567 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=3436 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=3717 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4460 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4494 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=4844 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=5291 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=8902 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=8904 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18087 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18588 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=19413 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=19545 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=21660 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=25448 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=29490 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30746 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=32257 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=-54079 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=9038 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=9041 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=10419 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=19257 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=19258 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1768 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=3260 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=2776 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=10516 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=12876 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=13256 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=14457 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=15211 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18794 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=21730 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=26232 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30286 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=7358 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=14693 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=17771 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=21385 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1852 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=7353 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=9717 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=9818 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18794 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=24029 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30632 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1832 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=9693 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18499 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18558 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=8717 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=10263 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=14101 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=15623 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=10425 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=11257 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18315 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30475 AND `source_type`=0 AND `id`=10 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=10432 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=11664 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=12465 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=14354 AND `source_type`=0 AND `id`=22 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=15206 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18499 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18558 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=1795 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=14460 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=16215 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=15 WHERE `entryorguid`=16165 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=16165 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=17771 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=25720 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=21274 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=25073 AND `source_type`=0 AND `id`=12 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=18315 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=33838 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=22238 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=30 WHERE `entryorguid`=20911 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=12 WHERE `entryorguid`=25367 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30003 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30409 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=29822 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=30286 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=33819 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=15 WHERE `entryorguid`=36499 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=37576 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=37579 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=-201482 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=37664 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=106, `event_param5`=10 WHERE `entryorguid`=37229 AND `source_type`=0 AND `id`=1 AND `link`=0; + +-- Change VICTIM_CASTING to AREA_CASTING +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=-54069 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=15000, `event_param4`=20000, `event_param5`=5 WHERE `entryorguid`=587 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=1706 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=30000, `event_param4`=30000, `event_param5`=5 WHERE `entryorguid`=3129 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=40000, `event_param4`=40000, `event_param5`=5 WHERE `entryorguid`=3192 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=12000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=3739 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=11000, `event_param5`=5 WHERE `entryorguid`=4298 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=8000, `event_param5`=5 WHERE `entryorguid`=4442 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=11000, `event_param4`=11000, `event_param5`=5 WHERE `entryorguid`=4849 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=30000, `event_param4`=30000, `event_param5`=5 WHERE `entryorguid`=5809 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=0, `event_param4`=0, `event_param5`=30 WHERE `entryorguid`=9451 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=10418 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=20000, `event_param5`=30 WHERE `entryorguid`=10472 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9000, `event_param4`=12000, `event_param5`=30 WHERE `entryorguid`=11486 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=14321 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=14323 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=14326 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=20000, `event_param5`=30 WHERE `entryorguid`=15527 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=25000, `event_param4`=25000, `event_param5`=30 WHERE `entryorguid`=17146 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=13000, `event_param4`=16000, `event_param5`=5 WHERE `entryorguid`=17671 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=4600, `event_param4`=4600, `event_param5`=5 WHERE `entryorguid`=17735 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=20000, `event_param4`=30000, `event_param5`=5 WHERE `entryorguid`=17765 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=20000, `event_param4`=30000, `event_param5`=5 WHERE `entryorguid`=17766 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=12000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=18309 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=12000, `event_param4`=15000, `event_param5`=30 WHERE `entryorguid`=18312 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=12000, `event_param4`=15000, `event_param5`=30 WHERE `entryorguid`=18429 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=18556 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9600, `event_param4`=16900, `event_param5`=30 WHERE `entryorguid`=18639 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=19873 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=10000, `event_param5`=50 WHERE `entryorguid`=20040 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=15000, `event_param4`=15000, `event_param5`=30 WHERE `entryorguid`=20908 AND `source_type`=0 AND `id`=9 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=21273 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=10000, `event_param5`=45 WHERE `entryorguid`=21806 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=23216 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=12000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=23236 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=9000, `event_param5`=5 WHERE `entryorguid`=26620 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=8000, `event_param4`=12000, `event_param5`=30 WHERE `entryorguid`=26730 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=16000, `event_param4`=20000, `event_param5`=5 WHERE `entryorguid`=30160 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `target_param1`=0, `event_param3`=12000, `event_param4`=18000, `event_param5`=30 WHERE `entryorguid`=30180 AND `source_type`=0 AND `id`=11 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=30865 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param3`=10000, `event_param4`=15000, `event_param5`=30 WHERE `entryorguid`=31779 AND `source_type`=0 AND `id`=3 AND `link`=0; +-- Change interrupt spells from UPDATE_IC to AREA_CASTING +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1540 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1664 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=3385 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1036 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=5851 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=121 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=667 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1894 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2243 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2547 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2584 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=3129 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=3192 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=4328 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=4481 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=5809 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=5999 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=7091 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=7113 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=8890 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9097 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9260 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9819 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10509 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10681 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10696 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10952 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=11682 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=13118 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=15128 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=15130 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=16250 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=16305 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=16904 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=17304 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=17727 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=18498 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=19320 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=20878 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=24819 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=30829 AND `source_type`=0 AND `id`=6 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=17401 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=18642 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=19852 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=17612 AND `source_type`=0 AND `id`=13 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=30 WHERE `entryorguid`=22342 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=19510 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=24214 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=24215 AND `source_type`=0 AND `id`=4 AND `link`=0; +-- IC -> AREA_CASTING +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1563 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=4845 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=6005 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9056 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=12380 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=16867 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=16964 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=17397 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=18117 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=18123 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=20723 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=23760 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=449 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=745 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=1491 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2421 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2431 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2599 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=2893 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=5808 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9164 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=-48172 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9545 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=22143 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9265 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9319 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=9583 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10080 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10997 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=17672 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=10758 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=21254 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=23582 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=-118748 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=-118747 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=-118746 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param5`=5 WHERE `entryorguid`=31193 AND `source_type`=0 AND `id`=1 AND `link`=0; +-- Target_Casting -> AreaCasting +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8000, `event_param2`=13000, `event_param3`=8000, `event_param4`=13000, `event_param5`=5 WHERE `entryorguid`=-52144 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=7000, `event_param2`=7000, `event_param3`=7000, `event_param4`=7000, `event_param5`=5 WHERE `entryorguid`=4540 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=13000, `event_param2`=15000, `event_param3`=13000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=8892 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8000, `event_param2`=13000, `event_param3`=8000, `event_param4`=13000, `event_param5`=5 WHERE `entryorguid`=11043 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=4500, `event_param2`=14000, `event_param3`=4500, `event_param4`=14000, `event_param5`=5 WHERE `entryorguid`=23665 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=5000, `event_param2`=5000, `event_param3`=5000, `event_param4`=5000, `event_param5`=5 WHERE `entryorguid`=3393 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6000, `event_param2`=21000, `event_param3`=6000, `event_param4`=21000, `event_param5`=5 WHERE `entryorguid`=4961 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=10000, `event_param2`=12000, `event_param3`=10000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=6391 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=11000, `event_param2`=15000, `event_param3`=11000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=8979 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=11000, `event_param2`=15000, `event_param3`=11000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=9605 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=10000, `event_param2`=10000, `event_param3`=10000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=10391 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=12369 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=17000, `event_param2`=24000, `event_param3`=17000, `event_param4`=24000, `event_param5`=5 WHERE `entryorguid`=26357 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=14000, `event_param2`=17000, `event_param3`=14000, `event_param4`=17000, `event_param5`=5 WHERE `entryorguid`=27260 AND `source_type`=0 AND `id`=5 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=14000, `event_param2`=17000, `event_param3`=14000, `event_param4`=17000, `event_param5`=5 WHERE `entryorguid`=27727 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=5000, `event_param2`=10000, `event_param3`=5000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=18631 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8000, `event_param2`=10000, `event_param3`=8000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=11082 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=10000, `event_param2`=20000, `event_param3`=10000, `event_param4`=20000, `event_param5`=5 WHERE `entryorguid`=11441 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6000, `event_param2`=11000, `event_param3`=6000, `event_param4`=11000, `event_param5`=5 WHERE `entryorguid`=11461 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=10000, `event_param2`=15000, `event_param3`=10000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=16700 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6900, `event_param2`=9500, `event_param3`=6900, `event_param4`=9500, `event_param5`=5 WHERE `entryorguid`=17400 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6900, `event_param2`=9500, `event_param3`=6900, `event_param4`=9500, `event_param5`=5 WHERE `entryorguid`=18894 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8000, `event_param2`=10000, `event_param3`=8000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=15621 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `target_param1`=0, `event_param1`=8000, `event_param2`=12000, `event_param3`=8000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=16406 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `target_param1`=0, `event_param1`=8000, `event_param2`=12000, `event_param3`=8000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=16410 AND `source_type`=0 AND `id`=4 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8400, `event_param2`=19300, `event_param3`=8400, `event_param4`=19300, `event_param5`=5 WHERE `entryorguid`=18497 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6000, `event_param2`=15000, `event_param3`=6000, `event_param4`=15000, `event_param5`=5 WHERE `entryorguid`=16593 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=8000, `event_param2`=8000, `event_param3`=8000, `event_param4`=8000, `event_param5`=5 WHERE `entryorguid`=21232 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=6000, `event_param2`=10000, `event_param3`=6000, `event_param4`=10000, `event_param5`=5 WHERE `entryorguid`=22959 AND `source_type`=0 AND `id`=0 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=9000, `event_param2`=12000, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=26965 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=13000, `event_param2`=16000, `event_param3`=13000, `event_param4`=16000, `event_param5`=10 WHERE `entryorguid`=27964 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=9000, `event_param2`=13000, `event_param3`=9000, `event_param4`=13000, `event_param5`=5 WHERE `entryorguid`=29062 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=14000, `event_param2`=17000, `event_param3`=14000, `event_param4`=17000, `event_param5`=5 WHERE `entryorguid`=29096 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=14000, `event_param2`=17000, `event_param3`=14000, `event_param4`=17000, `event_param5`=5 WHERE `entryorguid`=29117 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=3000, `event_param2`=3000, `event_param3`=3000, `event_param4`=3000, `event_param5`=5 WHERE `entryorguid`=30682 AND `source_type`=0 AND `id`=1 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=13000, `event_param2`=16000, `event_param3`=13000, `event_param4`=16000, `event_param5`=10 WHERE `entryorguid`=27964 AND `source_type`=0 AND `id`=2 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=9000, `event_param2`=13000, `event_param3`=9000, `event_param4`=13000, `event_param5`=5 WHERE `entryorguid`=29062 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=9000, `event_param2`=12000, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=29096 AND `source_type`=0 AND `id`=3 AND `link`=0; +UPDATE `smart_scripts` SET `event_type`=105, `target_type`=7, `event_param1`=9000, `event_param2`=12000, `event_param3`=9000, `event_param4`=12000, `event_param5`=5 WHERE `entryorguid`=29117 AND `source_type`=0 AND `id`=3 AND `link`=0; diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 53f46cfcd..41889c9be 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -2875,6 +2875,18 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u break; } + case SMART_ACTION_PLAY_SPELL_VISUAL: + { + for (WorldObject* target : targets) + { + if (IsUnit(target)) + { + if (e.action.spellVisual.visualId) + target->ToUnit()->SendPlaySpellVisual(e.action.spellVisual.visualId); + } + } + break; + } default: LOG_ERROR("sql.sql", "SmartScript::ProcessAction: Entry {} SourceType {}, Event {}, Unhandled Action type {}", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); break; @@ -3679,7 +3691,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui ProcessTimedAction(e, e.event.rangeRepeat.repeatMin, e.event.rangeRepeat.repeatMax, me->GetVictim()); } else - RecalcTimer(e, 500, 500); // make it predictable + RecalcTimer(e, 1200, 1200); // make it predictable break; } @@ -4240,7 +4252,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui playerCount++; } - if (playerCount <= e.event.nearPlayerNegation.maxCount) + if (playerCount < e.event.nearPlayerNegation.maxCount) ProcessAction(e, unit); } RecalcTimer(e, e.event.nearPlayerNegation.repeatMin, e.event.nearPlayerNegation.repeatMax); @@ -4277,6 +4289,37 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui RecalcTimer(e, e.event.nearUnit.timer, e.event.nearUnit.timer); break; } + case SMART_EVENT_NEAR_UNIT_NEGATION: + { + uint32 unitCount = 0; + ObjectVector targets; + GetWorldObjectsInDist(targets, static_cast(e.event.nearUnitNegation.range)); + + if (!targets.empty()) + { + if (e.event.nearUnitNegation.type) + { + for (WorldObject* target : targets) + { + if (IsGameObject(target) && target->GetEntry() == e.event.nearUnitNegation.entry) + unitCount++; + } + } + else + { + for (WorldObject* target : targets) + { + if (IsCreature(target) && target->GetEntry() == e.event.nearUnitNegation.entry) + unitCount++; + } + } + + if (unitCount < e.event.nearUnitNegation.count) + ProcessAction(e, unit); + } + RecalcTimer(e, e.event.nearUnitNegation.timer, e.event.nearUnitNegation.timer); + break; + } case SMART_EVENT_AREA_CASTING: { if (!me || !me->IsEngaged()) @@ -4288,25 +4331,45 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui { if (Unit* target = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid())) { + if (!target || target->IsPet() || target->IsTotem() || !target->IsNonMeleeSpellCast(false, false, true)) + continue; + if (e.event.areaCasting.range && !me->IsWithinDistInMap(target, range)) continue; - if (!target || !target->IsNonMeleeSpellCast(false, false, true)) + ProcessAction(e, target); + RecalcTimer(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMax); + return; + } + + // If no targets are found and it's off cooldown, check again in 1200ms + RecalcTimer(e, 1200, 1200); + break; + } + + break; + } + case SMART_EVENT_AREA_RANGE: + { + if (!me || !me->IsEngaged()) + return; + + ThreatContainer::StorageType threatList = me->GetThreatMgr().GetThreatList(); + for (ThreatContainer::StorageType::const_iterator i = threatList.begin(); i != threatList.end(); ++i) + { + if (Unit* target = ObjectAccessor::GetUnit(*me, (*i)->getUnitGuid())) + { + if (!(me->IsInRange(target, 0.f, (float)e.event.areaRange.range))) continue; - if (e.event.areaCasting.spellId > 0) - if (Spell* currSpell = target->GetCurrentSpell(CURRENT_GENERIC_SPELL)) - if (currSpell->m_spellInfo->Id != e.event.areaCasting.spellId) - continue; - ProcessAction(e, target); - RecalcTimer(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMin); + RecalcTimer(e, e.event.areaRange.repeatMin, e.event.areaRange.repeatMax); return; } } // If no targets are found and it's off cooldown, check again - RecalcTimer(e, e.event.areaCasting.checkTimer, e.event.areaCasting.checkTimer); + RecalcTimer(e, 1200, 1200); break; } default: @@ -4325,7 +4388,10 @@ void SmartScript::InitTimer(SmartScriptHolder& e) if (e.event.rangeRepeat.onlyFireOnRepeat == 1) e.event.rangeRepeat.onlyFireOnRepeat = 2; // make it predictable - RecalcTimer(e, 500, 500); + RecalcTimer(e, 1200, 1200); + break; + case SMART_EVENT_AREA_RANGE: + RecalcTimer(e, e.event.areaRange.min, e.event.areaRange.max); break; case SMART_EVENT_NEAR_PLAYERS: case SMART_EVENT_NEAR_PLAYERS_NEGATION: @@ -4346,10 +4412,11 @@ void SmartScript::InitTimer(SmartScriptHolder& e) RecalcTimer(e, e.event.distance.repeat, e.event.distance.repeat); break; case SMART_EVENT_NEAR_UNIT: + case SMART_EVENT_NEAR_UNIT_NEGATION: RecalcTimer(e, e.event.nearUnit.timer, e.event.nearUnit.timer); break; case SMART_EVENT_AREA_CASTING: - RecalcTimer(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMax); + RecalcTimer(e, e.event.areaCasting.min, e.event.areaCasting.max); break; default: e.active = true; @@ -4405,6 +4472,7 @@ void SmartScript::UpdateTimer(SmartScriptHolder& e, uint32 const diff) case SMART_EVENT_NEAR_PLAYERS: case SMART_EVENT_NEAR_PLAYERS_NEGATION: case SMART_EVENT_NEAR_UNIT: + case SMART_EVENT_NEAR_UNIT_NEGATION: case SMART_EVENT_UPDATE: case SMART_EVENT_UPDATE_OOC: case SMART_EVENT_UPDATE_IC: @@ -4413,6 +4481,7 @@ void SmartScript::UpdateTimer(SmartScriptHolder& e, uint32 const diff) case SMART_EVENT_MANA_PCT: case SMART_EVENT_TARGET_MANA_PCT: case SMART_EVENT_RANGE: + case SMART_EVENT_AREA_RANGE: case SMART_EVENT_VICTIM_CASTING: case SMART_EVENT_AREA_CASTING: case SMART_EVENT_FRIENDLY_HEALTH: diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index a8cd9075e..fbd2b6078 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -275,6 +275,10 @@ void SmartAIMgr::LoadSmartAIFromDB() if (temp.event.rangeRepeat.onlyFireOnRepeat > 1) temp.event.rangeRepeat.onlyFireOnRepeat = 1; break; + case SMART_EVENT_AREA_RANGE: + if (temp.event.areaRange.repeatMin == 0 && temp.event.areaRange.repeatMax == 0) + temp.event.event_flags |= SMART_EVENT_FLAG_NOT_REPEATABLE; + break; case SMART_EVENT_VICTIM_CASTING: case SMART_EVENT_IS_BEHIND_TARGET: if (temp.event.minMaxRepeat.min == 0 && temp.event.minMaxRepeat.max == 0) @@ -349,6 +353,7 @@ void SmartAIMgr::LoadSmartAIFromDB() case SMART_EVENT_TARGET_HEALTH_PCT: case SMART_EVENT_TARGET_MANA_PCT: case SMART_EVENT_RANGE: + case SMART_EVENT_AREA_RANGE: case SMART_EVENT_VICTIM_CASTING: case SMART_EVENT_AREA_CASTING: case SMART_EVENT_TARGET_BUFFED: @@ -579,7 +584,9 @@ bool SmartAIMgr::CheckUnusedEventParams(SmartScriptHolder const& e) case SMART_EVENT_NEAR_PLAYERS: return sizeof(SmartEvent::nearPlayer); case SMART_EVENT_NEAR_PLAYERS_NEGATION: return sizeof(SmartEvent::nearPlayerNegation); case SMART_EVENT_NEAR_UNIT: return sizeof(SmartEvent::nearUnit); + case SMART_EVENT_NEAR_UNIT_NEGATION: return sizeof(SmartEvent::nearUnitNegation); case SMART_EVENT_AREA_CASTING: return sizeof(SmartEvent::areaCasting); + case SMART_EVENT_AREA_RANGE: return sizeof(SmartEvent::areaRange); default: LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using an event {} with no unused params specified in SmartAIMgr::CheckUnusedEventParams(), please report this.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.GetEventType()); @@ -773,6 +780,7 @@ bool SmartAIMgr::CheckUnusedActionParams(SmartScriptHolder const& e) case SMART_ACTION_DISABLE: return sizeof(SmartAction::disable); case SMART_ACTION_SET_SCALE: return sizeof(SmartAction::setScale); case SMART_ACTION_SUMMON_RADIAL: return sizeof(SmartAction::radialSummon); + case SMART_ACTION_PLAY_SPELL_VISUAL: return sizeof(SmartAction::spellVisual); default: LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using an action with no unused params specified in SmartAIMgr::CheckUnusedActionParams(), please report this.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType()); @@ -962,6 +970,14 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) if (!IsMinMaxValid(e, e.event.rangeRepeat.repeatMin, e.event.rangeRepeat.repeatMax)) return false; break; + case SMART_EVENT_AREA_RANGE: + if (!IsMinMaxValid(e, e.event.areaRange.min, e.event.areaRange.max)) + return false; + + if (!IsMinMaxValid(e, e.event.areaRange.repeatMin, e.event.areaRange.repeatMax)) + return false; + + break; case SMART_EVENT_SPELLHIT: case SMART_EVENT_SPELLHIT_TARGET: if (e.event.spellHit.spell) @@ -1052,11 +1068,8 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) return false; break; case SMART_EVENT_AREA_CASTING: - if (e.event.areaCasting.spellId > 0 && !sSpellMgr->GetSpellInfo(e.event.areaCasting.spellId)) - { - LOG_ERROR("scripts.ai.sai", "SmartAIMgr: Entry {} SourceType {} Event {} Action {} uses non-existent Spell entry {}, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.event.spellHit.spell); + if (!IsMinMaxValid(e, e.event.areaCasting.min, e.event.areaCasting.max)) return false; - } if (!IsMinMaxValid(e, e.event.areaCasting.repeatMin, e.event.areaCasting.repeatMax)) return false; @@ -1297,6 +1310,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) case SMART_EVENT_GO_STATE_CHANGED: case SMART_EVENT_GO_EVENT_INFORM: case SMART_EVENT_NEAR_UNIT: + case SMART_EVENT_NEAR_UNIT_NEGATION: case SMART_EVENT_TIMED_EVENT_TRIGGERED: case SMART_EVENT_INSTANCE_PLAYER_ENTER: case SMART_EVENT_TRANSPORT_RELOCATE: @@ -1949,6 +1963,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) case SMART_ACTION_DISABLE: case SMART_ACTION_SET_SCALE: case SMART_ACTION_SUMMON_RADIAL: + case SMART_ACTION_PLAY_SPELL_VISUAL: break; default: LOG_ERROR("sql.sql", "SmartAIMgr: Not handled action_type({}), event_type({}), Entry {} SourceType {} Event {}, skipped.", e.GetActionType(), e.GetEventType(), e.entryOrGuid, e.GetScriptType(), e.event_id); diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 6e45ee232..b839e3224 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -209,9 +209,11 @@ enum SMART_EVENT SMART_EVENT_NEAR_PLAYERS = 101, // min, radius, first timer, repeatMin, repeatMax SMART_EVENT_NEAR_PLAYERS_NEGATION = 102, // max, radius, first timer, repeatMin, repeatMax SMART_EVENT_NEAR_UNIT = 103, // type (0: creature 1: gob), entry, count, range, timer - SMART_EVENT_AREA_CASTING = 104, // spellId (0: any), range (0: any), repeatMin, repeatMax, checkTimer + SMART_EVENT_NEAR_UNIT_NEGATION = 104, // type (0: creature 1: gob), entry, count, range, timer + SMART_EVENT_AREA_CASTING = 105, // min, max, repeatMin, repeatMax, range + SMART_EVENT_AREA_RANGE = 106, // min, max, repeatMin, repeatMax, range - SMART_EVENT_AC_END = 105 + SMART_EVENT_AC_END = 107 }; struct SmartEvent @@ -508,13 +510,31 @@ struct SmartEvent struct { - uint32 spellId; + uint32 type; + uint32 entry; + uint32 count; uint32 range; + uint32 timer; + } nearUnitNegation; + + struct + { + uint32 min; + uint32 max; uint32 repeatMin; uint32 repeatMax; - uint32 checkTimer; + uint32 range; } areaCasting; + struct + { + uint32 min; + uint32 max; + uint32 repeatMin; + uint32 repeatMax; + uint32 range; + } areaRange; + struct { uint32 param1; @@ -718,8 +738,9 @@ enum SMART_ACTION SMART_ACTION_DISABLE = 226, // state SMART_ACTION_SET_SCALE = 227, // scale SMART_ACTION_SUMMON_RADIAL = 228, // summonEntry, summonDuration, repetitions, startAngle, stepAngle, dist + SMART_ACTION_PLAY_SPELL_VISUAL = 229, // visualId, visualIdImpact - SMART_ACTION_AC_END = 229, // placeholder + SMART_ACTION_AC_END = 230, // placeholder }; enum class SmartActionSummonCreatureFlags @@ -1416,6 +1437,11 @@ struct SmartAction uint32 stepAngle; uint32 dist; } radialSummon; + + struct + { + uint32 visualId; + } spellVisual; //! Note for any new future actions //! All parameters must have type uint32 @@ -1820,7 +1846,9 @@ const uint32 SmartAIEventMask[SMART_EVENT_AC_END][2] = {SMART_EVENT_NEAR_PLAYERS, SMART_SCRIPT_TYPE_MASK_CREATURE + SMART_SCRIPT_TYPE_MASK_GAMEOBJECT }, {SMART_EVENT_NEAR_PLAYERS_NEGATION, SMART_SCRIPT_TYPE_MASK_CREATURE + SMART_SCRIPT_TYPE_MASK_GAMEOBJECT }, {SMART_EVENT_NEAR_UNIT, SMART_SCRIPT_TYPE_MASK_CREATURE + SMART_SCRIPT_TYPE_MASK_GAMEOBJECT }, - {SMART_EVENT_AREA_CASTING, SMART_SCRIPT_TYPE_MASK_CREATURE } + {SMART_EVENT_NEAR_UNIT_NEGATION, SMART_SCRIPT_TYPE_MASK_CREATURE + SMART_SCRIPT_TYPE_MASK_GAMEOBJECT }, + {SMART_EVENT_AREA_CASTING, SMART_SCRIPT_TYPE_MASK_CREATURE }, + {SMART_EVENT_AREA_RANGE, SMART_SCRIPT_TYPE_MASK_CREATURE } }; enum SmartEventFlags