summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-10 01:40:19 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-10 01:40:19 -0200
commit53ac437059d8f648474e1706a17975c8e2e4e4b6 (patch)
treec0190dc94e7da792c577732883c42af66ea6f792 /npc
parent38bbf787fe5fe1df5c4880e9b335c59841951ec0 (diff)
downloadserverdata-53ac437059d8f648474e1706a17975c8e2e4e4b6.tar.gz
serverdata-53ac437059d8f648474e1706a17975c8e2e4e4b6.tar.bz2
serverdata-53ac437059d8f648474e1706a17975c8e2e4e4b6.tar.xz
serverdata-53ac437059d8f648474e1706a17975c8e2e4e4b6.zip
[skip ci] debug prints
Diffstat (limited to 'npc')
-rw-r--r--npc/005-1-1/main.txt5
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");
}