summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 10:41:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 10:41:52 -0300
commite6b4e0f1f88c63844a5b10c2d54ea9ddad8d50a5 (patch)
tree2af82a65464d95bd7ba8076624e57312fbdd200b /npc/functions
parent3ed73e0a0b424ca5b2b8491f365bf601e34220f9 (diff)
downloadserverdata-e6b4e0f1f88c63844a5b10c2d54ea9ddad8d50a5.tar.gz
serverdata-e6b4e0f1f88c63844a5b10c2d54ea9ddad8d50a5.tar.bz2
serverdata-e6b4e0f1f88c63844a5b10c2d54ea9ddad8d50a5.tar.xz
serverdata-e6b4e0f1f88c63844a5b10c2d54ea9ddad8d50a5.zip
Okay, it works now
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/siege.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index af6198446..3446efae0 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -31,7 +31,7 @@ function script siege_calcdiff {
if (.@b > .@highest)
.@highest=.@b;
}
- debugmes "calcdiff: Total %d Average %d Highest %d", .@bsum, (.@bsum/.@c), .@highest;
+ //debugmes "calcdiff: Total %d Average %d Highest %d", .@bsum, (.@bsum/.@c), .@highest;
if (getarg(1,false))
return .@highest;
else
@@ -45,8 +45,10 @@ function script siege_push {
.@mi=getarg(0);
.@lv=getarg(1,0);
- if ( is_between(.@lv-15, .@lv+15, strmobinfo(3, .@mi)) )
+ if ( is_between(.@lv-15, .@lv+15, strmobinfo(3, .@mi)) ) {
+ //debugmes "Monster %s (%d) level %d ~= %d", strmobinfo(1, .@mi), .@mi, strmobinfo(3, .@mi), .@lv;
array_push($@SIEGE_TMPMOBS, .@mi);
+ }
return;
}
@@ -64,7 +66,7 @@ function script siege_selectmob {
.@tp=getarg(2, 0);
// We don't need .@dif, so we convert difficulty to levels
- .@blv+=.@dif*3;
+ .@blv+=.@dif;
deletearray $@SIEGE_TMPMOBS;
setarray $@SIEGE_TMPMOBS, ManaGhost, CandiedSlime, Bif, SlimeBlast;