#I'm trying to make daily with gui

1 messages ยท Page 1 of 1 (latest)

worthy void
noble hound
#
  1. you don't need {_}, in skript 2.8+, you can use the expression loop-iteration
  2. Did you download/copy code from somewhere? There's discrepancies in your variables. Your money variable is a list using UUIDs, which is good, but your daily rewards variables are neither using UUIDs or a list. You want to use UUIDs and list variables.
  • change {daily.%player%.rewards} to {daily::%player's UUID%} (I don't see a reason to have rewards at the end)
  1. When you're checking if clicked slot is 4:, 4 is the index of event-slot, and the event-slot is the item inside the slot.
  • it is recommended to use event-slot, as that way you don't need to remember which number slot each item is in.
  • if event-slot = 1 of minecart ...
  1. it seems you are (for some reason) updating the GUI in the click event, but then immediately closing it. I would check to see if the reward is claimable in the initial GUI set-up. And by closing the inventory, they dont see the update anyways
  2. I would set the daily variable to now when they claim, then you can use time since to see how long ago they claimed it. If it's >= 24h, let them claim it again
worthy void
#

No i didn't download or copy or anything like that from where If you are talking about "add 20 to {money::%player's uuid%}" is reward

noble hound
#

not sure what you mean by this

worthy void
#

Don't worry about it

#

Its giving me a error event-slot Can't understand this condition/effect: if event-slot = 4 of minecart confused

noble hound
#

4 is the quantity, not the gui position

#

This line would check if the slot they clicked contains 4 minecarts

worthy void
#

I'm still confused I never try to do this before like trying to do stuff like this You got any Examples probably will help or something

noble hound
#

What are you looking for an example of?

#

I personally use vanilla guis, not skript-gui, but they function the same

worthy void
#

Gui it item change when player click it

worthy void
#

Cuz I'm running out of ideas with it

noble hound
worthy void
#

Alright i did that works it's changing back to minecart with chest when cooldown is active

worthy void
#

Help me please ๐Ÿ™

cyan frost
worthy void
#

With this

#

Cooldown was active

cyan frost
#

oh

#

thats weird

#

idk how to help with that

worthy void
#

Oh

noble hound
#

So you want a minecart with__out__ a chest in the beginning?

#

Then set it to that in the beginning

#

Right now, you only do that once they click on it

worthy void
#

No first minecart with chest when click it give them 20 money change to minecart till cool down ends set it back to minecart with chest

noble hound
#

soo.. whats the issue? I thought it was that it would show a minecart with chest when you initially open the GUI, regarless of the cooldown

worthy void
#

When cooldown is active I want it just show minecart

noble hound
worthy void
#

set {_waited} to difference between {daily::%player's UUID%} and now in function or something like that?

noble hound
#

when you open the gui, yes

worthy void
#

Ty for help ๐Ÿ™‚