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:
also everything but the item showing the right price works (dont scream at me saying theres errors in the code skript shows none)
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)