evilpuncker

Get last_mac Address

42 posts in this topic

Let me see what I can do

Edit: Might not able to test the edit, since I don't have Launcher (and I need to recompile the server , which I couldn't afford atm)

Here you go:

https://github.com/dastgir/HPM-Plugins/tree/master/diff

OMG! TNX dastgir!

 

 

 

Tested and:

I don't know if it is related. but somehow, if i use ROCRED it always says failed (no error in map-server) to connect to server after character select. cant seem to check if last_mac is working. but i can log in without the ROCRED launcher could not detect last_mac.

 

FIXED! WORKING!

Edited by MikZ

Share this post


Link to post
Share on other sites

@@Alexandria rocred is not an updater, but a login tool :P

 

 

 

@Topic

Updated it to the latest Hercules source code (as of the date of this post) and changed patch format to Git compliant, and added some mirrors.

 

Its confusing me. is this working or no? the First line of this topic is "it is not working" 

please edit if its working now. TY

Share this post


Link to post
Share on other sites

Buenas, esto funciona? esta muy bueno la verdad! y e intentado meterlo manual pero no encuentro la linea

 

char *accname = (char *)RFIFOP(fd, 9);
         char *token = (char *)RFIFOP(fd, 0x5C);
+        char *mac = {(char *)RFIFOP(fd, 60)};
         size_t uAccLen = strlen(accname);
+        size_t uMac = 18;
         size_t uTokenLen = RFIFOREST(fd) - 0x5C;
+        safestrncpy(mac,mac, uMac);
+        safestrncpy(sd->mac_address,mac, uMac);
 
         version = RFIFOL(fd,4);
 
en src/login/login.c
 
alguien me colabora? y decir si funciona o no?

Share this post


Link to post
Share on other sites

 

Buenas, esto funciona? esta muy bueno la verdad! y e intentado meterlo manual pero no encuentro la linea

 

char *accname = (char *)RFIFOP(fd, 9);
         char *token = (char *)RFIFOP(fd, 0x5C);
+        char *mac = {(char *)RFIFOP(fd, 60)};
         size_t uAccLen = strlen(accname);
+        size_t uMac = 18;
         size_t uTokenLen = RFIFOREST(fd) - 0x5C;
+        safestrncpy(mac,mac, uMac);
+        safestrncpy(sd->mac_address,mac, uMac);
 
         version = RFIFOL(fd,4);
 
en src/login/login.c
 
alguien me colabora? y decir si funciona o no?

Funciona...

Share this post


Link to post
Share on other sites

Error in clif :

lclif.c:87:37: error: ‘const struct packet_CA_LOGIN’ has no member named ‘mac_address’
  safestrncpy(sd->mac_address, packet->mac_address, 17); // Mac Length on Address is 17
 
Can somebody update patch file ?
Thx a lot !

Share this post


Link to post
Share on other sites

sorry, i bump :)

Thx for your help !

You might have added lines on other function in lclif.c,

It should go in lclif_parse_CA_SSO_LOGIN_REQ

Share this post


Link to post
Share on other sites

@Dastgir:

Thx for your reply, but it too difficult, i don't have the skill to do it.
the patch is not up to date :/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now