summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 09:27:45 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 09:27:45 -0300
commite6488a8be673bd2f607934ba5c621cc5316eb1af (patch)
tree25735d5d3686e9362acd4edd8a2cb009307a6a51 /npc/functions/siege.txt
parent0c11c0ed4f48aeb1ba523692ecd111ecde954ddb (diff)
downloadserverdata-e6488a8be673bd2f607934ba5c621cc5316eb1af.tar.gz
serverdata-e6488a8be673bd2f607934ba5c621cc5316eb1af.tar.bz2
serverdata-e6488a8be673bd2f607934ba5c621cc5316eb1af.tar.xz
serverdata-e6488a8be673bd2f607934ba5c621cc5316eb1af.zip
Siege milestone with util functions for variable difficulty.
It is weird if siege happens at multiple places at once. Experimental and unfinished, siege still happens immediately.
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 6fe15287c..72566549e 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -37,7 +37,7 @@ function script siege_calcdiff {
return (.@bsum/.@c);
}
-// push to @mobs the <mobID> if their level is within a 20 level range
+// push to $@SIEGE_TMPMOBS the <mobID> if their level is within a 20 level range
// above or below <level>
// siege_push ( mobID, level )
function script siege_push {
@@ -45,7 +45,7 @@ function script siege_push {
.@lv=getarg(1,0);
if (is_between(.@lv-20, .@lv+20, atoi(strmobinfo(3, .@mi)) ) )
- array_push(@mobs, .@mi);
+ array_push($@SIEGE_TMPMOBS, .@mi);
return;
}
@@ -55,7 +55,7 @@ function script siege_push {
// TP_HURNS and TP_NIVAL are supported. You can use them with the "|" operand, eg.,
// TP_TULIM | TP_HURNS.
//
-// It currently only creates @mobs, you need to use any_of() manually.
+// It currently only creates $@SIEGE_TMPMOBS, you need to use any_of() manually.
// siege_selectmob ( blvl, difficulty{, tp_mask} )
function script siege_selectmob {
.@blv=getarg(0);
@@ -65,9 +65,9 @@ function script siege_selectmob {
// We don't need .@dif, so we convert difficulty to levels
.@blv+=.@dif*3;
- deletearray @mobs;
- setarray @mobs, ManaGhost, CandiedSlime, Bif;
- // Now we must select mobs, using array_push() to @mobs
+ deletearray $@SIEGE_TMPMOBS;
+ setarray $@SIEGE_TMPMOBS, ManaGhost, CandiedSlime, Bif;
+ // Now we must select mobs, using array_push() to $@SIEGE_TMPMOBS
// First, mobs on all envs
siege_push(BlackScorpion, .@blv);
siege_push(GreenSlime, .@blv);