summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-30 13:23:21 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-30 13:23:21 -0300
commit2c404a356d50673a5cc16013ba7b4c3a0e260c15 (patch)
tree6a5d8817b5637814b5c0127c01af428b0667cd89
parentcfa6455fd91ceedfb3b1bfcc45a8c445f1f7ba68 (diff)
downloadserverdata-2c404a356d50673a5cc16013ba7b4c3a0e260c15.tar.gz
serverdata-2c404a356d50673a5cc16013ba7b4c3a0e260c15.tar.bz2
serverdata-2c404a356d50673a5cc16013ba7b4c3a0e260c15.tar.xz
serverdata-2c404a356d50673a5cc16013ba7b4c3a0e260c15.zip
042-4 mobs respawn time will now be based on PC
-rw-r--r--npc/042-4/ctrl.txt4
-rw-r--r--npc/042-5/ctrl.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/npc/042-4/ctrl.txt b/npc/042-4/ctrl.txt
index fb9bc8bef..d78b43cab 100644
--- a/npc/042-4/ctrl.txt
+++ b/npc/042-4/ctrl.txt
@@ -53,10 +53,12 @@ OnKillMob:
.@g=getcharid(2);
if (.@g < 1) percentheal -100, -100;
getexp $KAMELOT_MX[.@g]*7, $KAMELOT_MX[.@g]*3;
+ .@delay=max(3000, 21000-$KAMELOT_PC[.@g]*1000);
// FALLTHROUGH
OnRespawn:
- sleep(3000);
+ .@delay=(.@delay ? .@delay : 3000);
+ sleep(.@delay);
// Yes, we just hope it works out of box
explode(.@map$, .map$, "@");
.@g=atoi(.@map$[1]);
diff --git a/npc/042-5/ctrl.txt b/npc/042-5/ctrl.txt
index d017a9bc1..dfc799122 100644
--- a/npc/042-5/ctrl.txt
+++ b/npc/042-5/ctrl.txt
@@ -110,5 +110,3 @@ function monster0425 {
}
-
-