Solved Problem shop skript

  • 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!

Status
Not open for further replies.

MerciFullFdF

New Member
Nov 23, 2019
6
0
0
command /shop:
trigger:
open chest with 1 rows named "&cShop" to player

if player's money is less than 50:
format slot 0 of player with diamond sword named "&c&lDiamond Sword" with lore "&e&oClick here to purchase a diamond sword.||||&fPrice: &a$&c50||||&cYou can not afford||&cthis ability!||&e&oYou need: &a$&c%50-(money of player)%" to be unstealable
if player's money is more than or equal to 50:
format slot 12 of player with diamond sword named "&c&lDiamond Sword" with lore "&e&oClick here to purchase a diamond sword.||||&fPrice: &a$&c50||||&dBalance: &c%player's money%||&dAfter Purchase: &c$%(money of player)-50%" to close then run [make console execute command "give %player% diamond_sword 1"]->[subtract 50 from player's money]->[send "&aYou bought a diamond sword for &c$50"]


don't work
 
Can you share the error? Also, you need to indent.
Empty configuration section! You might want to indent one or momre the subsequent lines to make them belong to this section or remvoe the colon at the end of the line if you don't want this line to start a section. (shop.sk, line 7: if player's money is more than or equal to 50:
Empty configuration section! You might want to indent one or momre the subsequent lines to make them belong to this section or remvoe the colon at the end of the line if you don't want this line to start a section. (shop.sk, line 7: if player's money is less than 50:
 
Status
Not open for further replies.