summaryrefslogtreecommitdiff
path: root/npc/042-11/boss.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 09:06:21 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 09:06:21 -0300
commit9e06bd18228ba808e435eb9274d9231945cbd12b (patch)
tree40f2dabeda771681fc259d26b86c0cce75d01723 /npc/042-11/boss.txt
parente81ae3f5377961375457d62748416809818ffb5e (diff)
downloadserverdata-9e06bd18228ba808e435eb9274d9231945cbd12b.tar.gz
serverdata-9e06bd18228ba808e435eb9274d9231945cbd12b.tar.bz2
serverdata-9e06bd18228ba808e435eb9274d9231945cbd12b.tar.xz
serverdata-9e06bd18228ba808e435eb9274d9231945cbd12b.zip
Terogan spawn minimalist code (still no magic, nor anything epic enough)
Diffstat (limited to 'npc/042-11/boss.txt')
-rw-r--r--npc/042-11/boss.txt32
1 files changed, 31 insertions, 1 deletions
diff --git a/npc/042-11/boss.txt b/npc/042-11/boss.txt
index 1a5a5e261..b2fe93a9d 100644
--- a/npc/042-11/boss.txt
+++ b/npc/042-11/boss.txt
@@ -46,7 +46,37 @@ L_NoAccess:
// Spawns Terogan
OnBegin:
- .@mob=0;
+ explode(.@map$, .map$, "@");
+ .@g=atoi(.@map$[1]);
+ if (.@g < 1) {
+ debugmes "[ERROR] [KAMELOT] Unable to find Terogan Death %s", .map$;
+ .@g=0;
+ }
+ .@m$=.map$;
+ .@avg=$KAMELOT_MX[.@g]+10;
+
+ .@mob=monster(.@m$, 34, 26, strmobinfo(1, GeneralTerogan), GeneralTerogan, 1, .@n$+"::OnKillBoss");
+ // Reconfigure the monster
+ setunitdata(.@mob, UDT_LEVEL, .@avg);
+ setunitdata(.@mob, UDT_STR, 1+.@avg/2);
+ setunitdata(.@mob, UDT_AGI, 1+.@avg/2);
+ setunitdata(.@mob, UDT_VIT, 1+.@avg/2);
+ setunitdata(.@mob, UDT_INT, 1+.@avg/2);
+ setunitdata(.@mob, UDT_DEX, 1+.@avg/2);
+ setunitdata(.@mob, UDT_LUK, 1+.@avg/2);
+ setunitdata(.@mob, UDT_ADELAY, 1072);
+ setunitdata(.@mob, UDT_ATKRANGE, 4);
+ // Battle Status
+ setunitdata(.@mob, UDT_MAXHP, .@avg*700);
+ setunitdata(.@mob, UDT_HP, .@avg*700);
+ setunitdata(.@mob, UDT_ATKMIN, .@avg*7);
+ setunitdata(.@mob, UDT_ATKMAX, .@avg*9);
+ setunitdata(.@mob, UDT_DEF, 4+.@avg);
+ setunitdata(.@mob, UDT_MDEF, 1+.@avg);
+ setunitdata(.@mob, UDT_HIT, .@avg*18); // Advised: x3
+ setunitdata(.@mob, UDT_FLEE, .@avg*5); // Advised: x4
+ setunitdata(.@mob, UDT_CRIT, 120);
+ // Save info
setd("$@GTEMP_"+.@m$, .@mob);
setd("$@GTEMP_HP_"+.@m$, 20);
initnpctimer;