diff options
author | mekolat <mekolat@gmail.com> | 2014-07-09 23:00:02 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-07-10 20:46:17 -0400 |
commit | ac8128e029378c5f66f52062262a83b919a17030 (patch) | |
tree | 5032fc91b0659c8d72707a44f6b0eb3a490920b6 /world/map/conf/magic-level3.sex | |
parent | a3f589a47c5f32cfe42316608da367792cadda1f (diff) | |
download | serverdata-ac8128e029378c5f66f52062262a83b919a17030.tar.gz serverdata-ac8128e029378c5f66f52062262a83b919a17030.tar.bz2 serverdata-ac8128e029378c5f66f52062262a83b919a17030.tar.xz serverdata-ac8128e029378c5f66f52062262a83b919a17030.zip |
Split magic files
Diffstat (limited to 'world/map/conf/magic-level3.sex')
-rw-r--r-- | world/map/conf/magic-level3.sex | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/world/map/conf/magic-level3.sex b/world/map/conf/magic-level3.sex new file mode 100644 index 00000000..2550da3e --- /dev/null +++ b/world/map/conf/magic-level3.sex @@ -0,0 +1,176 @@ +"--------------------------------------------------------------------------------" +"Level 2 spells" +"--------------------------------------------------------------------------------" +(SPELL () cure-poison "#anju" (PC target) + (LET level 2) + (LET school LIFE) + (=> + (GUARD + (MANA 15) + (CASTTIME 1000) + (REQUIRE + (> + (skill caster MAGIC) + level)) + (REQUIRE + (> + (skill caster school) + level)) + (REQUIRE + (< + (rdistance + (location caster) + (location + (pc target))) + (+ 1 + (/ spellpower 60)))) + (COMPONENTS "GambogeHerb")) + (EFFECT + (CALL adjust_spellpower school) + (CALL default_effect) + (IF (running_status_update target SC_POISON) + (BLOCK + (CALL gain_heal_xp 40 1 2 2) + (stop_status_change target SC_POISON) + (CALL gain_xp 2 30) + (IF (!= caster target) + (sfx target SFX_HEAL 0))))))) + +(SPELL () fire-ball "#flarfol" () + (LET level 2) + (LET school WAR) + (=> + (GUARD + (MANA 30) + (CASTTIME 1000) + (REQUIRE + (> + (skill caster MAGIC) + level)) + (REQUIRE + (> + (skill caster school) + level)) + (COMPONENTS "PileOfAsh")) + (EFFECT + (CALL adjust_spellpower school) + (SET damage + (min + (+ 50 + (* + (skill caster school) + 40)) + (+ 30 + (/ + (* spellpower 3) + 2)))) + (SET damage_bonus + (+ + (level caster) + (* spellpower 2))) + (SET radius + (+ 2 + (/ spellpower 50))) + (CALL install_attack_spell + (+ 1 + (/ spellpower 60)) + 5000 + 10 + 31) + (ATTRIGGER + (CALL attack_check target) + (SET loc + (location target)) + (DISABLED (WAIT 500)) + (sfx loc 16 0) + (FOREACH TARGET target + (rbox loc radius) + (IF (line_of_sight loc + (location target)) + (BLOCK + (SET divisor + (+ 3 + (rdistance loc + (location target)))) + (CALL elt_damage target + (/ + (* damage 3) + divisor) + (/ + (* damage_bonus 3) + divisor) + ELT_WATER + ELT_FIRE + 15)))))))) + +(SPELL () summon-partner "#kalzumin" () + (LET level 2) + (LET school ASTRAL) + (=> + (GUARD + (MANA 30) + (CASTTIME 2000) + (REQUIRE + (> + (skill caster MAGIC) + level)) + (REQUIRE + (> + (skill caster school) + level)) + (REQUIRE + (is_married caster)) + (REQUIRE + (is_equipped caster "WeddingRing"))) + (EFFECT + (CALL adjust_spellpower school) + (CALL default_effect) + (IF (failed + (partner caster)) + (message caster "You call out for your partner, but there is no response.") + (BLOCK + (message caster + (+ + (+ "You call out for " + (name_of + (partner caster))) + ".")) + (message + (partner caster) + (+ + (name_of caster) + " is calling for your aid!")) + (sfx + (partner caster) + 2 + 0) + (WAIT + (max 5000 + (- 30000 + (* spellpower 60)))) + (IF (failed + (partner caster)) + (message caster "Your partner has abandoned you.") + (IF (is_dead + (partner caster)) + (message caster + (+ + (+ "Something seems to have happened to " + (name_of + (partner caster))) + ".")) + (BLOCK + (sfx + (location + (partner caster)) + SFX_TELEPORT + 0) + (SET dest + (awayfrom + (location caster) + (random_dir 1) + 1)) + (warp + (partner caster) + dest) + (sfx dest SFX_TELEPORT 0))))))))) |