Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #005018

  • 3 - Medium

  • Fixed

Issue Confirmations

  • Yes (5)No (0)
Photo

Skills not granted permanently through script

Posted by Hercules Bot on 08 August 2011 - 04:06 AM

Originally posted by Epoque
http://www.eathena.w...er&showbug=5018

I've just implemented an NPC which will grant a player ALL_BUYING_STORE once paid for. I expected: skill "ALL_BUYING_STORE", 1, 0; to permanently grant the player the skill. However whenever I logout and login on the character, the skill is removed (and must talk to the NPC again). I'm not sure if this is a skill specific problem, or a general script problem.

The NPC code is below.

CODE
    set Zeny, Zeny - 500000;
    set BUYING_STORE, 1;
    skill "ALL_BUYING_STORE", 1, 0;

Upon re-login, the skill has been lost. It seems permanent skills are saved in the database, but not sent to the client upon login.

This post has been edited by Epoque: Aug 7 2011, 09:22 PM

Originally posted by Ind
I couldn't reproduce, works fine on latest rAthena

Originally posted by Ind
Issue identified. Working on it.

Originally posted by Ind
Should be fixed in [rev=15825] reverted in [rev=15827]

Originally posted by Rozeniiz
when relogin buying store skill still hide

Originally posted by Earthlingz
couldnt we just add them to all jobs skill_tree.txt?

or probably make something like inherit the jobs so the skills doesnt need to put to each jobs just like the client skilltreeview and jobinheritlist luas (sounds like a not easy job to do though)

Originally posted by Rozeniiz
i try with merchant when i logout and login again the skill is disappear

Originally posted by Vali
bump

Originally posted by Altimage
bump

Originally posted by mkbu95
I think I did fix that in [rev=16908].
Let me know if I broke something/didn't fix properly.

Originally posted by Ind

I think I did fix that in [rev=16908].Let me know if I broke something/didn't fix properly.

you fixed this particular case; but overall any script-granted skill that is not preset in their skill tree goes away on relog (because they're not properly saved in the db)

Ind 
changed status to: Fixed

will update this reply with link to commit once it reaches the repository.

Finally :D
I tried fixing this on late nov but my fix was a bit of messy !_!