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!

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

Clear inventory on entry of a region and when leaving.

Discussion in 'Requests' started by Computerize, Oct 15, 2019.

  1. Computerize

    Computerize Member

    Joined:
    Oct 10, 2019
    Messages:
    11
    Likes Received:
    0
    Can somebody please make me a Skript where when a player enters or leaves the region 'buildzone' their inventory is instantly cleared (if you could, when they enter give them 64 steak).

    If anyone could do this for me it would be amazing. Thanks!
     
  2. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    You can easily do this yourself, just use the 'on region enter' event, and the 'on region exit' event.
     
  3. inxane

    inxane Member

    Joined:
    Jul 23, 2019
    Messages:
    14
    Likes Received:
    0
    Code (Text):
    1. on region enter:
    2.     if region's name is "buildzone":
    3.         clear player's inventory
    4.         give player 64 steak
    5. on region exit:
    6.     if region's name is "buildzone":
    7.         clear player's inventory
    Might error, if it does change "region's name" to "event-region's name"
     
Loading...