summaryrefslogtreecommitdiff
path: root/npc/commands
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
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')
-rw-r--r--npc/commands/discord.txt6
-rw-r--r--npc/commands/grantpower.txt3
-rw-r--r--npc/commands/ipcheck.txt1
-rw-r--r--npc/commands/super-menu.txt2
-rw-r--r--npc/commands/ucp.txt1
5 files changed, 11 insertions, 2 deletions
diff --git a/npc/commands/discord.txt b/npc/commands/discord.txt
index 9e65fab81..0de4b9ca0 100644
--- a/npc/commands/discord.txt
+++ b/npc/commands/discord.txt
@@ -101,11 +101,12 @@ OnCall:
// Send to API and update cache
api_send(API_DISCORD, .@p$);
htput(.discmem, str(getcharid(3)), .@discord$);
+ consoleinfo("%s linked discord account \"%s\".", strcharinfo(0), .@discord$);
// Prevent changing for the next 3 days
- DISCTRL=gettimeparam(GETTIME_DAYOFMONTH)+3;
+ DISCTRL=gettimeparam(GETTIME_DAYOFMONTH)+2;
mesc l("Linking requested."), 1;
- mesc l("This setting can only be changed every %d days.", 3), 1;
+ mesc l("This setting can only be changed every %d days.", 2), 1;
break;
/////////////////////////////////////////////////////////////////////
case 2:
@@ -117,6 +118,7 @@ OnCall:
htput(.discmem, str(getcharid(3)), "");
// TODO: Remove Adventurer role?
logmes(sprintf("User %d \"%s\" unlinked Discord account!", getcharid(3), strcharinfo(0)));
+ consoleinfo("%s removed Discord account.", strcharinfo(0));
break;
}
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;
}
diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt
index 8928474d9..f24acf010 100644
--- a/npc/commands/ipcheck.txt
+++ b/npc/commands/ipcheck.txt
@@ -32,6 +32,7 @@ OnBan:
sleep2(200);
query_sql "INSERT INTO ipbanlist (list,btime,rtime,reason) VALUES ('"+getcharip(.@target$)+"','"+gettime(7)+"-"+gettime(6)+"-"+gettime(5)+" "+gettime(3)+":"+gettime(2)+":"+gettime(1)+"','2030-01-01 00:00:00','"+.@reason$+"')";
logmes("was IP-Blocked, and will never connect again."), LOGMES_ATCOMMAND;
+ consoleinfo("%s was IP-Banned from the server. (R: %s)", .@target$, .@reason$);
sleep2(2000);
charcommand("@kick "+.@target$);
end;
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index ba01743b3..e20d4501c 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -101,6 +101,7 @@ OnGM:
if (.@auth) {
announce strcharinfo(0)+" has just logged in services.", bc_all;
logmes strcharinfo(0)+" : GM login.", LOGMES_ATCOMMAND;
+ consoleinfo("%s changed from PC to GM.", strcharinfo(0));
} else {
logmes strcharinfo(0)+" : GM Authentication failed.", LOGMES_ATCOMMAND;
}
@@ -109,6 +110,7 @@ OnGM:
OnGMOff:
if (is_staff()) {
logmes strcharinfo(0)+" : GM logout.", LOGMES_ATCOMMAND;
+ consoleinfo("%s changed from GM to PC.", strcharinfo(0));
setgroupid(1);
}
end;
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 40f8ebaf3..c7f92d906 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -59,6 +59,7 @@ function script UserCtrlPanel {
"accid", getcharid(3),
"pin", rand2(10000));
debugmes .@msg$;
+ consoleinfo("%s requested a PinCode.", strcharinfo(0));
api_send(API_PINCODE, .@msg$);
#FIRST_TIME=2;
mesc l("PinCode created, an email should arrive within 15 minutes."), 3;