From The Mana World
Revision as of 03:59, 2 May 2009 by Freeyorp (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
From 64e4698062dd06b0f8193c60597cabbff1471178 Mon Sep 17 00:00:00 2001
From: Freeyorp <Freeyorp101@NOSPAM@hotmail.com>
Date: Sat, 2 May 2009 15:50:21 +1200
Subject: [PATCH] Add spells to display Magic experience and Life Magic experience using #G01 and #G02 respectively.

---
 conf/magic.conf.template |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/conf/magic.conf.template b/conf/magic.conf.template
index 2efdfec..2f6993f 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
-- 
1.6.0.4