Help with my 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.

maxall4

Member
Jul 18, 2018
11
0
0
25
so heres my code i installed mirror and Skquery but when i run it doesn't work





Variables:
{bal} = 0
{sellerID} = null
{NameS} = null
{CoalAMOUNT} = 15
{IIA} = 35
{slot0} = null
{slot1} = null
function CheckPlayerUUID():
if {sellerID} is the same as {uuid::%player%}:
Bukkit.getPlayer(Name).getName();
Name = {NameS}
message "you can't do that" {NameS}
if {slot0} is coal:
format slot 0 of player with air named "Nothing"
CoalAmount * {_X}
bal - CoalAMOUNT
if {slot0} is iron_ingot:
format slot 0 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is iron_ingot:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA
if {slot1} is coal:
format slot 1 of player with air named "Nothing"
IIA * {_X}
bal - IIA





on connect:
if {uuid::%player%} is not set:
set {uuid::%player%} to player's uuid





command /sell player:
set {uuid::%player%} to sellerID
if player's held item is coal:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
format slot 0 of player with coal named "coal" to close then run [CheckPlayerUUID]
slot0 = Coal
if player's held item is iron_ingot:
set {_x} to amount of player's held item in player
open chest with 5 rows named "&5Store" to player
if player {slot0} isn't air:
format slot 0 of player with iron_ingot named "Iron_Ingot" to close then run [CheckPlayerUUID]
{slot1} = Iron_Ingot




command /buy player:
open chest with 5 rows named "&5Store" to player
format slot 0 of player with {slot0} to close then run [CheckPlayerUUID]
format slot 1 of player with {slot1} to close then run [CheckPlayerUUID]
CheckPlayerUUID
 
OOF
1) Please use code blocks for your code. That's next to impossible to read when you just paste code like that
2) "doesn't work" Doesn't explain your issue. If you want help, explain what exactly is not working
 
Status
Not open for further replies.