Jump to content
  • 0

different enchant rate


Napster321

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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;

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...