[Source] Memory Allocation

Experienced Elementalist
Joined
Dec 8, 2012
Messages
264
Reaction score
41
Hi Guys Today I'll Be Sharing Memory Allocation For Server

This is not yet complete but working 80% I'm still hooking it on asm.

Source
int totalAllocMemory;

__declspec(naked) void NKD_PUSH02()//0x442E72
{
__asm
{
PUSH totalAllocMemory
PUSH 0x0C4C

MOV jmp_addr, 0x442E79
JMP jmp_addr
}
}

JMP_NEAR(0x442E72, NKD_PUSH02, 2);



Hook
int totalPlayers = 0;
int i = 0;
for(; i < MAX_PLAYER; i ++)
{
if(cUser.Status != OFFLINE) //offline = 0
totalPlayers++;
}

if(totalPlayers <= 0 || totalPlayers > MAX_PLAYER)
Log("An Error Has Occured While Allocating The Memory", "-DLL", FALSE);

totalAllocMemory = totalPlayers++;
JMP_NEAR(0x442E72, NKD_PUSH02, 2);


Function
totalAllocMemory --;
 
oh ok thanks... working 100%

hope you finish it done hooking in asm.. so it can work perfectly smooth man :)

anyway... thanks for this source
 
would you mind if you share your other sources too??

because i see alot of cool stuffs in your source last time XD

maybe next time.. because last time i already gave 1 person my whole source and now he's selling it hahahahahah =))

and he really fucked me up TROLOLOLOLOLOLOLOL :/:
 
yeah its so annoying.... and now he's selling it for high cost money

any source to be share? what's your next plan?

share your source of memory heap too ! puh-leaaase! .. i'm begging for that one..

its good even 1gb vps can handle ep8 server if have memory heap ,, i already saw it on other players who have source
 
any source to be share? what's your next plan?

share your source of memory heap too ! puh-leaaase! .. i'm begging for that one..

its good even 1gb vps can handle ep8 server if have memory heap ,, i already saw it on other players who have source

well its true.. but its not yet time to share that source..
 
well its true.. but its not yet time to share that source..

how about a trade?

my dark lunar files and other files from ranworld to your memory heap source?

well anyway.. still you got cool stuffs XD ... i already heard you need other files from ran world..

well anyway can you teach me hooking in asm? cause your pro hahaha .. you are really really nice in hooking in ASM XD
 
how about a trade?

my dark lunar files and other files from ranworld to your memory heap source?

well anyway.. still you got cool stuffs XD ... i already heard you need other files from ran world..

well anyway can you teach me hooking in asm? cause your pro hahaha .. you are really really nice in hooking in ASM XD

nah i'll just wait till someone share that files here .. i know you are good leecher when it comes to files in ran world.. but no thanks i don't negotiate that thing for files.. i will share my sources soon , but for now .. not .. because i have trauma already ahhaha =))

like what you seen in my signature I'M NOT GOOD IN SOURCES and I'M JUST NOOB DEVELOPER hhahahah =)) , i just study them because i bought plenty of books all about VISUAL C++ and ASM
 
Back