diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/siege.txt | 8 |
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; |