odin wrote:Super neat!!! Can this be done with items, too?? I mean an item wont auto cancel, but If I'm making a trade i can see if i offered a pet and not offer it, but theres no *this item in already in a trade* under the item like it do with pets. I collect items to have 1 of every item, so i don't wanna accident offer like both copies of an item at the same time and then have to go back and find it again for my collection. 😂
winx wrote:odin wrote:Super neat!!! Can this be done with items, too?? I mean an item wont auto cancel, but If I'm making a trade i can see if i offered a pet and not offer it, but theres no *this item in already in a trade* under the item like it do with pets. I collect items to have 1 of every item, so i don't wanna accident offer like both copies of an item at the same time and then have to go back and find it again for my collection. 😂
Added item functionality! Can download this update here: https://greasyfork.org/en/scripts/52335 ... her-trades
Please keep in mind that pets and items on CS are fundamentally different. Pets have unique IDs, meaning each pet is one-of-a-kind. When you search for a pet ID, it's the only version of that pet, and trading it away will automatically cancel any other trades containing that same pet. Items, on the other hand, do not have unique IDs. If you have the same item in two different trades, it won't automatically cancel unless you only have one copy of the item.
If I wanted to alert a user that they only had one copy of an item available, this would likely require iterating through their "My items" collection, identifying the item by ID, and then targeting the numerical value before "available". I couldn't figure it out this time, but I may revisit it in the future. I'm more-so concerned about how long it might take to iterate through every page until it hits a match, but that gets into convoluted sorting algorithm knowledge that no one wants to hear about lol.
Users browsing this forum: No registered users and 7 guests