1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with my skript

Discussion in 'Skript' started by maxall4, Jan 27, 2019.

Thread Status:
Not open for further replies.
  1. maxall4

    maxall4 Member

    Joined:
    Jul 18, 2018
    Messages:
    11
    Likes Received:
    0
    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
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,122
    Likes Received:
    157
    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
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.
Loading...