Jump to content

mysql_query function for quests


Go to solution Solved by nanoia,

Recommended Posts

  • Solution

Here has the following functions in C ++

 

mysql.query
mysql.direct_query
mysql.update
mysql.real_escape_string
mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under

RegisterDragonSoulFunctionTable();

add

RegisterMysqlFunctionTable();

open queslua.h

 

under

extern void RegisterDragonSoulFunctionTable();

add

extern void RegisterMysqlFunctionTable();

add in the makefile 

questlua_mysql.cpp

Download the file

 

This is the hidden content, please

 

VirusTotal

 

This is the hidden content, please

  • Metin2 Dev 23
  • kekw 1
  • Sad 1
  • Good 5
  • Love 20
Link to comment
Share on other sites

Here has the following functions in C ++

 

mysql.query

mysql.direct_query

mysql.update

mysql.real_escape_string

mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under

RegisterDragonSoulFunctionTable();

add

RegisterMysqlFunctionTable();

open queslua.h

 

under

extern void RegisterDragonSoulFunctionTable();

add

extern void RegisterMysqlFunctionTable();

add in the makefile 

questlua_mysql.cpp

Download the file

 

This is the hidden content, please

 

VirusTotal

 

This is the hidden content, please

 

Thanks. It works. :D

I used mysql.query for update and mysql.direct_query for select.

  • Metin2 Dev 6
  • Good 1
  • Love 3
Link to comment
Share on other sites

  • 7 months later...

thank you :o

On 16.04.2015 18:00:29, nanoia said:

Here has the following functions in C ++

 

mysql.query
mysql.direct_query
mysql.update
mysql.real_escape_string
mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under


RegisterDragonSoulFunctionTable();

add


RegisterMysqlFunctionTable();

open queslua.h

 

under


extern void RegisterDragonSoulFunctionTable();

add


extern void RegisterMysqlFunctionTable();

add in the makefile 


questlua_mysql.cpp

Download the file

 

This is the hidden content, please

 

VirusTotal

 

This is the hidden content, please

thank you :o

  • Good 1
  • Love 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 7 months later...

OBJDIR/questlua_mysql.o: In function `quest::_mysql_query(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:28: multiple definition of `quest::_mysql_query(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1344: first defined here
OBJDIR/questlua_mysql.o: In function `quest::_mysql_real_escape_string(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:83: multiple definition of `quest::_mysql_real_escape_string(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1397: first defined here
OBJDIR/questlua_mysql.o: In function `quest::_mysql_update_query(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:14: multiple definition of `quest::_mysql_update_query(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1332: first defined here
 

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • 2 months later...
  • 5 years later...

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.