Jump to content
  • 0

different enchant rate


Question

Posted

i want add different enchant rates i try this one

                 if (_isWeapon)
                    chance = Config.ENCHANT_CHANCE_WEAPON;
			if (((L2ItemInstance) item).getEnchantLevel() == 10)
                		chance = 60;
			if (((L2ItemInstance) item).getEnchantLevel() == 11)
            		chance = 50;
			if (((L2ItemInstance) item).getEnchantLevel() == 12)
            		chance = 40;

but when i press the enchant button it stucks there

3 answers to this question

Recommended Posts

  • 0
Posted

Uh, can we get the full code? We're not sorcerers to read ur mind. XD

it is in AbstractEnchantPacket.java it was like that 
if (_isWeapon)
                    chance = Config.ENCHANT_CHANCE_WEAPON;

and i added these

				if (((L2ItemInstance) item).getEnchantLevel() == 10)
                		chance = 60;
			if (((L2ItemInstance) item).getEnchantLevel() == 11)
            		chance = 50;
			if (((L2ItemInstance) item).getEnchantLevel() == 12)
            		chance = 40;

  • 0
Posted

Question, how dose it "get stuck" ? some error? nothing happens. Give me the full details cus what i see there is a bunch of casts and checks.

 

Fixed on skype, Locked.

Guest
This topic is now closed to further replies.


×
×
  • 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