summaryrefslogtreecommitdiff
path: root/conf/magic.conf.template
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@NOSPAM@hotmail.com>2009-05-02 15:50:21 +1200
committerJared Adams <jaxad0127@gmail.com>2009-05-02 10:07:41 -0600
commitdbd1aa402ed6fc1c4d6851d2fab32a782f0dc757 (patch)
treeb3cffe390e80ac846dc5defaef7465f1c59a4e43 /conf/magic.conf.template
parentab74ee120265602487a8eb5adddc1bc412b53d76 (diff)
downloadserverdata-dbd1aa402ed6fc1c4d6851d2fab32a782f0dc757.tar.gz
serverdata-dbd1aa402ed6fc1c4d6851d2fab32a782f0dc757.tar.bz2
serverdata-dbd1aa402ed6fc1c4d6851d2fab32a782f0dc757.tar.xz
serverdata-dbd1aa402ed6fc1c4d6851d2fab32a782f0dc757.zip
Add spells to display Magic experience and Life Magic experience using #G01 and #G02 respectively.
Diffstat (limited to 'conf/magic.conf.template')
-rw-r--r--conf/magic.conf.template18
1 files changed, 18 insertions, 0 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index 2efdfec3..2f6993f8 100644
--- a/conf/magic.conf.template
+++ b/conf/magic.conf.template
@@ -204,6 +204,24 @@ PROCEDURE summon_spell(mob_id, count, delay, lifetime, control_level) =
# Level 0 spells
#--------------------------------------------------------------------------------
+SPELL ask-magic-exp : "#G01" =
+ LET level = 0
+ school = MAGIC
+ IN (MANA 1, CASTTIME 1000,
+ REQUIRE skill(caster, MAGIC) > level)
+ => EFFECT CALL adjust_spellpower(school);
+ CALL default_effect();
+ message(caster, "You have " + (script_int(caster, "MAGIC_EXPERIENCE") & 0xffff) + " Magic Experience points.");
+
+SPELL ask-life-magic-exp : "#G02" =
+ LET level = 0
+ school = MAGIC
+ IN (MANA 1, CASTTIME 1000,
+ REQUIRE skill(caster, MAGIC) > level)
+ => EFFECT CALL adjust_spellpower(school);
+ CALL default_effect();
+ message(caster, "You have " + ((script_int(caster, "MAGIC_EXPERIENCE") >> 24) & 0xff) + " Life Magic Experience points.");
+
SPELL transmute-wood-to-mouboo : "#T00" =
LET level = 0
school = TRANSMUTE