Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] API to directly create inventory items #131

Closed
DariALV opened this issue Feb 11, 2024 · 3 comments
Closed

[Feature] API to directly create inventory items #131

DariALV opened this issue Feb 11, 2024 · 3 comments
Assignees
Labels
done enhancement New feature or request

Comments

@DariALV
Copy link

DariALV commented Feb 11, 2024

Is your feature request related to a problem? Please describe.

I'm trying to create a gacha-like pokemon object to put on the market, with the use of Tasker, but since there are many pokemon, I cant use lootboxes for that matter, I just want to create an object with a pokemon data extracted from the PokeAPI, then add it to the inventory when another item is purchased. (Kinda like a lootbox without manually setting up the items, since they wont be added to the shop).

Describe the solution you'd like

I want an API that adds items directly to the inventory, instead of the shop.

Describe alternatives you've considered

The only workaround I found is to set the stock amount of the pokemon to 1, so after the user purchases the lootbox, a pokemon item is added to the shop, then bought and it just sticks there, sold out, which is kinda frustrating.

@DariALV DariALV added the enhancement New feature or request label Feb 11, 2024
@DariALV
Copy link
Author

DariALV commented Feb 11, 2024

In addition, I don't how does the predefined item "Coin loot box" work, but something like that would also be nice, to have the pokemon (Or any gacha item to generalize the problem) be added in a lootbox (Maybe using the lootbox API) without it being part of the shop. The "Coin loot box" has a chance to give 2 items, "A big bag of coins" and "A small bag of coins", but none of those are present in the shop, and I can't recreate this effect.

It would be nice to have, so you can have kind of collectibles, and track the amount of collectibles you've got, with an achievement, a stat or something else, but I'm having it rough to recreate obtaining collectibles smoothly.

@DariALV DariALV changed the title API to directly create inventory items [Feature] API to directly create inventory items Feb 11, 2024
@Ayagikei
Copy link
Owner

Sorry for the late reply!

The predefined item "Coin loot box" in LifeUp is actually a item that has been removed from the shelves(shop), but it still has inventory.

We will consider adding an unlist parameter to the add_item API and adding a dedicated unlist_item API to help solve this scenario.

@Ayagikei Ayagikei added the working on it working on this fixing this issue label Feb 20, 2024
@Ayagikei
Copy link
Owner

Ayagikei commented May 3, 2024

The corresponding parameters have been added in v1.94.0.

@Ayagikei Ayagikei closed this as completed May 3, 2024
@Ayagikei Ayagikei added done and removed working on it working on this fixing this issue labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants