summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-29 05:38:31 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-29 05:38:31 -0300
commit98b92a2332a1dd79071e775b7932ea99053dd098 (patch)
treeb770e54a4a736aae7fa09a7981804b6b6d71d80b /npc
parent7f2305a07314b6efd62befc783ba246ad6eb9042 (diff)
downloadserverdata-98b92a2332a1dd79071e775b7932ea99053dd098.tar.gz
serverdata-98b92a2332a1dd79071e775b7932ea99053dd098.tar.bz2
serverdata-98b92a2332a1dd79071e775b7932ea99053dd098.tar.xz
serverdata-98b92a2332a1dd79071e775b7932ea99053dd098.zip
This should solve the Arrival issue
Diffstat (limited to 'npc')
-rw-r--r--npc/042-2/boss.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/042-2/boss.txt b/npc/042-2/boss.txt
index 9a350e3fb..b506e90f4 100644
--- a/npc/042-2/boss.txt
+++ b/npc/042-2/boss.txt
@@ -26,11 +26,13 @@ OnArrival:
.@g=getcharid(2);
if (.@g < 1)
percentheal -100, -100;
+ debugmes getmap();
if (getmap() != "042-2@"+.@g)
end;
- if ($@KAMELOT_WAVE[.@g] != 3)
+ debugmes $@KAMELOT_WAVE[.@g];
+ if ($@KAMELOT_WAVE[.@g] < 3)
end;
- $@KAMELOT_WAVE[.@g]+=1;
+ $@KAMELOT_WAVE[.@g]=100;
setd("$@GTEMP2_"+.@m$, $KAMELOT_PC[.@g]);
setd("$@GTEMP3_"+.@m$, $KAMELOT_MX[.@g]);
initnpctimer;
@@ -43,8 +45,9 @@ OnArrival:
end;
OnEmergency:
- setd("$@GTEMP2_"+.@m$, $KAMELOT_PC[.@g]);
- setd("$@GTEMP3_"+.@m$, $KAMELOT_MX[.@g]);
+ .@m$=instance_mapname("042-2");
+ setd("$@GTEMP2_"+.@m$, $KAMELOT_PC[getcharid(2)]);
+ setd("$@GTEMP3_"+.@m$, $KAMELOT_MX[getcharid(2)]);
initnpctimer;
end;
@@ -230,7 +233,7 @@ function kdoor0422Spawn {
.@x2=getarg(3);
.@y2=getarg(4);
.@avg=getd("$@GTEMP3_"+.@m$);
- .@m$=getmap();
+ .@m$=instance_mapname("042-2");
freeloop(true);
for (.@i=0; .@i < .@gcount; .@i++) {
.@mobId=any(CursedSoldier, CursedArcher); // 50-50 ratio