summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-09-20 20:42:54 -0300
committerJesusaves <cpntb1@ymail.com>2021-09-20 20:42:54 -0300
commit4e3eb2b1fdc7000571bc955a284fdd644a8abea8 (patch)
tree38636d308eae05a52f456628486ceafe700c153a /npc/functions/util.txt
parent03bad31d7fe788a25a91e1097c376a763f560713 (diff)
downloadserverdata-4e3eb2b1fdc7000571bc955a284fdd644a8abea8.tar.gz
serverdata-4e3eb2b1fdc7000571bc955a284fdd644a8abea8.tar.bz2
serverdata-4e3eb2b1fdc7000571bc955a284fdd644a8abea8.tar.xz
serverdata-4e3eb2b1fdc7000571bc955a284fdd644a8abea8.zip
Update some of the debugmes for usage with syslog facility
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 420c856f2..a276cd541 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -18,7 +18,7 @@ function script DelItemFromEveryPlayer {
query_sql("DELETE FROM `guild_storage` WHERE `nameid`="+getarg(0));
query_sql("DELETE FROM `rodex_items` WHERE `nameid`="+getarg(0));
query_sql("DELETE FROM `auction` WHERE `nameid`="+getarg(0));
- debugmes "Deleting item %d", getarg(0);
+ consolewarn "Deleting item %d", getarg(0);
// Del items which SQL can't reach
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
@@ -105,7 +105,7 @@ function script DelQuestFromEveryPlayer {
function script ReplaceItemFromEveryPlayer {
if (getarg(0, -1) < 0)
return;
- debugmes("* Server update: %d item was replaced by %d", getarg(0), getarg(1));
+ consoleinfo("* Server update: %d item was replaced by %d", getarg(0), getarg(1));
query_sql("UPDATE `inventory` SET `nameid`='"+getarg(1)+"' WHERE `nameid`="+getarg(0));
query_sql("UPDATE `cart_inventory` SET `nameid`='"+getarg(1)+"' WHERE `nameid`="+getarg(0));
query_sql("UPDATE `storage` SET `nameid`='"+getarg(1)+"' WHERE `nameid`="+getarg(0));
@@ -120,7 +120,7 @@ function script ReplaceItemFromEveryPlayer {
function script ReplaceSkillFromEveryPlayer {
if (getarg(0, -1) < 0)
return;
- debugmes("* Server update: skill %d was replaced by %d", getarg(0), getarg(1));
+ consoleinfo("* Server update: skill %d was replaced by %d", getarg(0), getarg(1));
// If new ID already exists, it will skip
query_sql("UPDATE IGNORE `skill` SET `id`='"+getarg(1)+"' WHERE `id`="+getarg(0));
return;
@@ -625,8 +625,8 @@ function script nard_time {
}
// Error
- debugmes "ERROR, INVALID LOCATION AND DESTINATION";
- debugmes l("@@ -> @@", LOCATION$, getarg(0));
+ consolewarn "ERROR, INVALID LOCATION AND DESTINATION";
+ consolewarn("%s -> %s", LOCATION$, getarg(0));
dispbottom l("An error on your travel time happened. Please report.");
return INT_MAX;
}
@@ -1110,7 +1110,7 @@ function script teleporthome {
if (.@i >= 0)
EnterTown($@LOCMASTER_LOC$[.@i]);
else
- debugmes("[ERROR] Invalid Town Map for Time Flask: %s", getmap());
+ consolewarn("[ERROR] Invalid Town Map for Time Flask: %s", getmap());
return;
}