Jump to content
Break

Release: @lockid - Account Protection for Gepard

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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;

 

Share this post


Link to post
Share on other sites
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);

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

 

Share this post


Link to post
Share on other sites

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);

 

Share this post


Link to post
Share on other sites
Posted (edited)

Hello, I  bought  this system, could you help me, I get this error when compiling

image.thumb.png.515fc3abdd591fcbb748895e77016567.png

Edited by somer14

Share this post


Link to post
Share on other sites

Try... @somer14

Open ../src/common/mmo.hpp

Search:

struct mmo_charstatus {

After add:

unsigned int lock_id;

 

Share this post


Link to post
Share on other sites
Posted (edited)

I'll try very well and I'll tell you how it went

 

Edited by somer14

Share this post


Link to post
Share on other sites

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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.