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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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