summaryrefslogtreecommitdiff
path: root/npc/042-11
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 09:14:57 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 09:14:57 -0300
commit9d2ee1be21e7dc0f3b1c26766e27f35d930dada8 (patch)
tree49807674945ca81ae0897dcf4e49c19fd6574f57 /npc/042-11
parenta84e081dc534870444a1a7122b7d1f5c997e98bc (diff)
downloadserverdata-9d2ee1be21e7dc0f3b1c26766e27f35d930dada8.tar.gz
serverdata-9d2ee1be21e7dc0f3b1c26766e27f35d930dada8.tar.bz2
serverdata-9d2ee1be21e7dc0f3b1c26766e27f35d930dada8.tar.xz
serverdata-9d2ee1be21e7dc0f3b1c26766e27f35d930dada8.zip
Give Terogan a starting position and minimum conditions of combat
Diffstat (limited to 'npc/042-11')
-rw-r--r--npc/042-11/boss.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/npc/042-11/boss.txt b/npc/042-11/boss.txt
index 9a813f3c1..84317dc86 100644
--- a/npc/042-11/boss.txt
+++ b/npc/042-11/boss.txt
@@ -68,7 +68,10 @@ OnBegin:
if (.@exist)
end;
- .@mob=monster(.@m$, 34, 26, strmobinfo(1, GeneralTerogan), GeneralTerogan, 1, .@n$+"::OnKillBoss");
+ // Bring Terogan into existence
+ .@mob=monster(.@m$, 40, 30, strmobinfo(1, GeneralTerogan), GeneralTerogan, 1, .@n$+"::OnKillBoss");
+ setd("$@GTEMP_"+.@m$, .@mob);
+
// Reconfigure the monster
setunitdata(.@mob, UDT_LEVEL, .@avg);
setunitdata(.@mob, UDT_STR, 1+.@avg/2);
@@ -89,7 +92,10 @@ OnBegin:
setunitdata(.@mob, UDT_HIT, .@avg*18); // Advised: x3
setunitdata(.@mob, UDT_FLEE, .@avg*5); // Advised: x4
setunitdata(.@mob, UDT_CRIT, 120);
- // Save info
+ // Initial batch of reinforcements
+ KamelotCaveSpawn(6, 30, 20, 50, 40, .@avg, .@m$);
+
+ // Save info again
setd("$@GTEMP_"+.@m$, .@mob);
setd("$@GTEMP_HP_"+.@m$, 20);
initnpctimer;
@@ -108,8 +114,9 @@ OnTimer5000:
.@m$=instance_mapname("042-11");
.@mob=getd("$@GTEMP_"+.@m$);
- .@gcount=$KAMELOT_PC[.@g]+2; // Always at least 3 spawns
- .@avg=$KAMELOT_MX[.@g]+rand2(22, 27); // Always at least 27 levels above
+ // Prepare the reinforcement strength data (min 3 Lv 22 spawn)
+ .@gcount=$KAMELOT_PC[.@g]+2;
+ .@avg=$KAMELOT_MX[.@g]+rand2(22, 27);
// Calculate current HP ratio and the difference
.@ratio=getunitdata(.@mob, UDT_HP)*20/getunitdata(.@mob, UDT_MAXHP);
@@ -122,6 +129,9 @@ OnTimer5000:
// Unlike Krukan, spawn according to HP loss (no use fast killing)
KamelotCaveSpawn(.@gcount*max(1, .@hplos), 20, 20, 57, 40, .@avg, .@m$);
}
+
+ // TODO: Special skills
+
// Always update the ratio - Terogan could have been healed
setd("$@GTEMP_HP_"+.@m$, .@ratio);
initnpctimer;