Skip to content

custom enchant failure

Featured Replies

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

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

i wanted to do the same thing, Matim explained me and its not something difficult, do everything he said on the previous topic.

  • Author

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?!

as i see @ your request first you dont know maths, second put "4"

  • Author

i'm noob and please teach me how to do this:

 

at +5 - +9 enchant failure set to +5

at +10 - +14 enchant failure set to +10

at +15 to +19 enchant failure set to +15?

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.