Jump to content

Recommended Posts

  • 3 weeks later...
Posted (edited)

Could you upgrade to the latest version of rAthena? @Break
There is something incompatible with src.
If possible, generate a .patch. I made the purchase but could not use it.

Thank you.

Edited by Badarosk0
Posted
On 7/27/2018 at 2:14 PM, Badarosk0 said:

Could you upgrade to the latest version of rAthena? @Break
There is something incompatible with src.
If possible, generate a .patch. I made the purchase but could not use it.

Thank you.

You can set the changes manually.

Posted (edited)
7 hours ago, Break said:

You can set the changes manually.

Open ../src/login/account.h

Search:

struct global_reg account_reg2[ACCOUNT_REG2_NUM];


The above line of code no longer exists in the file. Could help? Even if you do manual the instructions are outdated with the version of rAthena. @Break

Edited by Badarosk0
Posted
8 hours ago, Badarosk0 said:

Open ../src/login/account.h

Search:

struct global_reg account_reg2[ACCOUNT_REG2_NUM];


The above line of code no longer exists in the file. Could help? Even if you do manual the instructions are outdated with the version of rAthena. @Break

Open ../src/login/account.hpp

After: 

#ifdef VIP_ENABLE

int old_group;

time_t vip_time;

#endif
 

Add:

unsigned int lock_id;

 

Posted
4 hours ago, Break said:

Open ../src/login/account.hpp

After: 


#ifdef VIP_ENABLE

int old_group;

time_t vip_time;

#endif
 

Add:


unsigned int lock_id;

 

Thank you! @Break

 

For that part, what should I do?

-------------------------------------------------------------------------------------------------------------------------
Open ../src/login/account_sql.c

Search:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`level`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate` FROM `%s` WHERE `account_id` = %d",

Change to:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`level`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate`,`lock_id` FROM `%s` WHERE `account_id` = %d",

Search:

Sql_GetData(sql_handle, 12, &data, NULL); safestrncpy(acc->birthdate, data, sizeof(acc->birthdate));

Adding below:

Sql_GetData(sql_handle, 13, &data, NULL); acc->lock_id = strtoul(data, NULL, 10);

----------------------------------------------------------------------------------------------------------------------------------------------------

 

Posted

I will try to update in the near future for the latest version of the rAthena.

Open ../src/login/account.cpp


Search:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`group_id`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate`,`character_slots`,`pincode`, `pincode_change`, `vip_time`, `old_group` FROM `%s` WHERE `account_id` = %d",

Change to:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`group_id`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate`,`character_slots`,`pincode`, `pincode_change`, `vip_time`, `old_group`,`lock_id` FROM `%s` WHERE `account_id` = %d",

Search:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`group_id`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate`,`character_slots`,`pincode`, `pincode_change` FROM `%s` WHERE `account_id` = %d",

Change to:

"SELECT `account_id`,`userid`,`user_pass`,`sex`,`email`,`group_id`,`state`,`unban_time`,`expiration_time`,`logincount`,`lastlogin`,`last_ip`,`birthdate`,`character_slots`,`pincode`, `pincode_change`, `lock_id` FROM `%s` WHERE `account_id` = %d",

Search: 

#ifdef VIP_ENABLE

Sql_GetData(sql_handle, 16, &data, NULL); acc->vip_time = atol(data);

Sql_GetData(sql_handle, 17, &data, NULL); acc->old_group = atoi(data);

#endif

After add:

Sql_GetData(sql_handle, 18, &data, NULL); acc->lock_id = strtoul(data, NULL, 10);

 

  • 2 years later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...