Jump to content

Recommended Posts

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.

  • Honorable Member

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()

 

  • Love 4

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.