Hi, I was just making a quick skript that opens a gui for a player where they can place an item and the skript checks to see if it's correct.
However I was trying to make it so that the player is unable to move things around in the chest inventory that opens for the player but can still move things around in their main inventory.
However when trying this I can disable and enable items being moved around in the opened GUI but the players actual inventory also seems to cancel on any event of moving items not allowing them to place items in the opened GUI.
I've been messing around with different variations of this but cannot seem to get it to work. Any help would be greatly appreciated
However I was trying to make it so that the player is unable to move things around in the chest inventory that opens for the player but can still move things around in their main inventory.
However when trying this I can disable and enable items being moved around in the opened GUI but the players actual inventory also seems to cancel on any event of moving items not allowing them to place items in the opened GUI.
Code:
on inventory click:
if name of event-inventory is "&8&lPlace Coins here":
# cancel event
if index of event-slot = 49:
if slot 22 of player's current inventory is sunflower named "&eLOST COIN":
close player's inventory
send message "amazing"
else:
close player's inventory
send message "wrong"
else:
else:
I've been messing around with different variations of this but cannot seem to get it to work. Any help would be greatly appreciated