Jump to content

Need help with wg , on enter region


pete_parker

Recommended Posts

on region enter:
	wait 1 tick
	if "%region at player%" contains "Spawn":
		send "&eSpawn &7&l( Pvp off )"
	if "%region at player%" contains "eastroad":
		send "&eEastRoad &7&l(Safe)"
	if "%region at player%" contains "northroad":
		send "&eNorthRoad &7&l(Safe)"
	if "%region at player%" contains "Westroad":
		send "&eWestRoad &7&l(Safe)"
	if "%region at player%" contains "southroad":
		send "&eSouthRoad &7&l(Safe)"
	if "%region at player%" contains "nobuild":
		send "&eNo build &4&l(Danger)"

So , as you see if you enter a region , it shows you what region you enter , so i am trying to get it where if your not in one of those regions then it will send " &eWasteland &4&l(Danger) " . Very new to skript so wondering if anyone could help 

Link to comment
Share on other sites

You could try:

on region exit:
 wait 1 tick
 set {_reg} to "%region at player%"
 if {_reg} = "<none>":
  send "wild"

 

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...