summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-24 16:08:53 +0000
committerFate <fate-tmw@googlemail.com>2009-05-24 16:08:53 +0000
commite2338c522a4eb22c431e23d181bde27b0849d668 (patch)
treebe1b973df90a1b91ae9c77847578bc449212ac61 /conf
parentf10165d86c7697b90a1edb3c4b99844ed47cb39f (diff)
downloadserverdata-e2338c522a4eb22c431e23d181bde27b0849d668.tar.gz
serverdata-e2338c522a4eb22c431e23d181bde27b0849d668.tar.bz2
serverdata-e2338c522a4eb22c431e23d181bde27b0849d668.tar.xz
serverdata-e2338c522a4eb22c431e23d181bde27b0849d668.zip
Added #L20, the cure-poison spell, and made Elanore explain it.
Diffstat (limited to 'conf')
-rw-r--r--conf/magic.conf.template20
1 files changed, 20 insertions, 0 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index 48a685f4..8c5ac05d 100644
--- a/conf/magic.conf.template
+++ b/conf/magic.conf.template
@@ -23,6 +23,7 @@ CONST ELT_GHOST = 8
CONST ELT_UNDEAD = 9
# Schools of magic
+CONST SC_POISON = 132
CONST SC_SHEARED = 194 # This is the same as SC_HIDE, since mobs can't hide and shearing is only used for mobs. Feel free to fix!
CONST SC_HIDE = 194
CONST SC_HALT_REGENERATE = 195
@@ -935,6 +936,25 @@ SPELL hide (target : PC) : "#A13" =
# Level 2 spells
#--------------------------------------------------------------------------------
+SPELL cure-poison (target : PC) : "#L20" =
+ LET level = 2
+ school = LIFE
+ IN (MANA 15, CASTTIME 1000,
+ REQUIRE skill(caster, MAGIC) > level,
+ REQUIRE skill(caster, school) > level,
+ REQUIRE (rdistance(location(caster),
+ location(pc(target))) < 1 + (spellpower / 60)),
+ COMPONENTS ["GambogeHerb"])
+ => EFFECT CALL adjust_spellpower(school);
+ CALL default_effect();
+ IF (running_status_update (target, SC_POISON))
+ THEN (CALL gain_heal_xp(40, 1, 2, 2);
+ stop_status_change (target, SC_POISON);
+ CALL gain_xp(2);
+ IF caster <> target
+ THEN sfx(target, SFX_HEAL, 0););
+
+
SPELL fire-ball : "#W22" =
LET level = 2
school = WAR