summaryrefslogtreecommitdiff
path: root/world/map/conf/magic.conf.template
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-02-11 23:01:59 +0100
committerVincent Petithory <vincent.petithory@gmail.com>2013-02-21 17:30:55 +0100
commitf108bb5759733eb0b7a9ee3396f41a3e989c802e (patch)
tree5e687b80af97375719f9592c2e6594a5c47ab7cf /world/map/conf/magic.conf.template
parent82bfc47429c57cdd214d7cf411cb517c467e0a35 (diff)
downloadserverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.gz
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.bz2
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.tar.xz
serverdata-f108bb5759733eb0b7a9ee3396f41a3e989c802e.zip
Add GM Killing Event materials:
* MagicGMTopHat: The hat to give powers to a gm * Add #pullrabbit spell associated to the magic gm top hat. Requires ./build-magic.sh * Add Murderer Crown (prize)
Diffstat (limited to 'world/map/conf/magic.conf.template')
-rw-r--r--world/map/conf/magic.conf.template12
1 files changed, 12 insertions, 0 deletions
diff --git a/world/map/conf/magic.conf.template b/world/map/conf/magic.conf.template
index cf3094c7..c9e0de6c 100644
--- a/world/map/conf/magic.conf.template
+++ b/world/map/conf/magic.conf.template
@@ -568,6 +568,7 @@ SPELL lay-on-hands (target : STRING) : "#L10" =
&& (rdistance(location(caster), location(pc(target)))
< 2 + (12 * sqrt(spellpower) + spellpower) / 100)
&& not (running_status_update(pc(target), SC_HALT_REGENERATE))
+ && not (is_equipped(target, "MagicGMTopHat"))
))
=> EFFECT CALL adjust_spellpower(school);
IF (not (target)) THEN ABORT;
@@ -715,6 +716,7 @@ SPELL protect (target : PC) : "#N11" =
IN (MANA 14, CASTTIME 1500,
REQUIRE skill(caster, MAGIC) > level,
REQUIRE skill(caster, school) > level,
+ REQUIRE not(is_equipped(target, "MagicGMTopHat")),
(REQUIRE skill(caster, school) > 3 OR COMPONENTS ["HardSpike"]),
REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30)
=> EFFECT CALL adjust_spellpower(school);
@@ -836,6 +838,7 @@ SPELL barrier (target : PC) : "#A10" =
IN (MANA 16, CASTTIME 1000,
REQUIRE skill(caster, MAGIC) > level,
REQUIRE skill(caster, school) > level,
+ REQUIRE not(is_equipped(target, "MagicGMTopHat")),
(REQUIRE skill(caster, school) > 3 OR COMPONENTS ["SmallMushroom"]),
REQUIRE rdistance(location(target), location(caster)) < 2 + spellpower / 30)
=> EFFECT CALL adjust_spellpower(school);
@@ -1718,3 +1721,12 @@ NONMAGIC SPELL illia0 : "#catalazuli" = REQUIRE ((rdistance(location(caster), lo
=> EFFECT {
callfunc "StartChannelling";
};
+
+#--------------------------------------------------------------------------------
+# Kill the GM event spell
+#--------------------------------------------------------------------------------
+
+NONMAGIC SPELL killgm0 : "#pullrabbit" = REQUIRE (is_equipped(caster, "MagicGMTopHat"))
+ => EFFECT {
+ callfunc "ActivateMagicGMTophat";
+ };