Problems with TuSKe GUI

Discussion in 'Skript' started by TheGamingChris, Apr 3, 2018.

  1. Hey,

    Could you help me with the error "create a gui slot 0 of player with %{rewarditem.level1.%player%}% named "&4Level 1" with lore "&cTest" to close"

    Installed Plugins
    • Skript (latest version)
    • SkQuery (latest version)
    • TuSKe (1.8.2)

    Code (Text):
    on join:
        if {rewardlevel.level1.%player%} is not set:
            set {rewardlevel.level1.%player%} to "false"
        if {rewardclaimed.level1.%player%} is not set:
            set {rewardclaimed.level1.%player%} to "false"
        if {rewarditem.level1.%player%} is not set:
            set {rewarditem.level1.%player%} to "redstone"
         
    command /reward:
        trigger:
            if player has permission "reward.open":
                if {rewardlevel.level1.%player%} is "true":
                    if {rewardclaimed.level1.%player%} is "true":
                        set {rewarditem.level1.%player%} to "minecart"
                    else:
                        set {rewarditem.level1.%player%} to "chest_minecraft"
                else:
                    set {rewarditem.level1.%player%} to "furnace_minecart"
                open virtual chest inventory with size 6 named "&4Rewards" to player
                create a gui slot 0 of player with %{rewarditem.level1.%player%}% named "&4Level 1" with lore "&cTest" to close
    thx.

    Chris
     
  2. Can you show the error?
     
  3. create a gui slot 0 of player with %{rewarditem.level1.%player%}% named "&4Level 1" with lore "&cTest" to close
     
  4. In game error lol
     
  5. The error that Skript sends when you reload the skript, not the line

    Change it with
    Code (Text):
    create a gui slot 0 of player with {rewarditem.level1.%player%} named "&4Level 1" with lore "&cTest" to close
    If you (or all as well) will ever need help and want to be helped from me (again) feel free to request my help starting a conversation on the forum with me or contacting me on Telegram (@Sitieno14_bot)[Contacting on telegram is preferable].

    I hope that your problems are solved (if they are please mark this thread as solved),
    Have a nice day,
    Sitieno14
     
  6. @CMPTechGaming "{rewarditem.level1.%the player%} named "&4Level 1" is not an item type"
     
  7. Try what Sitieno14 just posted
     
  8. @CMPTechGaming if you see: I have removed both %.
    Before:
    After:
    This will generate the error
    Code (Text):
    {rewarditem.level1.%the player%} named "&4Level 1" is not an item type
     
  9. Are you using SkQuery Unofficial fork?
     
  10. Yes. Is there a official 1.12.2 version of SkQuery?
     
  11. No, the unofficial is the correct version