diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-15 18:49:02 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-15 18:49:02 +0000 |
commit | d1ac0ab81128a774a94d821fff331e6517d3471b (patch) | |
tree | c0881ce804c149b1961e7f2c5663896725d8fe8c /conf/magic.conf.template | |
parent | cd69824ac119de684392079e5c20aa27fc3912b3 (diff) | |
download | serverdata-d1ac0ab81128a774a94d821fff331e6517d3471b.tar.gz serverdata-d1ac0ab81128a774a94d821fff331e6517d3471b.tar.bz2 serverdata-d1ac0ab81128a774a94d821fff331e6517d3471b.tar.xz serverdata-d1ac0ab81128a774a94d821fff331e6517d3471b.zip |
Block arrow and rain in Tulimshar, Hurnscald, Nivalis. Minor fine-tuning for teleport effect.
Diffstat (limited to 'conf/magic.conf.template')
-rw-r--r-- | conf/magic.conf.template | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/conf/magic.conf.template b/conf/magic.conf.template index 304252ab..5777ca49 100644 --- a/conf/magic.conf.template +++ b/conf/magic.conf.template @@ -210,6 +210,13 @@ PROCEDURE summon_spell(mob_id, count, delay, lifetime, control_level) = if_then_else(skill(caster, ASTRAL) >= control_level, 2, 1), # pets when level is high enough count, lifetime); +PROCEDURE abort_on_area_shield(pos) = + IF (is_exterior(pos) = 1 && (map_nr(pos) = 1 # Tulimshar + ||map_nr(pos) = 9 # Hurnscald + ||map_nr(pos) = 20)) # Nivalis + THEN (message(caster, "A powerful magic drains your spell just as it is beginning to take shape!"); + ABORT;) + #-------------------------------------------------------------------------------- # Level 0 spells @@ -640,6 +647,7 @@ LOCAL SPELL arrow-hail : "#W11" = (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["SulphurPowder"])) => EFFECT CALL adjust_spellpower(school); CALL default_effect(); + CALL abort_on_area_shield(location(caster)); range = 7; area = rbox(awayfrom(location(caster), dir(caster), 1 + range), range); @@ -742,6 +750,7 @@ LOCAL SPELL rain : "#N13" = (REQUIRE skill(caster, school) > 3 OR COMPONENTS ["BottleOfWater"])) => EFFECT CALL adjust_spellpower(school); CALL default_effect(); + CALL abort_on_area_shield(location(caster)); FOREACH SPELL s IN rbox(location(caster), MAX_RAIN_SPELL_RADIUS + 1) DO IF (s <> self_invocation) && (name_of(s) = "rain") THEN (message (caster, "A nearby raincloud absorbs your magic."); @@ -1065,9 +1074,9 @@ SPELL teleport (destination : STRING) : "#A40" = REQUIRE skill(caster, school) > level) => EFFECT CALL default_effect(); WAIT 1000 + (200000 / (spellpower + 10)); - sfx(location(caster), SFX_TELEPORT, 1); + sfx(location(caster), SFX_TELEPORT, 200); warp(caster, random_location(anchor(destination))); - sfx(location(caster), SFX_TELEPORT, 100); + sfx(caster, SFX_TELEPORT, 200); #-------------------------------------------------------------------------------- # Debug keywords |