From 69bed0f5798409cd1ae6ab3b374226a0ac9159aa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 5 Sep 2019 08:54:53 -0300 Subject: @shroom value auto-adjustment Each 10 player levels get shroom. Minimum 1 shroom. Max. 60 (spawn limit) --- npc/commands/shroom.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc') 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(); } -- cgit v1.2.3-60-g2f50