Jump to content
  • 0

Custom Enchant Rate SyStem


Question

Posted

hello, i have one question, i have used search but can't find nothing like this.

 

i want to make custom enchant rate.

example: i have +17 Weapon I have Enchant and failed.weapon will set to +15.

example2: i have +9 Armor, I have enchant and i failed. armor will set to 5.

 

sorry for my bad english

11 answers to this question

Recommended Posts

  • 0
Posted

If you see the topic that i gave him it says that we can make item from at +5 enchanted (e.g.)

 

Look at his request again.

 

And now ontopic.

 

lekino - take a look on this class: RequestEnchantItem.java

 

look at this line:

 

synchronized (item)

 

if enchant was failed bla bla bla:

 

You can use this function

 

item.setEnchantLevel(item.getEnchantLevel() - PUT YOUR VALUE HERE);
  • 0
Posted

how to set in configs? in one russian forum i have found this but now i can't find it!

 

Check your configs..maybe your pack has it.

  • 0
Posted

up

 

I told you how can you do that.

 

Or maybe you're looking for READY MADE CODE -.O

 

Man, dont be lazy, its really easy, i told you how you can do it. So check it and try.

 

 

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