on right click on player

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

Mamba

Member
Feb 24, 2021
13
0
1
Ukraine
This script throws an error



Code:
on right click on player:
    if "%region at player%" is "shop"
    name of entity = "Den"
    cancel event
 

Attachments

  • ф.PNG
    ф.PNG
    41.4 KB · Views: 93
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"
 
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"
upload_2022-1-20_22-5-30.png
 
Status
Not open for further replies.