GUI Kit Need's to be Stealable

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iGamingPyro

New Member
Feb 22, 2017
7
0
0
24
Skript Version: 2.2-dev23
Skript Author: Njol, Mirreski, bensku, nfell2009, joeuguce99, RealGatt, RoyCurtis, and tim740
Minecraft Version: PaperSpigot 1.8.8
---
Full Code:

code_language.skript:
command /donatorkit:
    description: Gives Player Donator Kit
    executable by: player
    trigger:
        if player has permission "clashykits.donator":
            if {donatorkit.timer.%player%} <= 0:
                open chest with 6 rows named "&b&lDonator Kit" to player
                if {donatorkit.weaponlvl.%player%} is 1:
                    format slot 1 of player with diamond sword named "&8[&5&lVIP Sword&8]" with lore "&eWeapon LVL &61" to be unstealable

So there are no errors. I just can't figure out how to make the sword stealable. I need players to be able to take it from the menu and it not do anything else.

Other Useful Info:

Addons using (including versions):
SkQuery (3.22.1)
TuSKe (1.7.3)
 
code_language.skript:
command /donatorkit:
    description: Gives Player Donator Kit
    executable by: player
    trigger:
        if player has permission "clashykits.donator":
            if {donatorkit.timer.%player%} <= 0:
                open chest with 3 rows named "&b&lDonator Kit" to player
                if {donatorkit.weaponlvl.%player%} is 1:
                    set slot 0 of current inventory of player to diamond sword named "&8[&5&lVIP Sword&8]" with lore "&eWeapon LVL &61"
Don't use format slot, it has never really played ball..

What I did here was replace "slot 1 of player" with "slot 0 of current inventory of player", it is now highly stealable. Almost forgot, I removed "unstealable" from the end :emoji_slight_smile:

I changed the slot number because it bothered me, it doesn't need to stay in slot 0..
 
Status
Not open for further replies.