diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-07 20:36:00 -0300 |
commit | 6967b9e0b63d19141d4f59b7933a960ac81916d0 (patch) | |
tree | 8ecd9cd2461f3598cb7faece71eb77162aa4ef2a /npc/magic/level2-arrow-hail.txt | |
parent | 9877fd4ad81120af8e63e96d5d429092014dc017 (diff) | |
parent | 046c659193e1ca8bd13478678d1277df8bf9395c (diff) | |
download | serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.gz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.bz2 serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.tar.xz serverdata-6967b9e0b63d19141d4f59b7933a960ac81916d0.zip |
Merge branch 'master' into legacy
Override all files with 'master' version.
This version is meant to preserve git history as requested by bjorn.
Diffstat (limited to 'npc/magic/level2-arrow-hail.txt')
-rw-r--r-- | npc/magic/level2-arrow-hail.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/npc/magic/level2-arrow-hail.txt b/npc/magic/level2-arrow-hail.txt new file mode 100644 index 00000000..217f7fb0 --- /dev/null +++ b/npc/magic/level2-arrow-hail.txt @@ -0,0 +1,44 @@ +// The Mana World script +// Author: Jesusalva <jesusalva@themanaworld.org> +// +// Magic Script: SKILL_FRILLYAR (Level 1) +// School: War 2 + +function script SK_Frillyar { + // Additional check for ammo + .@it=getequipid(EQI_AMMO); + if (.@it < 1) { + dispbottom l("Please equip your ammo first!"); + return; + } + if (countitem(.@it) < 15) { + dispbottom l("You need at least %d %s to use this spell!", + 15, getitemname(.@it)); + return; + } + // Delete items + delitem(SulphurPowder, 1); + delitem(.@it, 15); + // Proccess attack power + .@RG=4+(@skillLv/2); + .@PW=90+(10*@skillLv); + .@PW+=getiteminfo(.@it, ITEMINFO_ATK); + // Weather modifiers + if ("#WeatherCore"::weather(MASK_RAIN)) + .@PW-=10; + if ("#WeatherCore"::weather(MASK_SANDSTORM)) + .@PW-=10; + if ("#WeatherCore"::weather(MASK_SNOW)) + .@PW-=10; + // Effective magic code + .@dmg=AdjustSpellpower(.@PW); + .@dmg+=getiteminfo(.@it, ITEMINFO_ATK); + specialeffect(FX_MAGIC_AHAIL_CAST, AREA, @skillTarget); + areaharm(@skillTarget, .@RG, .@dmg, HARM_PHYS, Ele_Neutral); + harm(@skillTarget, .@dmg/20, HARM_MAGI, Ele_Holy); + specialeffect(FX_ARROW_HAIL, AREA, @skillTarget); + GetManaExp(@skillId, 2); + return; +} + + |