Jump to content

youMADison

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by youMADison

  1. command /kitui:
        permission: kitlook
        trigger:
            open virtual chest with size 1 named "KITS" to player
            format gui slot 0 of player with paper named "&bStarter Kit" to run:
                execute player command "/kit starter"
            format gui slot 1 of player with iron ingot named "&bIron Kit" to run:
                if player has 10 emeralds:
                    if player has permission "ironkit":
                        remove 10 emerald from player's inventory
                        execute player command "/kit iron"
                        send "iron kit has been purchased, 10 emerald have been removed from your inventory"
                    else:
                        send "no permission"
                else:
                    send "&cYou dont have 10 emeralds!"
                    format gui slot 2 of player with diamond named "&bDiamond Kit" to run:
                if player has 20 emeralds:
                    if player has permission "diamondkit":
                        remove 20 emerald from player's inventory
                        execute player command "/kit diamond"
                        send "diamond kit has been purchased, 20 emerald have been removed from your inventory"
                    else:
                        send "no permission"
                else:
                    send "&cYou dont have 20 emeralds!"

    doesent work it says there is lines of blank code that cant be executed

  2. I was able to resolve this issue on my own and add another:

    command /kitui:
        permission: kitlook
        trigger:
            open virtual chest with size 1 named "KITS" to player
            format gui slot 0 of player with paper named "&bStarter Kit" to run:
                execute player command "/kit starter"
            format gui slot 1 of player with iron ingot named "&bIron Kit" to run:
                if player has 10 emeralds:
                    if player has permission "ironkit":
                        remove 10 emerald from player's inventory
                        execute player command "/kit iron"
                        send "iron kit has been purchased, 10 emerald have been removed from your inventory"
                    else:
                        send "no permission"
                else:
                    send "&cYou dont have 10 emeralds!"

  3. I am building a kit pvp server and i watched the video of trent on how you skript a GUI and i have done so, added the item and everything, I would like to make it so that when a player clicks on the item, it removes items from their inventory, and gives them the item/ kit, i want it to go based off of 

    command /kitui:
        trigger:
            open virtual chest inventory with size 1 named "Kit" to player
            format gui slot 4 of player with paper named "&bStarter Kit"  to run:
                
                so its easier for me to understand.

×
×
  • Create New...