summaryrefslogtreecommitdiff
path: root/npc/commands/shroom.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-11 00:24:26 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-11 00:24:26 -0300
commitdc14760ef54ad333aae3f06878f5452c4eb66f8c (patch)
tree6d0dd6e57fc17ad4005ef4e2ebea05560c7cce1c /npc/commands/shroom.txt
parentec10da4eeb5256abe0cd9864ffd2241b4035915a (diff)
downloadserverdata-dc14760ef54ad333aae3f06878f5452c4eb66f8c.tar.gz
serverdata-dc14760ef54ad333aae3f06878f5452c4eb66f8c.tar.bz2
serverdata-dc14760ef54ad333aae3f06878f5452c4eb66f8c.tar.xz
serverdata-dc14760ef54ad333aae3f06878f5452c4eb66f8c.zip
@shroom can get a tad messy with multiple players on same map, but it works.
Diffstat (limited to 'npc/commands/shroom.txt')
-rw-r--r--npc/commands/shroom.txt5
1 files changed, 3 insertions, 2 deletions
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);