Hello, I have this skript with gui for kits, but I can't get 'on inventory click' event to work... I don't get any errors when reloading the skript at all... It just doesn't do anything when I click an item... I kept on trying and i'm getting really pissed off now...
Code:
command /kits:
trigger:
set {_slot} to 0
open chest with 6 rows named "&cPick a Kit" to player
loop 54 times:
if {_slot} is 11:
format slot {_slot} of player with golden sword named "&e&lKit Starter" with lore "&8(&730 seconds cooldown&8)" to be unstealable
else:
if {_slot} is 14:
format slot {_slot} of player with iron sword named "&7&lKit Iron" with lore "&8(&710 minutes cooldown&8)" to be unstealable
else:
if {_slot} is 15:
format slot {_slot} of player with diamond sword named "&b&lKit Diamond" with lore "&8(&72 hours cooldown&8)" to be unstealable
else:
if {_slot} is 39:
format slot {_slot} of player with nether star named "&aDonator Kits" to be unstealable
else:
if {_slot} is 41:
format slot {_slot} of player with chest named "&a&lStore" to be unstealable
else:
if {_slot} is 49:
format slot {_slot} of player with arrow named "&cClose" to be unstealable
else:
if {_slot} is 12:
format slot {_slot} of player with golden sword named "&e&lKit Starter+" with lore "&8(&760 seconds cooldown&8)" to be unstealable
else:
if {_slot} is 13:
format slot {_slot} of player with golden sword named "&e&lKit Starter++" with lore "&8(&790 seconds cooldown&8)" to be unstealable
else:
if {_slot} is 10 or 16 or 25 or 34 or 43 or 19 or 28 or 37 or 38 or 40 or 42:
format slot {_slot} of player with purple stained glass pane named "&a" to be unstealable
else:
if {_slot} is 20 or 21 or 22 or 23 or 24:
format slot {_slot} of player with white stained glass pane named "&a" to be unstealable
else:
format slot {_slot} of player with black stained glass pane named "&a" to be unstealable
add 1 to {_slot}
command /kit:
trigger:
make player execute command "kits"
on inventory click:
set {_clickedItem} to event-item
if {_clickedItem} is a golden sword named "&e&lKit Starter++":
send "hi" to player