Register for your free account! | Forgot your password?

You last visited: Today at 21:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] libMysql for R34083

Discussion on [RELEASE] libMysql for R34083 within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
[RELEASE] libMysql for R34083

Hey,few days i created lib for new quest function mysql.execute like mysql.query in lib for r2089. Today is a christmas and i publish this lib in elitepvpers. I'm from poland and i don't like polish forums becouse users is still rips from other country forums.


THIS ONLY FOR REVISION 34083!!
Download:
Code:
https://mega.co.nz/#!xswAEBAI!cOegNW8vRNg9hofph7IH0xXlf8tp6GZgRrg8SsCNWjo
Code:
http://www6.zippyshare.com/v/655717/file.html
Virustotal:
Code:
https://www.virustotal.com/pl/file/2169bc2413fc0821ac057008277394cab557121a14150d4583a9c0c15de2ff82/analysis/1387912797/
My lib require libmysqlclient.so.18 and libstdc++.so.6

libmysqlclient.so.18
Code:
https://mega.co.nz/#!Il4w1A7A!H-k0vSeNYDXCxBTELMavaCndNJcn4U020e-aw3Im5TM
Code:
http://www6.zippyshare.com/v/43921991/file.html
Virustotal:
Code:
https://www.virustotal.com/pl/file/fdc974c402890fbf113ff40b978b1674dcd72b1dc2f091cdd59fbbf8a47303d4/analysis/1387912961/
libstdc++.so.6
Code:
http://imer.cc/files/libstdc++.so.6
Libs move to /usr/lib or for Freebsd x64 to /usr/lib32/


Usage libMysql:

Start game with command
For x64 (amd64):
Code:
env LD_32_PRELOAD=./libMysql.so ./game
For x32 (i386):
Code:
env LD_PRELOAD=./libMysql.so ./game
Add to quest_functions:
Code:
mysql.execute
Quest example:

SELECT
Code:
quest libmysql begin
	state start begin
		when login begin
			local mysql = mysql.execute("SELECT name,level FROM player.player LIMIT 2")
			say("Player 1: "..mysql[1][1].." Lv. "..mysql[1][2])
			say("Player 2: "..mysql[2][1].." Lv. "..mysql[2][2])
		end
	end
end
Quest example #2
Code:
quest libmysql begin
	state start begin
		when login begin
			local mysql = mysql.execute("SELECT name,level FROM player.player LIMIT 2")
			for key,value in pairs(mysql) do
				say("Player"..key..": "..value[1].." Lv. "..value[2])
			end
		end
	end
end
Note: If query is empty or error function return false (boolean)
UPDATE,INSERT,REPLACE,DELETE[..]
Code:
quest libmysql begin
	state start begin
		when login begin
			mysql.execute("UPDATE player.player SET level=99 WHERE level>99")
		end
	end
end
If you have problem with lib please send PM to me.

Thanks to iMer

Merry Christmas and sorry if my english is bad for reading this topic
deco016 is offline  
Thanks
20 Users
Old 12/24/2013, 22:14   #2

 
.MaisKolben™'s Avatar
 
elite*gold: 24
Join Date: May 2009
Posts: 1,165
Received Thanks: 1,222
Thank you! Useful stuff .
Merry Christmas

Kind regards
.MaisKolben™ is offline  
Old 12/24/2013, 22:44   #3


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
I'm more interested in the source actually.
#SoNiice is offline  
Old 12/24/2013, 22:46   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
Sorry, i can't publish source,if you interested my lib check it in IDA
deco016 is offline  
Old 12/24/2013, 23:13   #5

 
iMer's Avatar
 
elite*gold: 606
Join Date: Apr 2008
Posts: 3,180
Received Thanks: 5,376
Quote:
Originally Posted by Hühnchenkopf View Post
I'm more interested in the source actually.

Thre is a mysql query example.
Adding quest functions is in there too.
the rest is just putting things together

It's nice to see my sdk being actively used to create awesome stuff like this
Really good work.

iMer
iMer is offline  
Thanks
1 User
Old 12/24/2013, 23:28   #6
 
elite*gold: 0
Join Date: Dec 2013
Posts: 24
Received Thanks: 4
Quote:
I'm from poland and i don't like polish forums becouse users is still rips from other country forums.
Uhh..
Joke, just kidding..
Thanks for the release.
0x52656D6978 is offline  
Old 12/24/2013, 23:46   #7
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Was ist denn der Unterschied zur Questfunktion von Mijago?

Where is the difference between this and the function Mijago published some time ago?

MfG
Yiv is offline  
Old 12/24/2013, 23:49   #8
 
elite*gold: 20
Join Date: Aug 2012
Posts: 714
Received Thanks: 1,168
Quote:
Originally Posted by DaJuBi View Post
Was ist denn der Unterschied zur Questfunktion von Mijago?

Where is the difference between this and the function Mijago published some time ago?

MfG
Der Unterschied ist das diese Lib mit den MySQL Funktionen von dem Core arbeitet (denke ich mal).

Hast du gut gemacht allerdings auch nicht wirklich schwer mit der Lib von iMer.
Nice work, but not difficult with the lib from iMer.

King regards
Chuck.
'ChuckNorris is offline  
Old 12/25/2013, 00:04   #9
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
Quote:
Originally Posted by DaJuBi View Post
Was ist denn der Unterschied zur Questfunktion von Mijago?

Where is the difference between this and the function Mijago published some time ago?

MfG
This distinguishes the functions that my use core function for query and result but Mijago still using os.execute and there are problems with the mysql results
Quote:
Originally Posted by [LxR]ChuckNorris View Post
Der Unterschied ist das diese Lib mit den MySQL Funktionen von dem Core arbeitet (denke ich mal).

Hast du gut gemacht allerdings auch nicht wirklich schwer mit der Lib von iMer.
Nice work, but not difficult with the lib from iMer.

King regards
Chuck.
clear that it is not difficult but nobody published compiled lib
deco016 is offline  
Old 12/25/2013, 00:04   #10
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Quote:
Originally Posted by [LxR]ChuckNorris View Post
Der Unterschied ist das diese Lib mit den MySQL Funktionen von dem Core arbeitet (denke ich mal).

Hast du gut gemacht allerdings auch nicht wirklich schwer mit der Lib von iMer.
Nice work, but not difficult with the lib from iMer.

King regards
Chuck.
Gibt es irgendeinen Performance-Vorteil, oder ist es eig. egal welche Methode man benutzt?

MfG
Yiv is offline  
Old 12/25/2013, 00:06   #11
 
elite*gold: 20
Join Date: Aug 2012
Posts: 714
Received Thanks: 1,168
Quote:
Originally Posted by DaJuBi View Post
Gibt es irgendeinen Performance-Vorteil, oder ist es eig. egal welche Methode man benutzt?

MfG
Ja, ich glaub bei der Questerweiterung wurde immer wieder eine neue Verbindung aufgebaut, welches hier nicht der Fall ist da es halt über den Core geht.

Gruß,
Chuck
'ChuckNorris is offline  
Old 12/25/2013, 00:08   #12
 
elite*gold: 0
Join Date: May 2009
Posts: 95
Received Thanks: 95
Quote:
Originally Posted by DaJuBi View Post
Gibt es irgendeinen Performance-Vorteil, oder ist es eig. egal welche Methode man benutzt?

MfG
Using os.execute and open files for get result is not good becouse if you running big query or with special characters results is empty or crashed lua with error in syserr but my lib using core function for query and result and pushing to lua table not to file. You can read result faster with my function and not creating subproceses for read/write file with lua

I don't speak german but i use google translator if i my answer is wrong = sory
deco016 is offline  
Old 12/25/2013, 03:41   #13
 
elite*gold: 1
The Black Market: 127/0/0
Join Date: Dec 2013
Posts: 3,467
Received Thanks: 720
Thanks for the release.
K.A.K.A.S.H.I is offline  
Old 12/25/2013, 13:13   #14
 
elite*gold: 0
Join Date: Dec 2009
Posts: 113
Received Thanks: 44
Hum, VirusTotal isn't really enough to tell me that your lib is safe ( no backdoor, no virus, no botnet ) but Thanks for the release anyways.
miguelmig is offline  
Old 12/25/2013, 13:15   #15
 
elite*gold: 20
Join Date: Aug 2012
Posts: 714
Received Thanks: 1,168
Quote:
Originally Posted by miguelmig View Post
Hum, VirusTotal isn't really enough to tell me that your lib is safe ( no backdoor, no virus, no botnet ) but Thanks for the release anyways.
Open the lib with IDA and see the pseudo code.

King regards,
Chuck
'ChuckNorris is offline  
Reply

Tags
extension, lib, metin2, mysql, query


Similar Threads Similar Threads
[GEBURTSTAGS-RELEASE]Pet-System (r34083)
05/03/2014 - Metin2 PServer Guides & Strategies - 67 Replies
http://epvpimg.com/WtKLf.png Joar, hab heute Geburtstag usw, endlich 14 :3 :D Aber statt ihr mir Geschenke macht, mach ich euch eins :) Ich hoffe ihr findet eine Verwendung o.Ä. dafür. War eigentlich für meinen Server gedacht, aber naja - wieso nicht mit der Community teilen? *schleim* pet_name.quest quest pet_name begin
[RELEASE] Another solution for the expiration date Game R34083
10/30/2013 - Metin2 PServer Guides & Strategies - 11 Replies
Hello , , Time ago, there was a problem with many in the GameR34083 does not work And why everyone knows a Expiration Of course there are solutions and my way is not the best but it may suit some of the individuals . It is a very simple idea . They re- server back remember that will be also change : your game time \ server.get_time() Which can be applied with the following command : date 0409221426
[RELEASE] GAME r34083
06/17/2013 - Metin2 PServer Guides & Strategies - 9 Replies
closed request ...



All times are GMT +1. The time now is 21:23.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.