summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2012-09-03 23:42:24 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2012-09-06 10:11:23 +0200
commita0ac34cf122f46d8864fb21f881e0df9e478f84e (patch)
tree7658e2e20e85daf366a6852e5e87750f593dcc98 /world
parentcebbbb580cfcc7addba356d960a63f4eee2e2c5a (diff)
downloadserverdata-a0ac34cf122f46d8864fb21f881e0df9e478f84e.tar.gz
serverdata-a0ac34cf122f46d8864fb21f881e0df9e478f84e.tar.bz2
serverdata-a0ac34cf122f46d8864fb21f881e0df9e478f84e.tar.xz
serverdata-a0ac34cf122f46d8864fb21f881e0df9e478f84e.zip
Do not allow players to teleport from botcheck using the easter 2010 teleport spell.
Diffstat (limited to 'world')
-rw-r--r--world/map/conf/magic.conf.template4
1 files changed, 3 insertions, 1 deletions
diff --git a/world/map/conf/magic.conf.template b/world/map/conf/magic.conf.template
index 372f0204..e77039fc 100644
--- a/world/map/conf/magic.conf.template
+++ b/world/map/conf/magic.conf.template
@@ -1469,7 +1469,9 @@ CONST E10_FLAG_USED_FREE_WARP_SHIFT = 17
NONMAGIC SILENT SPELL world-shift : "#S00" =
(REQUIRE (script_int(caster, "Easter_2010_QuestState") >> 16) & 1 == 1 && (script_int(caster, "Easter_2010_QuestState") >> 7) & 3 == 2) => # Travel only works when you have both helped the doctor at least thrice and have defeated the invader - top level requirement.
- ( (REQUIRE count_item(caster, "DarkPetal")) # Allow unlimited travel with the petal
+ ( (REQUIRE (count_item(caster, "DarkPetal")) && # Allow unlimited travel with the petal
+ (map_nr(location(caster)) != 5698) # Do not allow if player is in botcheck area
+ )
=> ((REQUIRE rdistance(location(caster), @("028-1.gat", 63, 67)) < 5) =>
EFFECT sfx(location(caster), SFX_TELEPORT, 200);
WAIT 8000;