From dbd1aa402ed6fc1c4d6851d2fab32a782f0dc757 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Sat, 2 May 2009 15:50:21 +1200 Subject: Add spells to display Magic experience and Life Magic experience using #G01 and #G02 respectively. --- conf/magic.conf.template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'conf') 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 -- cgit v1.2.3-60-g2f50