Jump to content

Question

Posted (edited)

Regards
I will try to be accurate. I've created my server with this: eliteadmins.l2jhispano.com/threads/high-five-preconfigurado-ii-masterio-pack-mods-custom-eventos-npcs.6705/

Well... I need the java code to limit the maximum enchant of the player skills to 10 or 15. I searched in other forums but only found half codes or requiring of eclipse (I dont know how to use it u_u ).
The server has not open yet (there's no player with skills already enchanted), so I just need only the limitation.

Please some help :D

Edited by Alcark

4 answers to this question

Recommended Posts

  • 0
Posted

Well, the whole process of building a server requires Eclipse due to various reasons like editing the core, fixing something etc.. :lol:

You really should learn how to use Eclipse, there is not another way!

  • 0
Posted (edited)

This will be a fast server and... well...  I've created and opened servers before, only fast servers 'course (not requiring too many fixes) without knowing eclipse, just the basics in java and db management. So... any help with the code? >.<

Edited by Alcark
  • 0
Posted

Ok, go to data/stats/skills, find ALL enchantable skills and remove the last 15 numbers in "#enchMagicLvl"... it looks like this:

Triple Slash

<table name="#enchMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table>

You should do that for each enchantable skill in the xml files... or you can download Eclipse and just put one if statement to do that for you.

  • 0
Posted

That won't change the fact that you (still) can enchant those skills - just no bonus. So, you can do like Tessa suggested, change > 10 the bonus, keep the same as 10.

 

To restrict the enchantment > 10, you must do it from core side.

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