From dc14760ef54ad333aae3f06878f5452c4eb66f8c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 11 Sep 2019 00:24:26 -0300 Subject: @shroom can get a tad messy with multiple players on same map, but it works. --- npc/commands/shroom.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/commands') diff --git a/npc/commands/shroom.txt b/npc/commands/shroom.txt index 4b19ed907..041027424 100644 --- a/npc/commands/shroom.txt +++ b/npc/commands/shroom.txt @@ -31,7 +31,7 @@ OnShroom: // Max 40 connected players for this to work .@c = getunits(BL_PC, .@players, 40); for (.@i = 0; .@i < .@c; .@i++) { - debugmes "Attach account %d to spawn %d %s (%d)", .@players[.@i], .@mobAm, .@mobName$, .@mobId; + debugmes "@shroom: Attach account %d to spawn %d %s (%d)", .@players[.@i], .@mobAm, .@mobName$, .@mobId; attachrid(.@players[.@i]); getmapxy(.@m$, .@x, .@y, 0); unitwarp(.@gmId, .@m$, .@x, .@y); @@ -43,7 +43,8 @@ OnShroom: // Adjust amount based on player level .@Ammo=limit(1, BaseLevel/15*.@mobAm, 60); - debugmes "Spawn %d mobs", .@Ammo; + //getmapxy(.@dm$, .@dx, .@dy, UNITTYPE_MOB, .@gmId); + //debugmes "Spawn %d mobs at %s, (%d, %d)", .@Ammo, .@dm$, .@dx, .@dy; areamonster(.@m$, .@x-3, .@y-3, .@x+3, .@y+3, .@mobName$, .@mobId, .@Ammo); sleep2(320); -- cgit v1.2.3-70-g09d2