#I need Help With My Own Skript Plugin Because Excellentcrates Wont Work Here Is My Skript Rn I Dont

1 messages · Page 1 of 1 (latest)

fluid anchor
#

``# Command to open the crate menu
command /opencrate:
trigger:
open chest with 1 row named "&bCrate Menu" to player
format slot 2 of player with red shulker box named "&cComing Soon" with lore "&7This crate is not available yet." to do nothing
format slot 4 of player with green shulker box named "&e&lDaily Crate" with lore "&7Click to open your Daily Crate!" to run:
if player has 1 tripwire hook named "&e&lDaily Key":
remove 1 tripwire hook named "&e&lDaily Key" from player
open chest with 3 rows named "&eDaily Crate" to player
loop {dailyLoot::*}:
format slot (loop-index - 1) of player with loop-value to be taken
else:
send "&cYou need a &e&lDaily Key &cto open this crate!" to player
format slot 6 of player with red shulker box named "&cComing Soon" with lore "&7This crate is not available yet." to do nothing

Command to set loot for the daily crate

command /lootdaily:
permission: op
trigger:
open chest with 3 rows named "&cSet Daily Crate Loot" to player

on inventory close:
if name of player's current inventory is "&cSet Daily Crate Loot":
clear {dailyLoot::*}
loop 27 times:
if slot (loop-number - 1) of player's current inventory is not air:
set {dailyLoot::%loop-number%} to slot (loop-number - 1) of player's current inventory
send "&aDaily crate loot has been updated!" to player

Command to give a player a Daily Key

command /givekey [<player>]:
permission: op
trigger:
give a tripwire hook named "&e&lDaily Key" to arg-1
send "&aYou have received a &e&lDaily Key" to arg-1
``

languid steppeBOT
#

NUBBA suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

fluid anchor
#

^

#

OHH

#

I USe ``

#

ill fix 1sec

#
command /opencrate:
    trigger:
        open chest with 1 row named "&bCrate Menu" to player
        format slot 2 of player with red shulker box named "&cComing Soon" with lore "&7This crate is not available yet." to do nothing
        format slot 4 of player with green shulker box named "&e&lDaily Crate" with lore "&7Click to open your Daily Crate!" to run:
            if player has 1 tripwire hook named "&e&lDaily Key":
                remove 1 tripwire hook named "&e&lDaily Key" from player
                open chest with 3 rows named "&eDaily Crate" to player
                loop {dailyLoot::*}:
                    format slot (loop-index - 1) of player with loop-value to be taken
            else:
                send "&cYou need a &e&lDaily Key &cto open this crate!" to player
        format slot 6 of player with red shulker box named "&cComing Soon" with lore "&7This crate is not available yet." to do nothing

# Command to set loot for the daily crate
command /lootdaily:
    permission: op
    trigger:
        open chest with 3 rows named "&cSet Daily Crate Loot" to player

on inventory close:
    if name of player's current inventory is "&cSet Daily Crate Loot":
        clear {dailyLoot::*}
        loop 27 times:
            if slot (loop-number - 1) of player's current inventory is not air:
                set {dailyLoot::%loop-number%} to slot (loop-number - 1) of player's current inventory
        send "&aDaily crate loot has been updated!" to player

# Command to give a player a Daily Key
command /givekey [<player>]:
    permission: op
    trigger:
        give a tripwire hook named "&e&lDaily Key" to arg-1
        send "&aYou have received a &e&lDaily Key" to arg-1
#

@fickle hare HELP ME!!!

fickle hare
#

?

fluid anchor
#

my skript wont work

#

line 5 6 and 14

fickle hare
#

Im confused are you using an addon or vanilla guis

#

Because you have a mix of both

fluid anchor
#

wdym

fickle hare
#

And also it looks like you are using tuske syntax

fluid anchor
#

ew

fickle hare
#

Which has been broken forever

fluid anchor
#

oh

fickle hare
#

So what are you actually trying here

languid steppeBOT
#

Phill suggests that you read this embed

GUIs
What are GUIs?

GUIs are custom inventories that you can use from all sorts of purposes including shops and server selectors. There are two main ways to create them, using normal Skript and using the addon skript-gui

Vanilla GUIs

You won't need to download any extra addons to start making vanilla GUIs! Click Here to get started

skript-gui

Before you start making GUIs with skript-gui, you will have to download the addon here
Once you are ready to begin, Click Here to get started!
This addon simplifies some of the steps of making GUIs such as listening for clicks

Tuske

Tuske is an old addon used for creating GUIs. It has become very outdated and will break all of your code. If you still have this addon installed please switch to skript-gui

fluid anchor
#

ill try this

#
command /opencrate:
    trigger:
        open virtual chest inventory with size 1 named "&bCrate Menu" to player
        set slot 2 of player's current inventory to red shulker box named "&cComing Soon" with lore "&7This crate is not available yet."
        set slot 4 of player's current inventory to green shulker box named "&e&lDaily Crate" with lore "&7Click to open your Daily Crate!"
        set slot 6 of player's current inventory to red shulker box named "&cComing Soon" with lore "&7This crate is not available yet."

on inventory click:
    if name of player's current inventory is "&bCrate Menu":
        cancel event
        if clicked slot is 4:
            if player has 1 tripwire hook named "&e&lDaily Key":
                remove 1 tripwire hook named "&e&lDaily Key" from player
                open virtual chest inventory with size 3 named "&eDaily Crate" to player
                loop {dailyLoot::*}:
                    set slot (loop-index - 1) of player's current inventory to loop-value
            else:
                send "&cYou need a &e&lDaily Key &cto open this crate!" to player

# Command to set loot for the daily crate
command /lootdaily:
    permission: op
    trigger:
        open virtual chest inventory with size 3 named "&cSet Daily Crate Loot" to player

on inventory close:
    if name of player's current inventory is "&cSet Daily Crate Loot":
        clear {dailyLoot::*}
        loop 27 times:
            if slot (loop-number - 1) of player's current inventory is not air:
                set {dailyLoot::%loop-number%} to slot (loop-number - 1) of player's current inventory
        send "&aDaily crate loot has been updated!" to player```
#

ill look how to do it on yt

#

thanks for the help!

fickle hare
#

If the yt video uses tuske find a new one

#

A lot of videos are old

fickle hare
fluid anchor
#

dont use yt videos for skript