aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-05-20 14:26:17 +0100
committerNay <dnpd.dd@gmail.com>2012-05-20 14:26:17 +0100
commit85561f6a3f4b427f5ddcb4d0f2f4f68dbd3928f3 (patch)
tree580534883b42ae10e84853edd2c3c576408423f9
parent2f1f2044afd9b81e7258248c86075b8d355563bc (diff)
DB: Rename .modify rep to .modify reputation (commands table) and fix a possible database startup error with conditions
-rw-r--r--sql/updates/world/2012_05_20_00_world_misc.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/updates/world/2012_05_20_00_world_misc.sql b/sql/updates/world/2012_05_20_00_world_misc.sql
new file mode 100644
index 00000000000..5b96f9881d6
--- /dev/null
+++ b/sql/updates/world/2012_05_20_00_world_misc.sql
@@ -0,0 +1,16 @@
+-- Update mod rep command name
+UPDATE `command` SET
+ `name` = 'modify reputation',
+ `help` = 'Syntax: .modify reputation #repId (#repvalue | $rankname [#delta])\nSets the selected players reputation with faction #repId to #repvalue or to $reprank.\nIf the reputation rank name is provided, the resulting reputation will be the lowest reputation for that rank plus the delta amount, if specified.\nYou can use \'.pinfo rep\' to list all known reputation ids, or use \'.lookup faction $name\' to locate a specific faction id.'
+WHERE `name` = 'modify rep';
+
+-- Fix "2012-05-20 06:46:00 ERROR: SourceEntry 52264 in `condition` table, has incorrect SourceGroup 0 (spell effectMask) set , ignoring."
+UPDATE `conditions` SET
+ `SourceGroup` = 1,
+ `SourceId` = 0
+WHERE
+ `SourceTypeOrReferenceId` = 13 AND
+ `SourceEntry` = 52264 AND
+ `ConditionTypeOrReference` = 29 AND
+ `ConditionValue1` = 28653 AND
+ `ConditionValue2` = 5;