Jump to content

event slot number


NoutLost_

Recommended Posts

when i try to set a variable to an event slot it set it to the name of the event slot and not the number is their a way to do this?
 

on inventory click:
  if clicked type is right mouse button:
    if name of event-inventory is "{@reportsgui}":
      cancel event
      set {guiclick} to clicked slot
      set {punishnow::%player%} to {%player%::%{_guiclick}%}
      wait a tick
      punish(player)

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...