Jump to content

Metin2 Python Sqlite3 Module


Recommended Posts

  • 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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.