LCKB
UseFull functions in GameServer - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198)
+---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147)
+---- Thread: UseFull functions in GameServer (/showthread.php?tid=216)



- someone - 10-05-2011


More documentatio here:

2

 

These are the offsets of the functions(eax is the return values):

004EDED0 ->Print to the screen

=============================

"Loading etc..."

PUSH DWORD PTR DS:[XXXX]

CALL 004EDED0

----------------------------------------------------

SQL

00566DF0 ->mysql_real_query

=================================

"SELECT * FROM t_table ORDER BY a_index"

PUSH DWORD PTR DS:[XXXX]

CALL 00566DF0

 

return:

EAX 00000000 //SUCCESS

ECX 7FFDF000

EDX 00000002

ESP 0012F630

 

(mysql_store_result)

00566EE0 ->RETURNS THE NUMBERS OF ROWS

=============================================

PUSH ECX

CALL 00566EE0

EAX = DWORD PTR DS ->NUMBER OF ROWS

 

---------------------------------------------------

CALL 004415A0 ->coulumn int

PUSH EAX

"a_coulumn"

Push PUSH DWORD PTR DS:[XXXX]

CALL 004415A0

 

(mysql_fetch_row)

00567360 /$ 55 PUSH EBP

EAX 01E3A390 //result usually all the rows data

ECX 7FFDF000

ESP 0012F758

 

(mysql_ping)

0056A1E0 /$ 55 PUSH EBP

 

(free_old_query)

00562C80 /$ 55 PUSH EBP

 

(mysql_send_query)

00566C90 /$ 55 PUSH EBP

 

(mysql_real_connect)

00564520 /$ 55 PUSH EBP

 

(mysql_free_result)

00562FD0 /$ 55 PUSH EBP

 

(mysql_close)

00566770 /$ 55 PUSH EBP