summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-29 06:22:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-29 06:22:27 -0300
commit3cdd7d49c98af924619051d1952b34a4d5e3a08b (patch)
treea2506878293f2362e8835467974a21f75cff292a /npc
parent730b13ff775ffe9130d5e771d4536142f40f7223 (diff)
downloadserverdata-3cdd7d49c98af924619051d1952b34a4d5e3a08b.tar.gz
serverdata-3cdd7d49c98af924619051d1952b34a4d5e3a08b.tar.bz2
serverdata-3cdd7d49c98af924619051d1952b34a4d5e3a08b.tar.xz
serverdata-3cdd7d49c98af924619051d1952b34a4d5e3a08b.zip
Krukan: Give guild a decent GP for their efforts.
Make all variables human-readable. This is all for now >__>
Diffstat (limited to 'npc')
-rw-r--r--npc/042-2/boss.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/042-2/boss.txt b/npc/042-2/boss.txt
index bdbe36f11..7681afc0c 100644
--- a/npc/042-2/boss.txt
+++ b/npc/042-2/boss.txt
@@ -134,7 +134,7 @@ OnTimer180000:
setunitdata(.@mob, UDT_CRIT, rand2(.@min, .@max));
// Loop through
setd("$@GTEMP_"+.@m$, .@mob);
- setd("$@GTEMP1_"+.@m$, 10);
+ setd("$@GTEMP_HP_"+.@m$, 10);
end;
OnTimer185000:
@@ -143,11 +143,11 @@ OnTimer185000:
.@mob=getd("$@GTEMP_"+.@m$);
.@gdcount=getd("$@GTEMP_PC_"+.@m$);
.@ratio=getunitdata(.@mob, UDT_HP)*10/getunitdata(.@mob, UDT_MAXHP);
- //debugmes "Ratio %d/%d", .@ratio, getd("$@GTEMP1_"+.@m$);
- if (.@ratio < getd("$@GTEMP1_"+.@m$)) {
- mapannounce .@m$, "General Krukan : "+any("Charge!", "To the Abyss with you already!", "Kill them already!", "More of them are coming!", "Minions, ATTACK!"), 0;
+ //debugmes "Ratio %d/%d", .@ratio, getd("$@GTEMP_HP_"+.@m$);
+ if (.@ratio < getd("$@GTEMP_HP_"+.@m$)) {
+ mapannounce .@m$, "General Krukan : "+any("Charge!", "To the Abyss with you already!", "Kill them already!", "More of them might be coming!", "Minions, ATTACK!"), 0;
kdoor0422Spawn(.@gcount*2, 20, 24, 59, 59);
- setd("$@GTEMP1_"+.@m$, .@ratio);
+ setd("$@GTEMP_HP_"+.@m$, .@ratio);
}
//debugmes "Restart timer";
setnpctimer 180001;
@@ -191,16 +191,16 @@ OnKillMob:
OnKillBoss:
setd("$@GTEMP_"+.@m$, 0);
- setd("$@GTEMP1_"+.@m$, 0);
+ setd("$@GTEMP_HP_"+.@m$, 0);
setd("$@GTEMP_PC_"+.@m$, 0);
+ setd("$@GTEMP_MX_"+.@m$, 0);
.@g=getcharid(2);
- dispbottom l("This is all in KAMELOT for now.");
- $KAMELOT_QUEST[.@g]=$KAMELOT_QUEST[.@g]|4; // FIXME
+ $KAMELOT_QUEST[.@g]=$KAMELOT_QUEST[.@g]|4; // This part is complete
// Player Reward for completing this stage
getitem GuildCoin, min(1, $KAMELOT_MX[.@g]/20);
getexp $KAMELOT_MX[.@g]*50, $KAMELOT_MX[.@g]*10;
// Guild Reward for completing this stage
- .@ggp=300+$KAMELOT_MX[.@g]*5;
+ .@ggp=1200+$KAMELOT_MX[.@g]*5;
.@gxp=$KAMELOT_MX[.@g]*10;
$GUILD_BANK[.@g]+=.@ggp;
guildgetexp(.@gxp); // 10xp per player average level (max 1000/1500)