Jump to content
metin2dev

Leaderboard


Popular Content

Showing most liked content on 01/05/2017 in all areas

  1. 1 point
    (2.3) Close/Move/Rename request To make a close/move or rename request please report the topic with the thing you want us to do. Rename request are only allowed by the thread owners
  2. 1 point
    You say this to everyone we shouldn't take your comments seriously, you are so invisible
  3. 1 point
    First open playersttingmodule.py and search: [codesyntax]net.RegisterEmoticonString("(fish)")[/codesyntax] below add: [codesyntax]chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+12, "", "rinnegan/carcel.mse") net.RegisterEmoticonString("(carcel)")[/codesyntax] Open game.py and and eventually add: [codesyntax]def __carcel(self): net.SendChatPacket("(carcel)")[/codesyntax] Now search: [codesyntax]def __ServerCommand_Build(self):[/codesyntax] and below add: [codesyntax]#carcel 'carcel' : self.__Carcel, #end carcel[/codesyntax] Textures Link https://mega.co.nz/#!c8MijYQQ!uKFNefvo0WEyoKvSMnp7En8tHUwwGW_AXvl8r-9RgT0 Client/Server Side http://www.mediafire.com/download/2efob3cimov2vtb/Carcel.zip by Metin2Area
  4. 1 point
    I've found a maybe better solution that's even easier to implement. First make sure you selected the account database: use account; Then you can run the following query to create your function. Make sure to replace the peppervariable with something of your own! CREATE FUNCTION enc_pw(s CHAR(24)) RETURNS CHAR(50) DETERMINISTIC RETURN PASSWORD(CONCAT("thisisyourpeppervariable", s)); Then you won't have to add your pepper variable anywhere. Just use the enc_pw() function in your queries. For example: SELECT enc_pw('testpassword'); This'll return the password you need. Pros: + No need to store your pepper variable anywhere at your webserver etc. + Easy to use implementation + Easy changeable. You can for example add AES-encryption which is also supported by mysql to your function. The function is persistent. It'll even be there after a reboot. If you change something you'll first have to drop the old function: DROP FUNCTION enc_pw; Simple as that. In your source code you'll only have to edit input_auth.cpp to simply use enc_pw() instead of PASSWORD() for your query. You can also use the function at your webserver. So people who could've get access to your webserver won't be able to retreive your peppervariable. In addition: You can, as I stated, change the encryption completely. You can for example use SHA2(), AES or anything else that comes into your mind to even further encrypt it - twice if needed. Hackers won't know what encryption algorithm you're using. They'll be clueless unless they get to see the actual function. If you manage your permissions right and only allow your homepage user acces to the tables itself (You'll only need select, insert and update for some tables, NOT the actual database itself) people won't even be able to have insight to the function. You can test it. Log in as your homepage user, select the database account and run the following command: SHOW CREATE FUNCTION enc_pw; If it shows you the function routine, then you have permission to do so and you should lower the permission you give to your homepage account. If used wisely it's a very secure procedure.
×