From 53ac437059d8f648474e1706a17975c8e2e4e4b6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 10 Feb 2019 01:40:19 -0200 Subject: [skip ci] debug prints --- npc/005-1-1/main.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/npc/005-1-1/main.txt b/npc/005-1-1/main.txt index c8df94d1a..1df09f8a1 100644 --- a/npc/005-1-1/main.txt +++ b/npc/005-1-1/main.txt @@ -126,11 +126,13 @@ OnInteract: */ .@mobId=atoi(.@key$); getmapxy(.@m$, .@x, .@y, UNITTYPE_MOB, .@mobId); + debugmes("[LOGIC] -------------------------- proccess %d", .@mobId); // Destroy the crop if needed .@cropId$=getcropid(.@x, .@y); if (array_find(@DESTROYED, .@cropId$) == -1) { array_push(@DESTROYED, .@cropId$); + debugmes("[LOGIC] -------------------------- crop destroyed"); hideonnpc instance_npcname("#Marggo"+.@cropId$); } @@ -143,6 +145,7 @@ OnInteract: unitwalk(.@mobId, 30, 30); else unitwalk(.@mobId, .@x+any(1, -1), .@y+any(1, -1)); + debugmes("[LOGIC] ------------------------------------- ai advanced"); } htidelete(.@hti); @@ -167,10 +170,12 @@ OnMurder: // We found the dead monster, mark it as dead and stop this meaningless loop htput @MARGGO, .@key$, 0; + debugmes("[OK] Deleting Maggot"); break; } htidelete(.@hti); if (@TOTAL_MRG >= 8) { + debugmes("Current MARGGO Size: %d", htsize(@MARGGO)); if (htsize(@MARGGO) == 0) doevent("Nylo#Marggo::OnFinish"); } -- cgit v1.2.3-60-g2f50