summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 09:51:25 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 09:51:25 -0300
commit7b1f6f59b0781188c967b896a62c6ecc05df84e4 (patch)
tree721f458678fff29eb11cac4b5c5f07d4dbd69ba1 /npc/functions/siege.txt
parent597c464873405244d5b2d00e46532b0cff93a5c3 (diff)
downloadserverdata-7b1f6f59b0781188c967b896a62c6ecc05df84e4.tar.gz
serverdata-7b1f6f59b0781188c967b896a62c6ecc05df84e4.tar.bz2
serverdata-7b1f6f59b0781188c967b896a62c6ecc05df84e4.tar.xz
serverdata-7b1f6f59b0781188c967b896a62c6ecc05df84e4.zip
Fix pipeline and other minor improvements
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 72566549e..9149cfaa4 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -26,25 +26,26 @@ function script siege_calcdiff {
.@highest=getarg(1, false);
.@c = getunits(BL_PC, .@players, false, getarg(0));
for (.@i = 0; .@i < .@c; .@i++) {
- .@b=;readparam(BaseLevel, .@players[.@i])
+ .@b=readparam(BaseLevel, .@players[.@i]);
.@bsum+=.@b;
if (.@b > .@highest)
.@highest=.@b;
}
+ debugmes "calcdiff: Total %d Average %d Highest %d", .@bsum, (.@bsum/.@c), .@highest;
if (getarg(1,false))
return .@highest;
else
return (.@bsum/.@c);
}
-// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a 20 level range
+// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a 15 levels range
// above or below <level>
// siege_push ( mobID, level )
function script siege_push {
.@mi=getarg(0);
.@lv=getarg(1,0);
- if (is_between(.@lv-20, .@lv+20, atoi(strmobinfo(3, .@mi)) ) )
+ if ( is_between(.@lv-15, .@lv+15, strmobinfo(3, .@mi)) )
array_push($@SIEGE_TMPMOBS, .@mi);
return;
}