Jump to content

  •  

Mikado

Member Since 13 Jul 2013
Offline Last Active Aug 19 2014 12:38 AM
-----

Topics I've Started

Changing client login packet

29 August 2013 - 05:55 PM

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Hello everyone, my client uses 0x0064,55 for login, and I want to change it like 0x0078. I already know what to change server side but, how I find it in my client to change it? What do I need to hex in the client?[/color]

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Thank you.[/color]


Editing packet keys client side

12 August 2013 - 12:44 PM

So, these are the packet keys for 2012-04-10 in packets.h

#if PACKETVER >= 20120410	packetKeys(0x01581359,0x452D6FFA,0x6AFB6E2E); /* Thanks to Shakto */#endif

Pretty easy to change, but, how to find and edit them in the client with an hex editor?


TimerFunc function not firing

10 August 2013 - 06:02 PM

Hi all.

 

I've got an atcommand which calls a TimerFunc function via iTimer-> add_timer() and so. If my TimerFunc is in atcommand.c it works fine, but if I use it from pc.c it doesn't work (it doesn't call it, neither crash or debugs).

 

This is the call from the atcommand when the timer Function is in atcommand.c:

sd->autopots_tid = iTimer->add_timer( iTimer->gettick() + 1000, autopots_timer, sd->bl.id, 0);

 

And this is how I call it when the timer function is in pc.c

sd->autopots_tid = iTimer->add_timer( iTimer->gettick() + 1000, pc->autopots_timer, sd->bl.id, 0);

Registered in pc.h as:

int (*autopots_timer) ( int tid, unsigned int tick, int id, intptr_t data);

 

Thanks in advance.


2012-04-10 lub files and translations

07 August 2013 - 10:16 PM

Hi, 2 points:

- I diff'd my client with "Load LUA before LUB", it's ok for the data folder part, but it's not reading my .lua files inside /System, asking for lub files. What do I do in this case?

- Some parts of my client (specific buttons and sections) are not translated [source] I'm using the latest translations from here https://subversion.a...de-translation/

 

Thank you.


Double md5 with salt for storing passwords

07 August 2013 - 03:46 PM

There are thousands of available dictionaries out there with md5 encrypted/decrypted passwords. This is the reason I guess Hercules should move to (or at least, make it available) some kind of "double hash" with salt.

 

Something like md5( salt + md5( password )), where the salt is defined by the server owner with a custom conf setting.