CollinUpp Posted December 4, 2022 Share Posted December 4, 2022 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 More sharing options...
Enchanted_Reeses Posted December 4, 2022 Share Posted December 4, 2022 maybe try removing the {_total} and just add {_1} to the players balance other reason, maybe balance isn't known by the skript and try setting it to a variable hope this helps Just a skripter who likes to have fun I also think I'm pretty good at it PS my discord is Enchanted#3933 incase idk anything? Link to comment Share on other sites More sharing options...
CollinUpp Posted December 5, 2022 Author Share Posted December 5, 2022 if you replace {_total} to 100 for example it works but if I add {_1} to it won't work somehow Link to comment Share on other sites More sharing options...
CollinUpp Posted December 5, 2022 Author Share Posted December 5, 2022 (edited) Nvm it won't work Edited December 6, 2022 by CollinUpp bc it won't work Link to comment Share on other sites More sharing options...
CollinUpp Posted December 6, 2022 Author Share Posted December 6, 2022 can anyone still help please? Link to comment Share on other sites More sharing options...
CallMeProMan Posted December 7, 2022 Share Posted December 7, 2022 Hello try balance of player instead of player's balance! Goodgoldbox Owner GeniedGens Owner Developer Meme cure depression Link to comment Share on other sites More sharing options...
CollinUpp Posted December 9, 2022 Author Share Posted December 9, 2022 sorry for the late reaction, I found out how to fix it. ty for y'all's time Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now