summaryrefslogtreecommitdiff
path: root/world/map/conf
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2014-06-30 18:56:49 -0500
committerWushin <pasekei@gmail.com>2014-06-30 18:56:49 -0500
commit0d8c9a3f43372de8302264207bf7fe4ee3a88579 (patch)
tree88f6b6f353f068e1fcf84b319c7d22a9476bc301 /world/map/conf
parenta0cdf3e2821228f570bf339cd675c012ad4fea57 (diff)
parent623f98ef8f4efa72d6ff7355517b0ace7235ef72 (diff)
downloadserverdata-0d8c9a3f43372de8302264207bf7fe4ee3a88579.tar.gz
serverdata-0d8c9a3f43372de8302264207bf7fe4ee3a88579.tar.bz2
serverdata-0d8c9a3f43372de8302264207bf7fe4ee3a88579.tar.xz
serverdata-0d8c9a3f43372de8302264207bf7fe4ee3a88579.zip
Merge pull request #123 from wushin/starting-area-fix
Starting Area Redux
Diffstat (limited to 'world/map/conf')
-rw-r--r--world/map/conf/magic-base.sex38
1 files changed, 38 insertions, 0 deletions
diff --git a/world/map/conf/magic-base.sex b/world/map/conf/magic-base.sex
index 8f3b9978..58e4a6de 100644
--- a/world/map/conf/magic-base.sex
+++ b/world/map/conf/magic-base.sex
@@ -407,6 +407,44 @@
"--------------------------------------------------------------------------------"
"Level 0 spells"
"--------------------------------------------------------------------------------"
+(SPELL () wand "#confringo" ()
+ (LET school MAGIC)
+ (=>
+ (GUARD
+ (CASTTIME 500))
+ (EFFECT
+ (SCRIPT "{callfunc \"CheckWand\";}")
+ (IF (==
+ (script_int caster "@Wand")
+ 0)
+ (ABORT))
+ (CALL adjust_spellpower school)
+ (CALL default_effect)
+ (SET damage
+ (* (script_int caster "@Wand")
+ (/ spellpower
+ 3)))
+ (SET damage_bonus
+ (* (script_int caster "@Wand")
+ (/ spellpower
+ 3)))
+ (CALL install_attack_spell
+ (+ (script_int caster "@Wand")
+ (/ spellpower 10))
+ 1200
+ 3
+ 33)
+ (CALL gain_xp 1 3)
+ (ATTRIGGER
+ (CALL attack_check target)
+ (SCRIPT "{callfunc \"WandMana\";}")
+ (IF (==
+ (script_int caster "@WandAttack")
+ 0)
+ (ABORT))
+ (CALL elt_damage target damage damage_bonus ELT_NEUTRAL ELT_NEUTRAL 5))
+)))
+
(SPELL () ask-magic-exp "#abizit" ()
(LET level 0)
(LET school MAGIC)