#I'm trying to make daily with gui
1 messages ยท Page 1 of 1 (latest)
- you don't need
{_}, in skript 2.8+, you can use the expressionloop-iteration - 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 haverewardsat the end)
- When you're checking
if clicked slot is 4:,4is theindex of event-slot, and theevent-slotis 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 ...
- 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
- I would set the daily variable to
nowwhen they claim, then you can usetime sinceto see how long ago they claimed it. If it's >= 24h, let them claim it again
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
yes, i understand that line is giving the reward, I was just saying {daily.%player%.rewards} and {money::%player's uuid%} wildly differ in competence
not sure what you mean by this
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
4 is the quantity, not the gui position
This line would check if the slot they clicked contains 4 minecarts
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
What are you looking for an example of?
I personally use vanilla guis, not skript-gui, but they function the same
Gui it item change when player click it
Cuz I'm running out of ideas with it
On inventory click:, then set the event-slot
Alright i did that works it's changing back to minecart with chest when cooldown is active
Help me please ๐
with what
Oh
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
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
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
When cooldown is active I want it just show minecart
and right now you dont check the cooldown until they click it
set {_waited} to difference between {daily::%player's UUID%} and now in function or something like that?
when you open the gui, yes
Ty for help ๐