#Inventory

1 messages · Page 1 of 1 (latest)

full fossil
#

hi. I want to make prefixes for the currency. can I make an inventory menu where players can buy and see available prefixes and unavailable ones in order to apply them? This will be the store menu and the player's interaction with prefixes so that he can select one of the available (purchased) prefixes and change them easily.

fickle atlas
#

possible

#

you can set different items with lore explaining what would be the currency type after clicking on it. lets say you have 2 items; specifically usd and eur. eg: if a user clicks on usd item they will see a menu with items in the store (menu) in dollar currency

#

let me know if you didnt understand

#

but, do you have more than one currency? or you're just trying to display $ value in other currencies

full fossil
fickle atlas
#

yeah sure

fickle atlas
full fossil
#

Oh, how to explain it. I want to implement a store that will have icons (LuckPerms prefixes), when buying, and later selecting which the player will receive an icon next to his nickname

fickle atlas
#

Oh did you mean, creating a rank shop?

#

where people would buy a specific luckperms' group (rank) for certain amount of money?

full fossil
#

Here's the staff badge. I want players to be able to purchase a similar badge for currency. Make about 10 such icons so that players can buy them and choose if they bought it from them

fickle atlas
#

what's your group name in luckperms for staff?

full fossil
full fossil
fickle atlas
full fossil
#

yep

fickle atlas
#

also i understand wdym by "career boost"

fickle atlas
full fossil
#

Without a difference. They will be called something like badge1, badge2... badge10

fickle atlas
#

oh btw, are these badges some emoji in tablist?

full fossil
#

Yes, its unicode symbols

fickle atlas
#

okok, send them to me

full fossil
#

example:
☠ ♪ 🪓

fickle atlas
#

are you using any command to set them in the tablist

#

or they're prefixes of a luckperms' group

full fossil
#

These are prefixes

fickle atlas
#

so what are the group names?

#

the mechanism would be like, a player purchases a badge from store, this would instantly set the recent purchased badge in the tablist and will be stored somewhere (lets say a place in menu). upon purchase we can set an action command like giving a specific luckperms' group. so for this approach we'll need the group names

full fossil
#

Yes, that's right. The names of the groups "badge1" and so on

fickle atlas
#

alright

fickle atlas
fickle atlas
#

also what would be the price of badges, starting from 1 to 10

full fossil
#

It's not that important. I can edit this at any time. Prefix weight = 0. Names, prices, any up to badge 1 and 10000

fickle atlas
#

alright

fickle atlas
#

hey @full fossil currently for some reasons, i cant play minecraft can you test the menu?

#

i just finished creating the shop menu, if this works fine then we'll move to the badge inventory (the place where all badges would be saved)

full fossil
#

Yes, I will be able to do it soon

fickle atlas
#

ping me when you're ready

full fossil
fickle atlas
full fossil
fickle atlas
#

alright

#

problem was bad indention near has_badge6:

full fossil
#

Cool, it works

#

It shows everywhere that I have an icon. What's next?

fickle atlas
#

if you have the badge10 permission it will show you already have this badge to all the stars

#

try with no badge permission it should show the price

full fossil
#

And more. Will it be possible to make it possible to buy badges using 2 currencies? This is the player's choice. Either buy with virtual currency, which he will receive as a reward in a mini-game, or through a donation

fickle atlas
#

lets imlpement the current one first 😅

fickle atlas
# full fossil cool

btw did you change the inventory size in the .yml? it should show 36 slots

full fossil
#

and how is the verification for the presence of a group implemented? by weight of the group?

fickle atlas
#

also are you using TAB by neznamy for tablist?

fickle atlas
#

the group.badge1 permission wont work if the player doesnt have badge1 group. it is used to grab all the permissions from badge1 group. this is little confusing so i decided to go with weights

full fossil
#

I'll come back to the tests a little later. I'm in college now happykitty

fickle atlas
#

okok

full fossil
#

will we be able to implement the selection of the desired icon from the already purchased ones in the menu?

fickle atlas
#

thats the thing im currently working on

full fossil
fickle atlas
fickle atlas
full fossil
fickle atlas
#

thats not the weight of prefix

#

oh wait

#

my bad

#

i havent tried multiple prefixes for a group

#

but that might be the prefix weight, you're correct

#

probably they're used when multiple prefixes are set upped

#

though, i was little bit confused with it so i used the weights option

#

they might work the same way

full fossil
#

I'm already on my way to the computer

fickle atlas
full fossil
#

[08:53:10 ERROR]: [DeluxeMenus] Detected invalid configuration in file: badgeinventory.yml
[08:53:10 WARN]: [DeluxeMenus] Menu: badgeinventory in file: badgeinventory.yml not loaded.

full fossil
# fickle atlas

[091156 ERROR]: [DeluxeMenus] Detected invalid configuration in file: badgeinventory.yml
[091156 WARN]: [DeluxeMenus] Menu: badgeinventory in file: badgeinventory.yml not loaded.

fickle atlas
#

😞

#

doesnt look like theres any problem

full fossil
#

When I specify inventory_type: "CHEST", the menu does not open. I'm cutting this out

#

And I register the /badges command to open the menu

#

I don't understand what the problem is with the second menu

full fossil
#

is there any way to view the error in more detail?

fickle atlas
#

wait let me parse them again

full fossil
full fossil
fickle atlas
#

they're correct

fickle atlas
full fossil
#

Only the first menu (store) is loaded

fickle atlas
fickle atlas
full fossil
#

not working

fickle atlas
#

try removing the size: 54 line

full fossil
fickle atlas
#

aaaaaaaa

#

ah shit.

#

i guess.

full fossil
#

🎉

fickle atlas
#

OGM

#

OMG

#

I

#

SAW some

#

i mean alot of

#

errors.

#

THIS wasnt showing with helpchat's parse

full fossil
fickle atlas
full fossil
#

No, not again

fickle atlas
#

what does it show this time

full fossil
#
[09:42:53 WARN]: [DeluxeMenus] Menu: badgeinventory in file: badgeinventory.yml not loaded.
[09:42:53 INFO]: [DeluxeMenus] 1 GUI menus loaded!
[09:42:53 INFO]: [DeluxeMenus] You are running the latest version of DeluxeMenus!```
fickle atlas
#

try adding an open_command temporarily to the badgeinventory.yml

full fossil
#

Nothing has changed

fickle atlas
#

now i feel like

#

i misspelled something

#

gotta check everything

full fossil
#

siuuuuuuuuuuuuuu

fickle atlas
#

great.

full fossil
fickle atlas
#

continue the test now

full fossil
#

The inventory does not open, only sound is played

fickle atlas
#

alright i understand why

#

remove [close] from the end of shoptestdm.yml

    - '[broadcastsound] ENTITY_PLAYER_LEVELUP 1 1'
    - '[openguimenu] badgeinventory'
#

do the same with badgeinventory.yml

full fossil
#

now it does not close, but the next menu does not open either. The sound is being produced

#

I understood. If you use inventory_type: "CHEST", the menu will not open

full fossil
#

now I'm going to try to add some plugin to the currency and check the purchase

fickle atlas
#

you'll need to adjust the click commands according, i made the menu considering essentialsXeconomy

full fossil
#

I have installed the Coins Engine. I can buy an icon, but the store does not display a message saying that the icon has already been purchased and I can buy it over and over again. But it does not appear in the inventory

full fossil
#

yes

fickle atlas
#

send the luckperms editor

#

you can dm me

full fossil
fickle atlas
#

yes

fickle atlas
#

oh wait

#

makes sense

#

give me some time

full fossil
#

the first is the main account, the second is a twink

#

the first with OP, the second without

fickle atlas
#

and /dm reload

full fossil
#

works. but what about the fact that the store does not display that the icon has already been purchased and I can re-buy it?

fickle atlas
full fossil
#

work

fickle atlas
#

ing or not

#

.

full fossil
fickle atlas
#

depends on what currency you mean

#

first confirm if you can run more than one currency in your server

full fossil
#

Yes, it can be done with Coins Engine

fickle atlas
#

alright

#

but how will you tell the dm to use that specific currency?

#

what would be the command for 2nd currency