summaryrefslogtreecommitdiff
path: root/npc/042-4/ctrl.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/042-4/ctrl.txt')
-rw-r--r--npc/042-4/ctrl.txt20
1 files changed, 12 insertions, 8 deletions
diff --git a/npc/042-4/ctrl.txt b/npc/042-4/ctrl.txt
index 600759382..e373af11d 100644
--- a/npc/042-4/ctrl.txt
+++ b/npc/042-4/ctrl.txt
@@ -33,7 +33,7 @@ OnInstanceInit:
.@mx=getguildavg(.@g);
monster0424(1, 20, 20, 115, 100, .@mx);
monster0424(4, 20, 51, 51, 71, .@mx);
- monster0424(5, 76, 56, 115, 100, .@mx);
+ monster0424(5, 85, 56, 115, 100, .@mx);
monster0424(2, 79, 40, 97, 52, .@mx);
monster0424(5, 51, 20, 80, 50, .@mx);
@@ -47,6 +47,16 @@ OnInstanceInit:
end;
OnKillMob:
+ if (!playerattached())
+ goto OnRespawn;
+ // Maybe a reward is due
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ getexp $KAMELOT_MX[.@g]*7, $KAMELOT_MX[.@g]*3;
+ // FALLTHROUGH
+
+OnRespawn:
+ sleep(3000);
// Yes, we just hope it works out of box
explode(.@map$, .map$, "@");
.@g=atoi(.@map$[1]);
@@ -55,12 +65,6 @@ OnKillMob:
.@g=0;
}
monster0424(1, 20, 20, 115, 100, $KAMELOT_MX[.@g]);
-
- // Maybe a reward is due
- if (!playerattached()) end;
- .@g=getcharid(2);
- if (.@g < 1) percentheal -100, -100;
- getexp $KAMELOT_MX[.@g]*7, $KAMELOT_MX[.@g]*3;
end;
function monster0424 {
@@ -76,7 +80,7 @@ function monster0424 {
freeloop(true);
for (.@i=0; .@i < .@gcount; .@i++) {
.@mobId=any(CursedSoldier, CursedArcher); // 50-50 ratio
- .@mob=areamonster(.@m$, 21, 24, 59, 99, strmobinfo(1, .@mobId), .@mobId, 1, .@label$);
+ .@mob=areamonster(.@m$, .@x1, .@y1, .@x2, .@y2, strmobinfo(1, .@mobId), .@mobId, 1, .@label$);
// Reconfigure the monster
setunitdata(.@mob, UDT_LEVEL, .@avg);
setunitdata(.@mob, UDT_STR, 1+.@avg*3/10);