Jump to content

Skript, i have a /sell skript it takes the items but it won't give the money


CollinUpp

Recommended Posts

hi, I wanted to make a /sell command but it works fine it won't give me any errors and the items that should be sold gets removed from inventory but it won't give u the money I hope someone can help 

here is the skript:

command /sell:
    trigger:
        set {_dirt} to amount of all brown dye named "&6&lDirt &6Drop" with lore "&7" and "&a&lINFO:" and " &7Tier: &2&l1" and " &7Sell Value: &2&l$4" and "&7" and "&a&lDROP" in player's inventory
       remove all  brown dye named "&6&lDirt &6Drop" with lore "&7" and "&a&lINFO:" and " &7Tier: &2&l1" and " &7Sell Value: &2&l$4" and "&7" and "&a&lDROP" from player's inventory
        set {_1} to {_dirt}*4*{mutli::%player's uuid%}
        play sound "block.note_block.chime" with volume 3 to player
        set {_total} to {_1}
        send "<##ba00fb>&lB<##c700de>&la<##d500c1>&ln<##e200a4>&lU<##f00087>&lp<##fd006a>&lp&r &8» &5You sold all items for &7$%{_total}%"
        add {_total} to player's balance

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...