how the fu- (yea i solved it without help so uhhh)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

completeidiot

Member
May 5, 2024
46
1
8
so ive been making a shop in skript, with the price increasing every time you buy something, but it always shows <none> in the price. i checked to see if it worked with a command and it did but not on the item lore

NOTE: its the lore on the item (the text under the name) that shows <none> where the price should be.

code:
Code:
on load:
    set {gen} to green concrete named "&2Money Gen" with lore "&eCosts %{genprice::%player's uuid%}% &2Money!"

on right click:
    if clicked block is fletching table:
        open virtual chest inventory with 5 rows named "&eMarket" to player
        set slot 0 of player's current inventory to yellow stained glass named "&eClick These Items To Change Shop Page! ->" with lore "&8Welcome %player%!"
        set slot 1 of player's current inventory to sunflower of mending named "&fMoney Generation" with lore "&8Welcome %player%!"
        set slot 9 of player's current inventory to {gen}

on inventory click:
    if event-inventory is not player's inventory:
        close player's inventory
        if clicked slot contains {gen}:
            if {money::%player's uuid%} is above 14:
                subtract {genprice::%player's uuid%} from {money::%player's uuid%}
                set {genprice::%player's uuid%} to {genprice::%player's uuid%} + {genprice::%player's uuid%} / 2
                give player green concrete named "&2Money Gen" with lore "" and "&a&l| &7Generates &aMoney"
            else:
                send "&cYou do not have enough money for that!" to player

on left click:
    if clicked block is fletching table:
        set event-block to air
        give player fletching table named "&eMarket" with lore "" and "&a&l| &7Purchase Items"

command /genprice:
    trigger:
        send "%{genprice::%player's uuid%}%" to player

also everything but the item showing the right price works (dont scream at me saying theres errors in the code skript shows none)