im feeling like the fifth wheel right now but meh..go on
we got a bunch of crappy code lines and this doenst help..this wont.
why are you even trying?
you're ******** on each other like you're getting something back..isnt worth at all.
No one gonna post a serious mod..not even remotely.
So why are you complaining each other with some mixed languages
(it's so ******* bad, in order to do something that last..you gotta focus on a language since we aren't all german and we "can't" understand...well..
if you have the need to speak in nazist make your own topic ..
this was started and stated as english one)
just one moar thought:
why should you/we help others?
i mean...some people here can't even compile the source but they're still claiming help.
what gonna happen once they'll have 1 or more problems?
these guys are the one who open "garbage-servers" which most likely end up in a week or two, making metin2-private server dirty.
that's pretty much everything i guess... just got up so i could have missed something.
CREATE TABLE `whispers` (
`id` int(20) NOT NULL AUTO_INCREMENT ,
`from` varchar(24) NOT NULL DEFAULT 'error' ,
`to` varchar(24) NOT NULL DEFAULT 'error' ,
`msg` varchar(250) NOT NULL DEFAULT 'empty_msg_error' ,
PRIMARY KEY (`id`)
);
CHANGE COLUMN `from` `from_msg` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'error' AFTER `id`,
CHANGE COLUMN `to` `to_msg` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'error' AFTER `from_msg`,
CHANGE COLUMN `msg` `msg_text` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'empty_msg_error' AFTER `to_msg`;
Well done, you have Whisper log in your server (i'm not sure it right works, because i dont know what collation i must set in mysql so - MARKED AS UNTESTED but should work without any problem.)
BTW. If your mysql user which is set in config file have access to the log and player databases, simply change "INSERT INTO whispers" to "INSERT INTO log.whispers" and should work & save in log database
BTW. If your mysql user which is set in config file have access to the log and player databases, simply change "INSERT INTO whispers" to "INSERT INTO log.whispers" and should work & save in log database
I added a special function at log.cpp calling it, that way you can do the MySQL escape string, or else I could use SQL Injection or other stuff right with PM system.
After ShoutLog add this: (at log.cpp)
Code:
//NEWTHATGUYPT - Whisper Logging Function
void LogManager::WhisperLog(const char * from, const char * to, const char * message)
{
m_sql.EscapeString(__escape_hint, sizeof(__escape_hint), message, strlen(message));
Query("INSERT INTO whisper_log (from_msg, to_msg, msg_text) VALUES ('%s', '%s', '%s')", from, to, __escape_hint);
}
At log.h this virtual method:
Code:
//NEWTHATGUYPT - Whisper Logging Function
void WhisperLog(const char * from, const char * to, const char * message);
DROP TABLE IF EXISTS `whisper_log`;
CREATE TABLE `whisper_log` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`from_msg` varchar(24) NOT NULL DEFAULT 'error',
`to_msg` varchar(24) NOT NULL DEFAULT 'error',
`msg_text` varchar(250) NOT NULL DEFAULT 'empty_msg_error',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
This way the text will get past by the function that cleans eventual SQL Injection vulnerabilities and other vulnerabilities so you can not do things like:
UPDATE INTO PLAYERS WHERE NAME='MY NAME' GOLD=9999999999
Thanks to Zonni for the idea, this one is completly safe to use guys, enjoy.
You should make sure to remove the calls to the ymir server, or they'll get your ip, or idk what from your computer
hätte man nicht O.o
man hätte die nur exportieren müssen, würden aber trotzdem gleich aussehen xD
I already posted the bypass to this.
Well, just a quick update with a proof of concept of my brand new quest function named "pc.getlang".
Hope you enjoy and can figure out the infinite aplications of this whole new function:
For example, using this and setting the .when files of the quests of the server I could translate the whole NPCs into infinite languages, including the options which I think that is whole new (I have not been much deep into metin2 stuff tho).
I could also for the Missions concatenate the lang + name of the arrays from the gameforge translate.lua to translate the whole server.
Aditionally and recoding part of the client-server architecture I could easily let the NPC names, mob names and so long, aswell as the mob messages and npc messages (the ones who show on top of them), and item_proto messages (like "You recieved Sword+0") at the client side, having a complete multi-language server.
Well, just a quick update with a proof of concept of my brand new quest function named "pc.getlang".
Hope you enjoy and can figure out the infinite aplications of this whole new function:
For example, using this and setting the .when files of the quests of the server I could translate the whole NPCs into infinite languages, including the options which I think that is whole new (I have not been much deep into metin2 stuff tho).
I could also for the Missions concatenate the lang + name of the arrays from the gameforge translate.lua to translate the whole server.
Aditionally and recoding part of the client-server architecture I could easily let the NPC names, mob names and so long, aswell as the mob messages and npc messages (the ones who show on top of them), and item_proto messages (like "You recieved Sword+0") at the client side, having a complete multi-language server.
[Collection Thread]Ich suche ein Game! / I'm searching for a game! 05/27/2025 - General Gaming Discussion - 3430 Replies German:
Wenn ihr ein Spiel sucht dann postet es bitte in diesem Thread sonst versinkt die General Gaming Section in solchen Threads.
Wer irgendwas anderes postet als nen Gametipp oder ne Gamesuche bekommt ausnahmslos eine Warnung!
Sofern du auf der Suche nach Browsergames bist, dann verwende dieses Thema.
75%
English:
Please post in this thread if you are searching for a game instead of creating a separate thread otherwise there will be mess in the General Gaming Section because too...