summaryrefslogtreecommitdiff
path: root/world/map/conf
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-07-24 12:48:02 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-07-24 12:59:10 -0700
commitce5453f5fc11687506b3abf2f74c1fc3df91dba2 (patch)
treef4356a5367d03905487732259a298bc68362ed21 /world/map/conf
parent7aaf89447c6c31a6930d358224a098c02285925d (diff)
downloadserverdata-ce5453f5fc11687506b3abf2f74c1fc3df91dba2.tar.gz
serverdata-ce5453f5fc11687506b3abf2f74c1fc3df91dba2.tar.bz2
serverdata-ce5453f5fc11687506b3abf2f74c1fc3df91dba2.tar.xz
serverdata-ce5453f5fc11687506b3abf2f74c1fc3df91dba2.zip
Truncate item names to what the server actually sees
This is far from optimal, but the server was already doing it silently, and the new server now rejects it. Also make magic.conf use an item name, since previously it was (correctly) rejecting the item name as nonexistent and was using an ID instead.
Diffstat (limited to 'world/map/conf')
-rw-r--r--world/map/conf/magic.conf.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/conf/magic.conf.template b/world/map/conf/magic.conf.template
index 54f4a602..eb78a591 100644
--- a/world/map/conf/magic.conf.template
+++ b/world/map/conf/magic.conf.template
@@ -532,7 +532,7 @@ SPELL make-concentration-potion : "#T15" =
=> EFFECT CALL adjust_spellpower(school);
CALL default_effect();
CALL create_item( if_then_else(random(2000 + experience) < experience, "ConcentrationPotion", "DarkConcentrationPotion"), 1,
- if_then_else(random(2), 744, "DarkConcentrationPotion"),
+ if_then_else(random(2), "DilutedConcentrationPot", "DarkConcentrationPotion"),
2000);
IF (success)
THEN CALL set_var(MAGIC_FLAGS, 1, MFLAG_MADE_CONC_POTION_SHIFT, 1);
@@ -544,10 +544,10 @@ SPELL merge-concentration-potions : "#T16" =
IN (MANA 8, CASTTIME 5000,
REQUIRE skill(caster, MAGIC) > level,
REQUIRE skill(caster, school) > level,
- COMPONENTS ["DarkConcentrationPotion", 744])
+ COMPONENTS ["DarkConcentrationPotion", "DilutedConcentrationPot"])
=> EFFECT CALL adjust_spellpower(school);
CALL default_effect();
- CALL create_item("ConcentrationPotion", 1, 744, 1000);
+ CALL create_item("ConcentrationPotion", 1, "DilutedConcentrationPot", 1000);
message (caster, "success = " + success);
IF (success)
THEN CALL set_var(MAGIC_FLAGS, 1, MFLAG_MADE_CONC_POTION_SHIFT, 1);