on inventory click:
if name of event-inventory is "&bRick en Fin shop!":
cancel event
if index of event-slot is 12:
open {_g2} to player
if name of event-inventory is "&6Ores":
cancel event
if index of event-slot is 12:
cooldown: 10 minutes
set {_r} to a random integer between 1 and 5
if {_r} = 1:
give player 1 iron ingot
if {_r} = 2:
give player 2 iron ingot
if {_r} = 3:
give player 3 iron ingot
if {_r} = 4:
give player 4 iron ingot
if {_r} = 5:
give player 5 iron ingot``` so i want to make it when you click on the slot it has a cooldown but idk how to
#help with a cooldown for an inventory click
1 messages · Page 1 of 1 (latest)
is this vanilla gui or a addon?
vanilla
i think so
so u need help with cooldown:
yea
that when you click to get items you needa wait some time before doing it again
use a variable, check if it's set to true, if it is send a wait to do this message
okay imma try
delete the var every 10 mins
idk how to start with the cooldown tho
{cooldown::%player's uuud%} is set:
send "Wait 10 minutes to do this again" to player
else:
set {cooldown::%player's uuid%} to true
more code here
every 10 minutes:
delete {cooldown::*}
i just spoonfed u but i lack braincells to explain
yeah
every 10 minutes?
version of skript?
nah i fixed it
