Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

DLL Code for "Private server"

Newbie Spellweaver
Joined
Sep 25, 2005
Messages
78
Reaction score
1
Well i get this has a request from camus, he was asking:

"i got a private server of payment, and i need some way to update the connectmember list every 1 hour".

So after think a little i find how in a DLL caused on SQL i dont know and also its very easy to config the time in this code, it should work for every server owner than dont want to be pressing the button for reload all options, also this reload ONLY ConnectMember.txt and not the rest of files. :busted_re

Here source:
Code:
.386
.Model flat, StdCall
Option CaseMap:none
Include	\masm32\include\windows.inc
Include	\masm32\include\user32.inc
Include	\masm32\include\kernel32.inc
Include	\masm32\include\masm32.inc
IncludeLib	\masm32\lib\user32.lib
IncludeLib	\masm32\lib\kernel32.lib
IncludeLib	\masm32\lib\masm32.lib

MemberReload Proto :DWord, :DWord, :DWord, :DWord

.Const
IDC_TIMER Equ 3

.Data
ConnectMember DB "ConnectMember.txt", 0
GetNewPath DD 0040332DH
LoadMemberList DD 004040EDH

.Code
DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
 Mov Eax, TRUE
 Ret
DllEntry EndP
Loaded Proc
 Local GShWnd:DWord
 Mov Eax, DWord Ptr Ds:[6D5F50CH]
 Mov GShWnd, Eax
 Invoke SetTimer, GShWnd, IDC_TIMER, 60000, Addr MemberReload
	Ret
Loaded EndP

MemberReload Proc hwnd:DWord, uMsg:DWord, idEvent:DWord, dwTime:DWord
 Push Offset ConnectMember
 Mov Ecx, 61D4FC0H
 Call GetNewPath
 Push Eax
 Mov Ecx, 3A67980H
 Call LoadMemberList
 Ret
MemberReload EndP
End DllEntry

Compiled and 100% working, also i will explain the only important part:

Code:
 Invoke SetTimer, GShWnd, IDC_TIMER, 60000, Addr MemberReload

the GShWnd its the hWnd of father window, the IDC_TIMER is the producer wich cant not be 0 and the important part its the 60000 ms, wich means 1 minute and MemberReload is the fuction when it will jump once than timer has over.

Well this update the ConnectMember list, very usefull for some guys of payment server.

Way to compile it:

1.- Download MASM
2.- Open ML.exe and set:

ML.EXE /c /Cp /coff MyDLL.asm

3.- .obj file will be generated
4.- Open notepad and set this:

LIBRARY MyDLL
EXPORTS Loaded


5.- Save file has Mydefile.def
6.- Open Link.exe and set:

LINK.EXE /SUBSYSTEM:WINDOWS /DLL /DEF:Mydefile.def /LIBPATH: MyDLL.obj


Coded by FeN$x :kwasny(1)
Requested by Camus

Mission finished.

Good luck my brothers of coding and ciao.
 
Last edited:
Newbie Spellweaver
Joined
Oct 17, 2005
Messages
59
Reaction score
0
DLL compiled attached

Enjoy and thanks fen$x help me in my projet ;)
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jan 5, 2006
Messages
62
Reaction score
0
great.
Fenix correct me if i am wrong but in 1.02d server there was a limit in this file connectmember.txt the limit was 60 accounts.
now in 00.99.60 is there ant limit? and if it as can u remove it?
 
Initiate Mage
Joined
Jun 9, 2006
Messages
4
Reaction score
0
just a bit of a noob question, where can i find a guide on how to hook a dll to the gameserver?
 
Newbie Spellweaver
Joined
Oct 17, 2005
Messages
59
Reaction score
0
Fen$x told me that he will add a guide to make the Gs read the dll ;)
 
Newbie Spellweaver
Joined
Jul 1, 2005
Messages
77
Reaction score
0
Code:
C:\MASM32\BIN>link /subsystem:windows /dll /def:mydefile.def /libpath:mydll.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to IX86
LINK : fatal error LNK1159: no output file specified

Not understanding what I'm doing wrong...I have the .obj in the same folder
 
Junior Spellweaver
Joined
Nov 10, 2005
Messages
101
Reaction score
0
great.
Fenix correct me if i am wrong but in 1.02d server there was a limit in this file connectmember.txt the limit was 60 accounts.
now in 00.99.60 is there ant limit? and if it as can u remove it?

I have seeing this limit to 60 players in connectmember.txt is for all versions. Just put more than 60 and you will have an error mesage in any version. I dont have idea how global use a vip server to hold thousands users but it will be amazing to remove this 60 players limit.
 
Newbie Spellweaver
Joined
Oct 17, 2005
Messages
59
Reaction score
0
omg :(

if someone can check how to remove this limit...it would be nice

thanks by advance
 
Banned
Banned
Joined
May 24, 2006
Messages
590
Reaction score
0
nice i have a request.... a program (not a web!) with all the things that has a web.... create account,erase pk, add stats, reset... etc... but... for the 0.99.6xt with md5.... thx... i hope it can be done...
 
Newbie Spellweaver
Joined
Oct 17, 2005
Messages
59
Reaction score
0
Hi, i think there is not the right section to talk about websites...
 
Newbie Spellweaver
Joined
Mar 21, 2006
Messages
67
Reaction score
0
This .DLL might be a way to remove 60 ppl Limit..
It was just like taking off OLD 20 player On-limit
 
Newbie Spellweaver
Joined
Jan 5, 2006
Messages
62
Reaction score
0
This .DLL might be a way to remove 60 ppl Limit..
It was just like taking off OLD 20 player On-limit

well i think there is no limit in server 00.99.60.

i tryed to load the connectmember.txt with 80+ accounts and no error.

well if there is any limit is not 60.
 
Newbie Spellweaver
Joined
May 31, 2008
Messages
6
Reaction score
0
Re: [Release] DLL Code for "Private server"

Code:
C:\MASM32\BIN>link /subsystem:windows /dll /def:mydefile.def /libpath:mydll.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to IX86
LINK : fatal error LNK1159: no output file specified

Not understanding what I'm doing wrong...I have the .obj in the same folder

I'm too got this error. help us please
 
Junior Spellweaver
Joined
Aug 19, 2008
Messages
121
Reaction score
0
Re: [Release] DLL Code for "Private server"

/respect
Thanks!
 
Junior Spellweaver
Joined
Jan 30, 2007
Messages
178
Reaction score
2
Re: [Release] DLL Code for "Private server"

the last 3 posters are totaly idiots .... reviving a 2-years-old thread ... guys ur brain is missing faggets
 
Newbie Spellweaver
Joined
May 31, 2008
Messages
6
Reaction score
0
Re: [Release] DLL Code for "Private server"

Shut-up. lol. I need help, but i'm not need you stupid topic.
 
Back
Top