ae5140 2 Posted August 18, 2019 Share Posted August 18, 2019 Hi, I want to make a system where players can see their whisper chat history. I want to use this in python of the sqlite3 module. But somehow I could not use sqlite3 for Metin2. Anybody know anything about this? Thank you from now. Link to comment Share on other sites More sharing options...
lambda 2 Posted August 18, 2019 Share Posted August 18, 2019 That requires proper python libs in your client. I would suggest you do that in c++ and probably without SQLite, because there's no reason to. Add them to a vector, save/load the vector data (encrypted), store pm's in separate files (subdirectory) for each character. Link to comment Share on other sites More sharing options...
Premium Jira 459 Posted August 19, 2019 Premium Share Posted August 19, 2019 you can take a look at guild messenger Link to comment Share on other sites More sharing options...
Endymion 322 Posted August 19, 2019 Share Posted August 19, 2019 Are you sure that you want connect to db from client with put your credentials in py file? 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19718 Posted August 19, 2019 Honorable Member Share Posted August 19, 2019 No, it isn't like that. It's a local database inside the client only. Anyway, I don't recommend to use that lib either , anytime when you use it, it generates a small freeze during it saves the database. I'm using it for my accountboard but I will change it later. Here is a small example to update the last used account to place it to the top of the list during the Connect method: con = sqlite3.connect("lib/sqlite3/db.cpd") cur = con.cursor() try: cur.execute("UPDATE accounts SET last_use=? WHERE login = ?;", (time.time(), id,)) except sqlite3.Error, e: dbg.TraceError("An error occurred during updating the last_use field:" + e.args[0]) con.commit() cur.close() con.close() 4 Link to comment Share on other sites More sharing options...
metin2team 766 Posted August 19, 2019 Share Posted August 19, 2019 This is the hidden content, please Sign In or Sign Up check that out. looks sexy xD 1 Link to comment Share on other sites More sharing options...
ae5140 2 Posted August 24, 2019 Author Share Posted August 24, 2019 Thanks for responding. This is the hidden content, please Sign In or Sign Up from here I was able to add the sqlite3 module. On 19.08.2019 at 21:28, Moț said: lonca habercisine bir göz atabilirsin Where is it? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now