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.

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock