Jump to content
  • 0

Enchant Item :)


Question

Posted

Hello. Today i want to make something different. I want to add Items in shop ++ (Enchanted). and i put enchantmentLevel 10. All goods untill i buy item. In shop it is +10, i see it. But when i buy, i buy it +0. Can explain someone what's happend?

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

If you meant multisell, the obvious answer is Ingredient#getEnchantLevel() isn't used where it should be used, or you got some "protections" blocking you to get what you want.

 

Check regular L2J MultiSellChoose / MultiSellList and see where it's used (you must have 9 occurences).

 

----

 

If you meant regular player shop system, then the system is probably not implemented.

Edited by Tryskell
  • 0
Posted
21 minutes ago, Loftheim said:

"I know no Java, can you do it for me?" Incoming.

you can make a guide instead of judging him for not knowing something and stop beign idiot.

  • 0
Posted
<?xml version='1.0' encoding='utf-8'?>
<list maintainEnchantment="true">
	<item><!-- Dark Legion's Edge -->
		<production id="2500" count="1" enchantmentLevel="7"/>
		<ingredient id="57" count="100"/>
	</item>
</list>

Test this one and let us know.

  • 0
Posted
3 hours ago, Loftheim said:

"I know no Java, can you do it for me?" Incoming.

 

Well, an answer is a house, I gave some bricks. It's up to the community to give others bricks to make the complete house. I gave the good path to check, which is already better than saying anything wrong :). If someone else want to develop my answer, it's a public forums.

  • 0
Posted

Thank you guys. Was from somewhere else. Another question because i don't want to open another topic. Maybe someone hate me. Idk who. I have item "Scroll: Enchant Weapon of Destruction" and when i spawn in inventory, appear with black icon. Someone know a link with texture? L2jSunrise project. High Five

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...