1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with skript

Discussion in 'Skript' started by Eli83592, Nov 3, 2022.

Thread Status:
Not open for further replies.
  1. Eli83592

    Eli83592 New Member

    Joined:
    Oct 28, 2022
    Messages:
    6
    Likes Received:
    0
    on inventory click:
    if clicked slot is shoe of player, leg of player, chestplate of player or helm of player:
    if {Logbat.%player%} is set:
    cancel event
     
  2. foxyplush

    foxyplush Member

    Joined:
    Apr 25, 2022
    Messages:
    17
    Likes Received:
    1
    Code (Text):
    1. on inventory click:
    2.     if event-slot = 36, 37, 38 or 39:
    3.         if {Logbat.%player%} is set:
    4.             cancel event
    This should work, keep in mind that all slots in an inventory are kept by numbers, if you need to know the slot's id, check out the image on this page. Reply or message me if you have any issues. Have a good day!
     
    #2 foxyplush, Nov 12, 2022
    Last edited: Nov 12, 2022
  3. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    Plz dont use event-slot cuz its bad. just add event-inventory is not player's inventory or smth thx
     
  4. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    Yes, even if you were to, use it like this:
    Code (Text):
    1. If index of event-slot = 10:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...