summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-28 03:59:42 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-28 03:59:42 -0300
commit503a4b600768ee7599b4c065de519d4f42430f10 (patch)
tree5318578b99c72524d128f693ca5d5b48aa85afac /npc/items
parent4c766ea76c95fa3f836bb10a1f543c8b8aa07949 (diff)
downloadserverdata-503a4b600768ee7599b4c065de519d4f42430f10.tar.gz
serverdata-503a4b600768ee7599b4c065de519d4f42430f10.tar.bz2
serverdata-503a4b600768ee7599b4c065de519d4f42430f10.tar.xz
serverdata-503a4b600768ee7599b4c065de519d4f42430f10.zip
Initial sketch of Guild Magic
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/grenade.txt24
-rw-r--r--npc/items/inc_sc_bonus.txt3
2 files changed, 26 insertions, 1 deletions
diff --git a/npc/items/grenade.txt b/npc/items/grenade.txt
index f2e749ba9..0275606b4 100644
--- a/npc/items/grenade.txt
+++ b/npc/items/grenade.txt
@@ -74,6 +74,30 @@ function script areasc2 {
return;
}
+// areasc3(range, time, sc, bl, val1, val2, filter)
+// Defaults to 3x3 square, sleep mob for 500ms. Ignores you.
+// Need a player caster. Valid BL: BL_MOB | BL_PC | BL_HOM | BL_MER
+function script areasc3 {
+ .@r=getarg(0, 3);
+ .@d=getarg(1, 500);
+ .@s=getarg(2, SC_SLEEP);
+ .@b=getarg(3, BL_MOB);
+ .@v1=getarg(4, 1);
+ .@v2=getarg(5, 1);
+ .@f$=getarg(6, "filter_notme");
+
+ getmapxy(.@m$, .@x, .@y, 0);
+ .@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_start2 .@s, .@d, .@v1, .@v2, 10000, SCFLAG_NONE, .@mbs[.@i];
+ specialeffect(FX_BUFF, AREA, .@mbs[.@i]);
+ }
+ return;
+}
+
// massprovoke(range, {map, x, y}) - player only
function script massprovoke {
getmapxy(.@m$, .@x, .@y, 0);
diff --git a/npc/items/inc_sc_bonus.txt b/npc/items/inc_sc_bonus.txt
index 98e4ca104..a26d5701e 100644
--- a/npc/items/inc_sc_bonus.txt
+++ b/npc/items/inc_sc_bonus.txt
@@ -3,10 +3,11 @@
// Jesusalva
// Description:
// Applies effects for INC_* (STR doesn't exist)
-// Valid values: INCAGI INCVIT INCINT INCDEX INCLUK INCHIT INCFLEE
+// Valid values: INCAGI INCVIT INCINT INCDEX INCLUK INCHIT INCFLEE SC_FURY
// Doesn't works: SC_STRUP
// Works if .@min == .@max: INCMHP INCMHPRATE INCMSP INCMSPRATE
/// Untested Values: WALKSPEED (reverse logic) INVINCIBLE (broken)
+// PS. SC_FURY causes crit rate to increase
//
// Variables:
// .@delay Second of buffing