Jump to content
  • 0
Sign in to follow this  
Alexandria

Reset Forger/Brewer and Taekwon rank

Question

2 answers to this question

Recommended Posts

  • 0

I don't think its possible

by reading the source, the source also actually built the list upon sql_handle

https://github.com/HerculesWS/Hercules/blob/master/src/char/char.c#L2724

then compare the list each with the player's char id

https://github.com/HerculesWS/Hercules/blob/master/src/map/pc.c#L355

 

problem of resetting the value while server is online is the sd->status.fame require players to online

its not like the list is actually built internally with a sorting algorithm or ladder algorithm

it actually do a constant listing with sql_handle

 

so the only way to correctly reset the variables is do it when the server shut down

update `char` set fame = 0;
update char_reg_num_db set value = 0 where `key` = 'TK_MISSION_ID' or `key` = 'TK_MISSION_COUNT';

Edited by AnnieRuru

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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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