summaryrefslogtreecommitdiff
path: root/npc/commands/grantpower.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/commands/grantpower.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/commands/grantpower.txt')
-rw-r--r--npc/commands/grantpower.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/commands/grantpower.txt b/npc/commands/grantpower.txt
index 1f867f6e4..2141495d6 100644
--- a/npc/commands/grantpower.txt
+++ b/npc/commands/grantpower.txt
@@ -57,6 +57,7 @@ OnCall:
if (attachrid(.@id)) {
getitembound .@ite, 1, 1; // Account bound or char bound? (1 or 4)
dispbottom l("You received the @@ from @@.", getitemlink(.@ite), strcharinfo(0, "someone", .@ori));
+ consoleinfo("%s is the new owner for the %s.", strcharinfo(0), getitemname(.@ite));
detachrid();
attachrid(.@ori);
delitem .@ite, 1;
@@ -89,6 +90,7 @@ function legendaryAPIWarning {
.@nb = query_sql("SELECT email FROM `login` WHERE `account_id` == "+.@aid+" LIMIT 1", .@email$);
.@msg$=sprintf("[\"%s\", \"Good evening!\nYou have been inactive for a week on Moubootaur Legends.\n\nYou are currently possessing a Legendary Weapon.\nIf you do not login within seven days, your legendary weapon will be returned so the player community can obtain it again.\n\nYour TMW2 Team\", \"Legendary item expiration notice\"]", .@email$);
debugmes .@msg$;
+ consoleinfo("%d notified for Legendary weapon inactivity. (L:2)", .@aid);
api_send(API_SENDMAIL, .@msg$);
return;
}
@@ -96,6 +98,7 @@ function legendaryAPIWarning {
function legendaryRodexWarning {
.@cid=getarg(0);
rodex_sendmail(.@cid, "Legendary Weapon", "Inactivity Warning", "You have not logged in the past 2 days. Shall you fail to login for 15 days, the weapon will be destroyed!");
+ consoleinfo("%d notified for Legendary weapon inactivity. (L:1)", .@cid);
return;
}