Xivkyn codes BUG
i noticed some items can change their ID, if they become listed to the store
BEFORE i list it to the store: |H1:item:57842:5:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h AFTER i list it to the store THE SAME ITEM become |H1:item:57842:5:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h if i Cancel item it become again |H1:item:57842:5:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h meet it with legs also and i believe with other parts too it must be reproduceable So for example if player will try to search with AGS using itemlink in text field from his inventory he will found NOTHING so he need to change itemlink first and replace 1 with 50 |
Quote:
For example crafting material can have different level (3rd value after "item"), glyphs can have different motif (16th value), all items has information if item is stolen (19th value) etc. You can't just directly compare two item links as a string and tell if both links are the same item. For ITEMTYPE_RACIAL_STYLE_MOTIF you need just itemId. Even if you change other values such as level or quality item link will look always the same. |
I see it more as an inconsistency than a bug.
The first time I noticed this was with recipes in the guild store. There can be 2 identical recipes with two different links: Code:
|H1:item:45999:3:8:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h I will at some point improve it to compare item links intelligently, but there are other things I want to do first. P.S. If anyone is interested in writing a library for comparing item links, I will gladly use it. ;) |
Quote:
you dont unerstand look i list item to the store then if i search item in the store or go to the list tab and try to link exactly this item to the chat - i will receive different id then before so item id changed |
not the same bug
but vr16 potency rune also can have 1 or 50 variants |H1:item:57842:5:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h |H1:item:57842:5:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h |
I think it is the same for every itemtype that cannot be crafted.
In order to compare these links correctly, we would need to handle every item category differently. It should be possible to quickly discern similar items via the itemId and then further separate them depending on the category. |
The :ITEM ID: is in every link exactly the same. If you really want to look for a specific item, you should split your itemlink at ":" and look for the 3rd value, as Garkin wrote, you cannot compare whole itemlinks to get a save result.
If you further want items in specifc quality or level you can add these paramters and construct a own link to search for. |
That's correct, but it won't work that way for potions for example. And they are the main reason why I added it in the first place. Being able to filter for tripots is something that was not possible in AGS before that, because "Potion of Health" would filter regular and crafted items all the same and only checking the item type would also match different potions.
|
Quote:
I'm not claiming that I know how it works internally, but I believe that game server holds just relevant information about each item type, not whole item link. All values which are not important are probably filled with some default values (for example for level it could be level of your character). |
All times are GMT -6. The time now is 08:34 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI