Items with lores - selling
blablubbabcDEV opened this issue ยท 6 comments
Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/197
Originally posted by Rotebay (Nov 9, 2013):
What steps will reproduce the problem?
- Trying to sell item with custom name and lores.What version of the product are you using?
v1.15.1
1.6.4 R 0.1Do you have an error log of what happened?
NoPlease provide any additional information below.
It's possible to buy items with custom lores and everything is working, i can sell the same item that i've bough, but for example when i summon it by command from EpicBoss in this case they could not be seen as this item. When I put them in slot, amount of emeralds is printed but i cant actually take them to my inventory, they keep going back to this slot. It's weird, becasue i can normally buy items, and they have lores, and i can sell items with lores that i've bough from the same npc.
Originally commented by blablubbabc (Nov 26, 2013):
ShopKeepers compares the item you have given it and the one it accepts:
This comparison also compares the Attributes of the item (besides: for which no official bukkit api yet exists). EpicBoss creates the item with some (custom) attributes, which the item the ShopKeeper accepts probably doesn't have and therefore rejects.
Also, the ItemStacks for the ShopKeepers are currently saved using bukkit's own config-serialization (which currently does not include the attributes, means, attributes are lost on saved items): you can check out the existing bukkit ticket(s) on this here: https://bukkit.atlassian.net/browse/BUKKIT-4527
Edited Nov 26, 2013
Originally commented by nisovin (Dec 3, 2013):
The items must be identical in every way in order for the trade to work. I assume EpicBoss is creating an item that is not identical to the other item you are trying to use.
Originally commented by blablubbabc (Mar 11, 2014):
Closed. Please create a new ticket if you still have issues with this.
Originally commented by Radray (Dec 15, 2013):
This is an issue with the EpicBoss plugin.
Any custom item made with EpicBoss has four attribute fields named, regardless of if you add attributes or not. Shopkeepers doesn't seem to handle that too well, but the issue is with EpicBoss, as it should only be modifying attribute values when you specify it.
I have already reported this issue on the EpicBoss forums.
Any other item made normally with attributes works fine with the latest Shopkeepers.