summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/siege.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 10fa4736f..dd94e1b3f 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -44,14 +44,15 @@ function script siege_calcdiff {
return (.@bsum/.@c);
}
-// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a 15 levels range
+// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a x levels range
// above or below <level>
-// siege_push ( mobID, level )
+// siege_push ( mobID, {level{, variation}} )
function script siege_push {
.@mi=getarg(0);
.@lv=getarg(1,0);
+ .@var=getarg(2,5); // Old Default: 15
- if ( is_between(.@lv-15, .@lv+15, strmobinfo(3, .@mi)) ) {
+ if ( is_between(.@lv-.@var, .@lv+.@var, strmobinfo(3, .@mi)) ) {
//debugmes "Monster %s (%d) level %d ~= %d", strmobinfo(1, .@mi), .@mi, strmobinfo(3, .@mi), .@lv;
array_push($@SIEGE_TMPMOBS, .@mi);
}
@@ -86,7 +87,6 @@ function script siege_selectmob {
siege_push(BlackSlime, .@blv);
siege_push(BlackScorpion, .@blv);
siege_push(Forain, .@blv);
- siege_push(GreenDragon, .@blv);
siege_push(Terranite, .@blv);
siege_push(JackO, .@blv);
siege_push(BlackMamba, .@blv);
@@ -115,6 +115,7 @@ function script siege_selectmob {
siege_push(AngryYellowSlime, .@blv);
siege_push(GrassSnake, .@blv);
siege_push(WickedMushroom, .@blv);
+ siege_push(GreenDragon, .@blv);
}
if (.@tp & TP_NIVAL) {
siege_push(Bluepar, .@blv);