diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-05 08:54:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-05 08:54:53 -0300 |
commit | 69bed0f5798409cd1ae6ab3b374226a0ac9159aa (patch) | |
tree | 546a9b51f1f044defa6421fa1680719c7acc5f96 | |
parent | a876010c910949dd30edf9967f51a967ed0334a1 (diff) | |
download | serverdata-69bed0f5798409cd1ae6ab3b374226a0ac9159aa.tar.gz serverdata-69bed0f5798409cd1ae6ab3b374226a0ac9159aa.tar.bz2 serverdata-69bed0f5798409cd1ae6ab3b374226a0ac9159aa.tar.xz serverdata-69bed0f5798409cd1ae6ab3b374226a0ac9159aa.zip |
@shroom value auto-adjustment
Each 10 player levels get <param> shroom. Minimum 1 shroom. Max. 60 (spawn limit)
-rw-r--r-- | npc/commands/shroom.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/commands/shroom.txt b/npc/commands/shroom.txt index e73e35b79..76a4d72c3 100644 --- a/npc/commands/shroom.txt +++ b/npc/commands/shroom.txt @@ -26,7 +26,10 @@ OnShroom: unitemote(.@gmId, E_HAPPY); sleep2(150); - areamonster(.@m$, .@x-3, .@y-3, .@x+3, .@y+3, .@mobName$, .@mobId, .@mobAm); + // Adjust amount based on player level + .@Ammo=limit(1, BaseLevel/10*.@mobAm, 60); + + areamonster(.@m$, .@x-3, .@y-3, .@x+3, .@y+3, .@mobName$, .@mobId, .@Ammo); sleep2(120); detachrid(); } |