mateiop4 Posted May 13, 2021 Share Posted May 13, 2021 Hello! Can someone help me with a skript? the code is this: on region enter: region is "%Area1%" if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" It gives me an error at ("%Area1%") Can someone help me please? ASAP. Thanks! Link to comment Share on other sites More sharing options...
MrTibo Posted May 13, 2021 Share Posted May 13, 2021 Remove the %'s, since Area1 is not an expression or variable like number of all players or similar, when checking a region you are comparing with a string, so that would be "Area1" [<3] DMs open - Discord » MrTibo#9659 | or send a forum message Link to comment Share on other sites More sharing options...
mateiop4 Posted May 13, 2021 Author Share Posted May 13, 2021 6 hours ago, MrTibo said: Remove the %'s, since Area1 is not an expression or variable like number of all players or similar, when checking a region you are comparing with a string, so that would be "Area1" Yeah but now it says "Can't compare a region to a text: ("Area1") Link to comment Share on other sites More sharing options...
PrecedingMC Posted May 15, 2021 Share Posted May 15, 2021 On 5/13/2021 at 12:46 PM, mateiop4 said: Yeah but now it says "Can't compare a region to a text: ("Area1") Post your updated code please. Preceding Skript and Java Developer Minehut - [VIP] CareSMP - [ADMIN] ArUwU - [JR.MOD] Link to comment Share on other sites More sharing options...
Pocan Posted May 15, 2021 Share Posted May 15, 2021 if "%region at player%" contains "Area1": your codes Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 6 hours ago, PrecedingMC said: Post your updated code please. on region enter: region is "Area1" if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 5 hours ago, Pocan said: if "%region at player%" contains "Area1": your codes 2 hours ago, mateiop4 said: on region enter: region is "Area1" if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" Yeah he's correct Do: on region enter: if "%region at player%" contains "Area1": #rest of your skript! Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 (edited) 49 minutes ago, Invislol said: THANK YOU SO MUCH! I SEARCHED THIS FOR 3 DAYS! edit: It does not understand region at player Edited May 15, 2021 by mateiop4 Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 (edited) 12 minutes ago, mateiop4 said: Please send the skript reload error and send the full skript. EDIT: this may be to you not having the required skript addons Edited May 15, 2021 by Invislol Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 2 minutes ago, Invislol said: Please send the skript reload error and send the full skript. THE CODE: on right click with prismarine shard: name of player's item is "Key 1" add player's uuid to {checkArea1::*} on region enter: if "%region at player%" contains "Area1": if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" THE ERROR: Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 13 minutes ago, mateiop4 said: Found the issue try%region% (:D) Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 1 minute ago, mateiop4 said: THE CODE: on right click with prismarine shard: name of player's item is "Key 1" add player's uuid to {checkArea1::*} on region enter: if "%region at player%" contains "Area1": if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" THE ERROR: Yeah I think you should try %region% That seams to be the issue! Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 4 minutes ago, Invislol said: Yeah I think you should try %region% That seams to be the issue! Nope it says the same thing Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 2 minutes ago, mateiop4 said: Nope it says the same thing are you sure you have the required addons Aka: TuSke Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 3 minutes ago, Invislol said: are you sure you have the required addons Aka: TuSke Yes, i have TuSke and also worldguard for regions Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 Not sure whats the issue then post a post in the help section of the forums! 5 minutes ago, mateiop4 said: Yes, i have TuSke and also worldguard for regions Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 Just now, Invislol said: Not sure whats the issue then post a post in the help section of the forums! HEY i actually changed the contains into is and it works! But i cannot go in any region only if i have the uuid Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 OMFG JUST REALIZED WHY try : if "%region at player%" does not contain "region": 6 minutes ago, mateiop4 said: Yes, i have TuSke and also worldguard for regions Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 Just now, mateiop4 said: HEY i actually changed the contains into is and it works! But i cannot go in any region only if i have the uuid Oh lol you got it at the same time I remembered (I had to look throught my old skripts) Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 I guess this is solved. Have a good day! Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 (edited) 1 minute ago, Invislol said: I guess this is solved. Have a good day! No wait it is not! Because now it says no when i try to use mvtp or other stuff when i go in other regions! I want this to happen only in that region! Edited May 15, 2021 by mateiop4 Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 5 minutes ago, Invislol said: OMFG JUST REALIZED WHY try : if "%region at player%" does not contain "region": THANKS! god i have not seen this until now! Sorry! ) Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 3 minutes ago, mateiop4 said: No wait it is not! Because now it says no when i try to use mvtp or other stuff when i go in other regions! I want this to happen only in that region! #Fixed version of your skript on right click with prismarine shard: name of player's item is "Key 1" add player's uuid to {checkArea1::*} on region enter: if "%region at player%" contains "Area1": if {checkArea1::*} contains player's uuid: send "yes" else: cancel event send "no" Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 Indention errors (Skript doesn't read it how you want it to read it when you indent like that ) Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
mateiop4 Posted May 15, 2021 Author Share Posted May 15, 2021 10 minutes ago, Invislol said: Indention errors (Skript doesn't read it how you want it to read it when you indent like that ) Soo it is almost done, but i have one slight problem. It says that the "else" needs to be put after an if. I don't know how to fix that. Almost doneee... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now