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 out 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.

Solved gui problem

Discussion in 'Skript' started by Hartvig, Jul 2, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    Problem:
    I can't make an item in my gui, the 4 red glass panes work, but it's dosen't work.

    Skript addons:

    Skript
    skDragon
    ExertSK
    skUtilites
    LargeSk
    TuSKe
    SkAction
    skRayFall
    WildSkript
    RandomSK
    SkQuery
    ExtrasSK
    SkStuff

    Error:
    https://gyazo.com/992505b0e2b4f7dbd98a63e04c154b53

    Code:
    Code (Skript):
    1. if arg 1 is "farve":
    2.             if {team.%player%} is set:
    3.                 if {team.owner.%{team.%player%}%} is player:
    4.                     open chest with 2 rows named "&4Vælg din team farve" to player
    5.                     wait 3 ticks
    6.                     format slot 0 of player with red glass pane named " " with lore " " to be unstealable
    7.                     format slot 8 of player with red glass pane named " " with lore " " to be unstealable
    8.                     format slot 9 of player with red glass pane named " " with lore " " to be unstealable
    9.                     format slot 17 of player with red glass pane named " " with lore " " to be unstealable
    10.                     format slot 1 of player with white wool named "&f&lHvid" with lore "&aTryk for at vælge &f&lHvid|| &asom dit teams farve" to close then run [ execute player command "/teamfarvesæt f"]
    11.                     format slot 2 of player with red wool named "&4&lRød" with lore "&aTryk for at vælge &4&lRød|| &asom dit teams farve" to close then run [ execute player command "/teamfarvesæt 4"]
    12.                     format slot 3 of player with green wool named "&2&lGrøn" with lore "&aTryk for at vælge &2&Grøn|| &asom dit teams farve" to close then run [ execute player command "/teamfarvesæt 2"]
    13.                     format slot 5 of player with purple wool named "&5&lLilla" with lore "&aTryk for at vælge &f&lLilla|| &asom dit teams farve" to close then run [ execute player command "/teamfarvesæt 5"]
    14.                     format slot 6 of player with blue wool named "&1&lBlå" with lore "&aTryk for at vælge &b&lBlå|| &asom dit teams farve" to close then run [ execute player command "/teamfarvesæt 1"]
    15.                 else:
    16.                     send "&cDu ejer ikke teamet"
    17.             else:
    18.                 send "&cDu skal være en del af et team for at kunne gøre dette"
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    white wool block, red wool block, etc
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Thank you, but i have a nother problem.

    I don't get any errors, and all seems to work, but it dosen't subtract 50 from the teams balance, i've tried "if {team.eco.%{team.%player%}%} is greater than 49:" but that dosen't work
    Code (Skript):
    1. command /teamfarvesæt [<text>]:
    2.     trigger:
    3.         if arg 1 is not set:
    4.             stop
    5.         if arg 1 is "f":
    6.             if {team.owner.%{team.%player%}%} is player:
    7.                 subtract 50 from {team.eco.%{team.%player%}%}
    8.                 set {team.farve.%{team.%player%}%} to "&f"
    9.         if arg 1 is "4":
    10.             if {team.owner.%{team.%player%}%} is player:
    11.                 subtract 50 from {team.eco.%{team.%player%}%}
    12.                 set {team.farve.%{team.%player%}%} to "&4"
    13.         if arg 1 is "2":
    14.             if {team.owner.%{team.%player%}%} is player:
    15.                 subtract 50 from {team.eco.%{team.%player%}%}
    16.                 set {team.farve.%{team.%player%}%} to "&2"
    17.         if arg 1 is "5":
    18.             if {team.owner.%{team.%player%}%} is player:
    19.                 subtract 50 from {team.eco.%{team.%player%}%}
    20.                 set {team.farve.%{team.%player%}%} to "&5"
    21.         if arg 1 is "1":
    22.             if {team.owner.%{team.%player%}%} is player:
    23.                 subtract 50 from {team.eco.%{team.%player%}%}
    24.                 set {team.farve.%{team.%player%}%} to "&1"
    25. command /team [<text>] [<text>] [<text>]:
    26.         if arg 1 is "penge":
    27.             if {team.%player%} is set:
    28.                 send " "
    29.                 send "&7Dit team har %{team.farve.%{team.%player%}%}%%{team.eco%{team.%player%}%}% &aKroner &7på dens konto"
    30.                 send " "
    31.         if arg 1 is "deposit":
    32.             if {team.%player%} is set:
    33.                 if player's balance is greater than arg 2 parsed as a integer -1:
    34.                     subtract arg 2 parsed as a integer from player's balance
    35.                     add arg 2 parsed as a integer to {team.eco%{team.%player%}%}
    36.                     send " "
    37.                     send "&7Du overførte %{team.farve.%{team.%player%}%}%%arg 2% &akroner &7til dit team"
    38.                     send " "
    39.                     send "&a%player% &7Overførte %{team.farve.%{team.%player%}%}%%arg 2% &aKroner &7til teamet" to {team.owner.%{team.%player%}%}
    40.                 else:
    41.                     send "&cDu har ikke penge nok"
    42.             else:
    43.                 send "&cDu skal være en del af et team"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...