Spawn Skript

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

OrangeCanadian

Active Member
Aug 2, 2017
72
0
6
Skript Version: Skript 2.2 (dev20c)
Skript Author: Bensku
Minecraft Version: 1.8.8

Code (Skript):

code_language.skript:
command /spawn:
     trigger:
          wait 1 seconds
          execute console command "tm message %player% &f&l10\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l9\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l8\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l7\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l6\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l5\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l4\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l3\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l2\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&l1\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &f&lNow\n&e&lSpawn Teleport"
          execute console command "playsound note.pling %player% ~ ~ ~"
          wait 1 seconds
          execute console command "tm message %player% &e&lSpawn Teleport"
          wait 1 seconds
          execute console command "tm message %player% &7"
          make player run command "espawn" as op

Is there any way this command could only be executed in a worldguard region? And To cancel the script when a player moves
 
Okay thanks.
[doublepost=1523309108,1523309070][/doublepost]Any idea on how i could cancel the script when the player moves?
 
i have this in an old skript i no longer use, you could use something like that

code_language.skript:
set {_player.pos} to location of block beneath player
        wait 1 second
        location of block beneath player isn't {_player.pos}:
            send "&cTeleportation failed"
 
One more thing. I know i sound like a noob (because i just started)

code_language.skript:
command /spawn:
     trigger:
          set {_regions} to "%regions at player%"
          if {_regions} contains "warzone":
          wait 1 seconds
          execute console command "tm message %player% &f&l10\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l9\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l8\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l7\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l6\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l5\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l4\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l3\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l2\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&l1\n&e&lSpawn Teleport"
          execute console command "playsound random.click %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &f&lNow\n&e&lSpawn Teleport"
          wait 1 seconds
          make player run command "espawn" as op
          execute console command "tm message %player% &e&lSpawn Teleport"
          execute console command "playsound note.pling %player% ~ ~ ~ 1 1 1"
          wait 1 seconds
          execute console command "tm message %player% &7"
I added that in but it says

Empty Configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (Core.sk, lin 25: if {_regions} contains "warzone":')
[doublepost=1523309777,1523309504][/doublepost]Could you help me parse this? xD Sorry im soo bad :/
 
Status
Not open for further replies.