Jump to content
  • 0

[HELP REQUEST] Skills Dissapears


Question

Posted

Hi all :) i have one problem with skills.. so i made some custom skills, add them through admin command (add_skill xxxx x) to test and their are working well but everytime as i restart game i need to add them again cause they dissapears from list and it only happens with skills i made ;/ anyone can help me with this ? its realy anoying :s

 

Edit:

oh.. and if i add it second time after restart i get this error in console:

Error could not store char skills: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrit

yConstraintViolationException: Duplicate entry '268476767-9993-0' for key 'PRIMA

RY'

but skill apears in list againt till next restart and is working fine, so don't get it .. what is wrong ? :/

9 answers to this question

Recommended Posts

  • 0
Posted

or add a restriction for your custom skills.

what do you mean? and there is no checkskillonenter ;/ the problem is that any skill i add stays in list for example "GM speed" but if add any of mine custom skill after restart it just dissapears from a list.. oh, and one more strange thing.. skill id stays in database "character_skills" and even if i do "remove all skills" via admin panel it still stays in database so i don't know what is the problem.. have i missed something while creating those custom skills or do i need to add them somewhere in engine itself?

  • 0
Posted

what do you mean? and there is no checkskillonenter ;/ the problem is that any skill i add stays in list for example "GM speed" but if add any of mine custom skill after restart it just dissapears from a list.. oh, and one more strange thing.. skill id stays in database "character_skills" and even if i do "remove all skills" via admin panel it still stays in database so i don't know what is the problem.. have i missed something while creating those custom skills or do i need to add them somewhere in engine itself?

What project are you using?

  • 0
Posted

Did you buy sources ?

does it really matters? no i haven't bought sources :) cause my budget is way too low ;/ but still i like doing some custom stuff ;) i have already implemented some npc buffer, few armors sets from god client with custom stats and sets skills, custom tattoos and dyes :P if you would like to ask why this project, well ... cause i love this project, their files are very clean, server is stable and it's easy to implement such a simple things :) oh and btw i found that if i add my custom skills to classes xml files their doesn't disappear anymore, but what i wanna do is to make a NPC shop where you can learn those skills for some special items ;D so i'm asking again if anyone can help me to solve this little problem :)

  • 0
Posted

It matters cause (if you don't know) I'm the project owner, and if you got sources (I don't speak of precompiled) it means some things :

 

- old revision (rev 174 was the last free) : outdated => no support.

- you bought, found, or decompile pack to make your server => versus the system I create => no support.

 

Finally if you got only precompiled, don't base your server project on it. A precompiled is used to report issues and test.

 

But ty for the good words, I appreciate it.

  • 0
Posted

well i'm not building a server it's just to see of what i'm capable to do :) just doing some things and looking if what i did is working or not :) and now i came over this thing that custom created skills stays in database but when i relog in game they are missing from list except if add them to classes xml and i dont understand if it's engine side thing or have i missed something ;) just it :)

 

oh and btw, a lil bit offtopic.. i know it's not a very big problem (so i dont know if i should post this in your forum "bugs report" section) but it's still kinda strange bug i think.. if i summon another instance of baium (id 29020) and hit him (he doesn't hit me back so i dont get any damage dealt to me) i die instantly :) maybe you can fix this in your next release (dont know.. just trying to be helpful) :)

 

ok now i'm going to try to make something new and maybe to fix this thing with skills :P

 

P.S.

thanks Tryskell your project really rocks ;D good luck to you and your team :) maybe one day i will be able to help you with you pack (cause at the moment i know only some basics and next year i'll have lot of Java programing lectures) :P

  • 0
Posted

Grandbosses are supposed to be spawned only once because they're all affected by a script (and sometimes a zone and enironnement), if you check Queen Ant on any other pack (latest L2J included so far) if you spawn it twice you will get a NPE for example. Latest I will probably include a check as RaidBoss (if already spawned/alive, can't spawn).

 

About your skills issue, the fact they're in DB looks normal, and the fact they aren't loaded is normal too in case of duplicate entries in DB.

 

Now how to explain you got duplicate entries ?

 

It can be :

- your custom skills which use an existing skillId and is registered like that on DB. I invite you to check the "movement" of SQL entries and what is exactly stored.

- the "give_skill" which doesn't clean correctly previous skill, or perhaps you tried to added twice the same skill and there isn't check to see if it is already existing, and so it adds a clone.

 

There are many possibilities.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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...