diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-30 13:23:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-30 13:23:21 -0300 |
commit | 2c404a356d50673a5cc16013ba7b4c3a0e260c15 (patch) | |
tree | 6a5d8817b5637814b5c0127c01af428b0667cd89 /npc/042-4 | |
parent | cfa6455fd91ceedfb3b1bfcc45a8c445f1f7ba68 (diff) | |
download | serverdata-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
Diffstat (limited to 'npc/042-4')
-rw-r--r-- | npc/042-4/ctrl.txt | 4 |
1 files changed, 3 insertions, 1 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]); |