From 3428ae297acb8d82cef59e6a75554aad6dd342aa Mon Sep 17 00:00:00 2001 From: lighta Date: Mon, 18 Nov 2013 20:38:10 -0500 Subject: [PATCH] Adding charblock Update HC 0x20d to send the blocklist value, based on Herc:aee2f631 Revamp ZH 0x2b0e and HA 0x2725 to send difftime instead year,month,day,minutes,secondes values.. Remove duplicate code for char_ban Add missing sql_upgrade for vip --- conf/msg_conf/map_msg.conf | 14 +- sql-files/main.sql | 1 + sql-files/upgrades/upgrade_20131115.sql | 6 +- sql-files/upgrades/upgrade_20131118.sql | 3 + src/char/char.c | 297 +++++++++++++++--------- src/common/mmo.h | 1 + src/common/timer.c | 19 +- src/common/timer.h | 3 +- src/login/login.c | 37 +-- src/map/atcommand.c | 156 +++++-------- src/map/chrif.c | 49 ++-- src/map/chrif.h | 2 +- src/map/trade.c | 4 +- 13 files changed, 310 insertions(+), 282 deletions(-) create mode 100644 sql-files/upgrades/upgrade_20131118.sql diff --git a/conf/msg_conf/map_msg.conf b/conf/msg_conf/map_msg.conf index f281e90348..c071569dda 100644 --- a/conf/msg_conf/map_msg.conf +++ b/conf/msg_conf/map_msg.conf @@ -103,10 +103,10 @@ 82: Please provide a name or number from the list provided: 83: Monster 'Emperium' cannot be spawned. 84: All stats changed! -85: Invalid time for ban command. +85: Invalid time for %s command (time=%d). 86: Sorry, player names have to be at least 4 characters. 87: Sorry, player names can be no longer than 23 characters. -88: Sending request to login server... +88: Sending request to %s server... 89: Night mode is already enabled. 90: Day mode is already enabled. 91: Character's base level can't go any higher. @@ -439,8 +439,8 @@ 419: Server is jammed due to over populated. 420: Your account has not more authorised. 421: Your account has been totally erased. -423: Your account has been banished until -424: Login-server has been asked to %s the player '%.*s'. +423: Your %s has been banished until %s +424: %s has been asked to %s the player '%.*s'. 425: The player '%.*s' doesn't exist. 426: Your GM level don't authorise you to %s the player '%.*s'. 427: Login-server is offline. Impossible to %s the player '%.*s'. @@ -450,6 +450,10 @@ 431: unban 432: change the sex of +433: This character has been banned until +434: Char-server has been asked to %s the character '%.*s'. +435: Please enter a player name (usage: @charunblock ). + // Homunculus messages 450: You already have a homunculus @@ -851,7 +855,7 @@ // @charban 1022: Please enter ban time and a player name (usage: @charban/@ban/@banish/@charbanish