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:
DLL compiled attached

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

Attachments

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?
 
Fen$x told me that he will add a guide to make the Gs read the dll ;)
 
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
 
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.
 
omg :(

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

thanks by advance
 
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...
 
Hi, i think there is not the right section to talk about websites...
 
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
 
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
 
Back