diff options
Diffstat (limited to 'npc/005-1-1/main.txt')
-rw-r--r-- | npc/005-1-1/main.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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"); } |