summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-05-29 02:50:02 +0200
committerJesusalva Jesusalva <jesusalva@tmw2.org>2024-05-29 20:53:03 +0000
commitc5dfd2aa01f7a714a40aaee4649c199e0f31b315 (patch)
tree35889199d6da52d168bbc7a72b5e8e30789f2999 /npc/functions
parent9710a1f188b94347938619df3d2042cb6bfac6de (diff)
downloadserverdata-c5dfd2aa01f7a714a40aaee4649c199e0f31b315.tar.gz
serverdata-c5dfd2aa01f7a714a40aaee4649c199e0f31b315.tar.bz2
serverdata-c5dfd2aa01f7a714a40aaee4649c199e0f31b315.tar.xz
serverdata-c5dfd2aa01f7a714a40aaee4649c199e0f31b315.zip
The coordination required for multi-player raid boss generation and fighting is annoying
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/aurora.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index fbad772e7..df3e3129e 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -448,10 +448,12 @@ function script FYEConf_Raid {
return;
}
+
// Boss Raid Appears! (What you killed is meaningless)
function script FYE_Raid {
.@mob=getarg(0, killedrid);
- // Actually - ignore system or auto-generated entities
+ // Actually - ignore system or auto-generated entities.
+ // This check also excludes the Raid boss itself.
if (.@mob > 1490)
return;
.@lv=getmonsterinfo(.@mob, MOB_LV);
@@ -467,7 +469,8 @@ function script FYE_Raid {
// Wait - Maybe you already found a boss?
if (.@id >= 0) {
- if ($FYRAID_LV[.@id] == FYRAID_LV)
+ // Noone has fought this boss yet.
+ if ($FYRAID_HP[.@id] > 0)
return;
}
@@ -481,7 +484,7 @@ function script FYE_Raid {
// Assign the boss stats
$FYRAID_HP[.@id]=2000+FYRAID_LV*1000+(FYRAID_LV/5*500);
// Also declared in 001-13/main.txt
- $FYRAID_LV[.@id]=FYRAID_LV;
+ $FYRAID_LV[.@id]= min($FYRAID_LV + 1, FYRAID_LV);
$FYRAID_TIME[.@id]=gettimetick(2)+3600; // One hour
// Announce that the boss was found!