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.

on right click on player

Discussion in 'Skript' started by Mamba, Jan 12, 2022.

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

    Mamba Member

    Joined:
    Feb 24, 2021
    Messages:
    13
    Likes Received:
    0
    This script throws an error



    Code (Text):
    1. on right click on player:
    2.     if "%region at player%" is "shop"
    3.     name of entity = "Den"
    4.     cancel event
    5.        
    6.          
     

    Attached Files:

    • ф.PNG
      ф.PNG
      File size:
      41.4 KB
      Views:
      24
  2. Gameeer

    Gameeer New Member

    Joined:
    Jan 2, 2022
    Messages:
    5
    Likes Received:
    0
    what are you trying to do
     
  3. Mamba

    Mamba Member

    Joined:
    Feb 24, 2021
    Messages:
    13
    Likes Received:
    0
    so that when you click on a certain player (and with the condition that the player who clicks will have the "shop" region, the event is canceled
     
  4. Gameeer

    Gameeer New Member

    Joined:
    Jan 2, 2022
    Messages:
    5
    Likes Received:
    0
    just use a a shop plugin and citizens
     
  5. WoolBoy

    WoolBoy Member

    Joined:
    Sep 16, 2021
    Messages:
    15
    Likes Received:
    0
    I'm not sure if this will work, but I would try putting an descriptor of region before your string, as it isn't recognizing the string as a region, rather as a simple text box. Obviously, your server cannot compare an area from whatever region plugin you are using to a string, so, you have to make skript recognize the string as the area you want to reference!

    Try this:

    Replace if "%region at player%" is "shop" with if "%region at player%" is region "shop"
     
  6. Mamba

    Mamba Member

    Joined:
    Feb 24, 2021
    Messages:
    13
    Likes Received:
    0
    upload_2022-1-20_22-5-30.png
     
Thread Status:
Not open for further replies.

Share This Page

Loading...