_DemonDevil Posted March 9, 2023 Share Posted March 9, 2023 I wanna make a chest with a certain name that gives you an item and sends you a message for the first time you click it after that it sends a message like "you already claimed this". Need help. Link to comment Share on other sites More sharing options...
Znyx Posted March 10, 2023 Share Posted March 10, 2023 Hi! Here, this might work. Please note that I haven't tested it though. function openCrate(p: player): set metadata tag "crateGUI" of {_p} to chest inventory with 3 rows named "NAME OF CHEST" set slot 14 of metadata tag "crateGUI" of {_p} to tripwire hook named "&aClick to claim" open (metadata tag "crateGUI" of {_p}) to {_p} on inventory click: if event-inventory = (metadata tag "crateGUI" of player): cancel event if index of event-slot is 14: if {claimed::%player's uuid%} is set: send "&cYou have already claimed this!" to player exit send "&aYou claimed it!" to player give 1 stone to player There might be a better way to do this, but still, this probably works. No addons required either. Link to comment Share on other sites More sharing options...
_DemonDevil Posted March 12, 2023 Author Share Posted March 12, 2023 Thank you it works for me. Link to comment Share on other sites More sharing options...
SBV3 Posted March 19, 2023 Share Posted March 19, 2023 nice job on that skript Rank: [PRO] Server Dev Skripter Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now