diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-25 05:19:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-25 05:19:34 -0300 |
commit | 8ddde32298d4eac4277c8620e73afb1506ff9f74 (patch) | |
tree | 4f23ae8cc633c45a1b93537f0c0f0a9fdda9435a /npc | |
parent | 239a789572cc8165ae65b477a1d549a4097a2b6a (diff) | |
download | serverdata-8ddde32298d4eac4277c8620e73afb1506ff9f74.tar.gz serverdata-8ddde32298d4eac4277c8620e73afb1506ff9f74.tar.bz2 serverdata-8ddde32298d4eac4277c8620e73afb1506ff9f74.tar.xz serverdata-8ddde32298d4eac4277c8620e73afb1506ff9f74.zip |
Extend areasc
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/hub.txt | 11 | ||||
-rw-r--r-- | npc/items/grenade.txt | 9 |
2 files changed, 11 insertions, 9 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 976ef310d..601f6d284 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -368,16 +368,15 @@ function script HUB_SkillInvoke { case TMW2_FROSTDIVER: .@PW=80+(10*@skillLv); - // 8% chance, 10s - sc_start SC_FREEZE, 10000, 1, 800, flag?, @skillTarget; + // 22% chance, 2.5s + sc_start SC_FREEZE, 2500, 1, 2200, SCFLAG_NONE, @skillTarget; harm(@skillTarget, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water); break; case TMW2_FROSTNOVA: .@PW=80+(10*@skillLv); - // TODO: All this in area - // 8% chance, 10s - sc_start SC_FREEZE, 10000, 1, 800, flag?, @skillTarget; - areaharm(@skillTarget, 6, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water); + // 18% chance, 3s, 3x3 radius + areasc(3, 3000, SC_FREEZE, BL_MOB|BL_PC|BL_HOM|BL_MER, "filter_hostile", @skillTarget, 1800); + areaharm(@skillTarget, 3, AdjustSpellpower(.@PW), HARM_MAGI, Ele_Water); break; case TMW2_NILFHEIM: // Already Implemented, Needs Cooldown/etc diff --git a/npc/items/grenade.txt b/npc/items/grenade.txt index 0275606b4..96d952ca7 100644 --- a/npc/items/grenade.txt +++ b/npc/items/grenade.txt @@ -27,8 +27,9 @@ function script grenade { return; } -// areasc(range, time, sc, bl, value, filter) +// areasc(range, time, sc, bl, value, filter, target, chances) // Defaults to 3x3 square, sleep mob for 500ms. Ignores you. +// Centered on player attached, 100% success chance // Need a player caster. Valid BL: BL_MOB | BL_PC | BL_HOM | BL_MER function script areasc { .@r=getarg(0, 3); @@ -37,14 +38,16 @@ function script areasc { .@b=getarg(3, BL_MOB); .@val=getarg(4, 1); .@f$=getarg(5, "filter_notme"); + .@t=getarg(6, playerattached()); + .@sr=getarg(7, 10000); - getmapxy(.@m$, .@x, .@y, 0); + getmapxy(.@m$, .@x, .@y, getunittype(.@t), .@t); .@c=getunits(.@b, .@mbs, false, .@m$, .@x-.@r, .@y-.@r, .@x+.@r, .@y+.@r); for (.@i = 0; .@i < .@c; .@i++) { // Filtering if (!callfunc(.@f$, .@mbs[.@i])) continue; - sc_start .@s, .@d, .@val, 10000, SCFLAG_NONE, .@mbs[.@i]; + sc_start .@s, .@d, .@val, .@sr, SCFLAG_NONE, .@mbs[.@i]; specialeffect(FX_BUFF, AREA, .@mbs[.@i]); } return; |