aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorDiscover- <amort11@hotmail.com>2013-08-15 01:18:10 +0100
committerNay <dnpd.dd@gmail.com>2013-08-15 01:18:10 +0100
commit8c961687a00970eb7c3f347262e56f0e9a58cf83 (patch)
tree5a98e8fa40e5e36afd53ca7a7a5870e8fa5e1734 /sql
parent22d07db886f0bdc42fdffeeef66f5282097f9d0f (diff)
Core/SmartAI: Implement SMART_EVENT_FRIENDLY_HEALTH_PCT.
On current clean TDB, there are a total of 106 creatures using SMART_EVENT_FRIENDLY_HEALTH (non-PCT) which has a flat first parameter, but only 8 of these use the event correctly (and therefore only 8 of them actually work). Closes #10520
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/2013_08_15_00_world_sai.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/updates/world/2013_08_15_00_world_sai.sql b/sql/updates/world/2013_08_15_00_world_sai.sql
new file mode 100644
index 00000000000..36ee8fb12cf
--- /dev/null
+++ b/sql/updates/world/2013_08_15_00_world_sai.sql
@@ -0,0 +1,5 @@
+-- SELECT `entryorguid`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`comment` FROM `smart_scripts` WHERE `event_type`=14;
+UPDATE `smart_scripts` SET `event_type`=74,`event_param2`=`event_param1`,`event_param1`=0,`target_type`=9 WHERE `entryorguid`=20049 AND `id`=4;
+UPDATE `smart_scripts` SET `event_type`=74,`event_param2`=`event_param1`,`event_param1`=0,`target_type`=9 WHERE `entryorguid`=9045 AND `id`=3;
+UPDATE `smart_scripts` SET `event_type`=74,`target_type`=9 WHERE `event_type`=14 AND `event_param1`=0 AND `event_param2` > 0 AND `event_param2` < 100;
+UPDATE `smart_scripts` SET `event_param1`=`event_param2`,`event_param2`=30 WHERE `event_type`=14 AND `event_param2` >= 100;