Need help with skript

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Eli83592

Member
Oct 28, 2022
12
1
3
23
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
 
Code:
on inventory click:
    if event-slot = 36, 37, 38 or 39:
        if {Logbat.%player%} is set:
            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!
 
Last edited:
Code:
on inventory click:
    if event-slot = 36, 37, 38 or 39:
        if {Logbat.%player%} is set:
            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!
Plz dont use event-slot cuz its bad. just add event-inventory is not player's inventory or smth thx
 
Status
Not open for further replies.