Jump to content
  • 0

custom enchant failure


Question

Posted

how to set custom enchant failure?

example i have +18 Arcana Mace. I Have Failure Enchant,but weapon set not to +0. it's set to +15

example2: i have +9 Draconic Bow. I Have Failure Enchant,But Weapon Set not to +0.it's set to +5

 

 

sorry for my english. i hope you understand what i want

10 answers to this question

Recommended Posts

  • 0
Posted

I already told You what you have to do, so whats the point to starting another topic with same subject.

  • 0
Posted

he said

 

Look at his request again.

 

And now ontopic.

 

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

 

look at this line:

 

Quote

synchronized (item)

 

if enchant was failed bla bla bla:

 

You can use this function

 

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

 

and if i write this

 

item.setEnchantLevel(item.getEnchantLevel() -15);

 

and if i failure at +6 weapon will enchant to +15?!

  • 0
Posted

Lol, we cant help you?

 

We did.

 

if you dont understand it, its not our problem, we gave you solution already.

 

I will explain it ONCE AGAIN:

 

item.setEnchantLevel(item.getEnchantLevel() -2);

 

Add this method after enchant item failed, and:

 

if you enchant is failed, it will get getEnchantLevel (so for example +10) and -2 ...so after failed enchant it should be +8

 

got it  :-\?

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