diff options
-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; |