summaryrefslogtreecommitdiff
path: root/world/map/conf/magic-quests.sex
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2014-07-11 10:27:49 -0500
committerWushin <pasekei@gmail.com>2014-07-11 10:27:49 -0500
commitda9ebddf7ab47c04de47742baa3ef040ddcf6614 (patch)
tree01134d35d55aba3120e880ea8566151191cc6586 /world/map/conf/magic-quests.sex
parentdf7e4e729e9f0aab98ba980006ce1c49a428d9e6 (diff)
parentac8128e029378c5f66f52062262a83b919a17030 (diff)
downloadserverdata-da9ebddf7ab47c04de47742baa3ef040ddcf6614.tar.gz
serverdata-da9ebddf7ab47c04de47742baa3ef040ddcf6614.tar.bz2
serverdata-da9ebddf7ab47c04de47742baa3ef040ddcf6614.tar.xz
serverdata-da9ebddf7ab47c04de47742baa3ef040ddcf6614.zip
Merge pull request #133 from mekolat/splitmagic
split magic files
Diffstat (limited to 'world/map/conf/magic-quests.sex')
-rw-r--r--world/map/conf/magic-quests.sex153
1 files changed, 153 insertions, 0 deletions
diff --git a/world/map/conf/magic-quests.sex b/world/map/conf/magic-quests.sex
new file mode 100644
index 00000000..ddc7302b
--- /dev/null
+++ b/world/map/conf/magic-quests.sex
@@ -0,0 +1,153 @@
+(PROCEDURE hug_tree (target)
+ (IF (||
+ (||
+ (||
+ (||
+ (||
+ (||
+ (||
+ (||
+ (== target "")
+ (== target "tree"))
+ (== target "tree*"))
+ (== target "Tree"))
+ (== target "Tree*"))
+ (== target "druid"))
+ (== target "druid*"))
+ (== target "Druid"))
+ (== target "Druid*"))
+ (SCRIPT "{
+ set @flag, 2;
+ callfunc \"QuestTreeTrigger\";
+ }")))
+
+(SPELL (NONMAGIC) hug0 "hug" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+(SPELL (NONMAGIC) hug1 "*hug*" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+(SPELL (NONMAGIC) hug2 "*hug" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+(SPELL (NONMAGIC) hug3 "hugs" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+(SPELL (NONMAGIC) hug4 "*hugs*" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+(SPELL (NONMAGIC) hug5 "*hugs" (STRING target)
+ (=>
+ (REQUIRE
+ (||
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree0#_M")))
+ 1)
+ (<=
+ (rdistance
+ (location caster)
+ (location
+ (npc "#DruidTree1#_M")))
+ 1)))
+ (EFFECT
+ (CALL hug_tree target))))
+
+"--------------------------------------------------------------------------------"
+"Illia spell"
+"--------------------------------------------------------------------------------"
+(SPELL (NONMAGIC) illia0 "#catalazuli" ()
+ (=>
+ (REQUIRE
+ (==
+ (rdistance
+ (location caster)
+ (location
+ (npc "#Power Circle")))
+ 0))
+ (EFFECT
+ (SCRIPT "{
+ callfunc \"StartChannelling\";}
+ "))))