Need Help With A Sell 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 comminuty!

    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.

TheBiGuy

New Member
Oct 14, 2022
5
0
1
15
So im currently making a server shop and i have a shop gui that sells items the thing is im kinda new to skript but i have no idea what im doing wrong here can someone help me out?



on inventory click:
if name of event-inventory is "&8Sell Common Items":
cancel event
if clicked slot = 0:
if amount of cobblestone in player's inventory is less than 32:
send "&c&lYou Dont Have Enough items!" to player
if amount of cobblestone in player's inventory is more than 32:
execute console command "clear %player% cobblestone 32"
add 3.2 to player's balance


im probs a idiot lol id appreciate the help
 
Status
Not open for further replies.