From 4e3eb2b1fdc7000571bc955a284fdd644a8abea8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 20 Sep 2021 20:42:54 -0300 Subject: Update some of the debugmes for usage with syslog facility --- npc/functions/npcmovegraph.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'npc/functions/npcmovegraph.txt') diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt index 0877b7487..1391e0d72 100644 --- a/npc/functions/npcmovegraph.txt +++ b/npc/functions/npcmovegraph.txt @@ -35,12 +35,12 @@ function script initmovegraph { function script findmovegraphlabel { if (!getargcount()) { - debugmes "findmovegraphlabel: no argument"; + consolebug "findmovegraphlabel: no argument"; return -1; } if (!isstr(getarg(0))) { - debugmes "findmovegraphlabel: need string argument"; + consolebug "findmovegraphlabel: need string argument"; return -1; } @@ -144,7 +144,7 @@ function script execmovecmd { } else { - debugmes "execmovecmd: unknown WARP destination label: " + .@cmd$[1]; + consolewarn "execmovecmd: unknown WARP destination label: " + .@cmd$[1]; } } else if (.@cmd$[0] == "call") @@ -152,7 +152,7 @@ function script execmovecmd { switch (getarraysize(.@cmd$)) { case 1: - debugmes "execmovecmd: CALL command needs some parameters"; + consolewarn "execmovecmd: CALL command needs some parameters"; return 0; case 2: return callfunc(.@cmd$[1]); @@ -175,7 +175,7 @@ function script execmovecmd { if (.@msg$ != "" && .@msg$ != " ") npctalk .@msg$; else - debugmes "Invalid message passed to execmovecmd/npctalk"; + consolewarn "Invalid message passed to execmovecmd/npctalk"; } else if (.@cmd$[0] == "debugmes") { @@ -200,7 +200,7 @@ function script execmovecmd { } else { - debugmes "Unknown move graph cmd: " + .@cmd$[0]; + consolebug "Unknown move graph cmd: " + .@cmd$[0]; } return 0; } @@ -230,7 +230,7 @@ function script getnextmovecmd { function script getrandompoint { if (getargcount() < 4) { - debugmes "error: getrandompoint(x1, y1, x2, y2) takes 4 arguments"; + consolebug "error: getrandompoint(x1, y1, x2, y2) takes 4 arguments"; return -1; } @@ -268,7 +268,7 @@ function script getrandompoint { goto L_Found; // finally, if we don't find anything - debugmes "error: getrandompoint: cannot find walkable cell in rectangle [(" + .@x1 + "," + .@y1 + ") , (" + .@x2 + "," + .@y2 + ")]"; + consolebug "error: getrandompoint: cannot find walkable cell in rectangle [(" + .@x1 + "," + .@y1 + ") , (" + .@x2 + "," + .@y2 + ")]"; return -1; L_Found: @@ -286,7 +286,7 @@ L_Found: function script mg_npcwalkto { if (getargcount() < 2) { - debugmes "usage: mg_npcwalkto(x1,y1[,x2,y2])"; + consolebug "usage: mg_npcwalkto(x1,y1[,x2,y2])"; return -1; } -- cgit v1.2.3-70-g09d2