Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==============================
- # Skript "TuTorial" by Skull #
- # v 1.0 #
- # #
- # #
- ==============================
- options:
- wiadomosc_1: &4Witj na serwerze! Oto maly tutorial &6>PPM< # Nazwa itemu przy pierwszym teleporcie
- wiadomosc_2: &4Tu znajduje sie sklep # Nazwa itemu przy drugim teleporcie
- wiadomosc_3: &4To wszystko! Milej gry! # Nazwa itemu przy ostatnim teleporcie
- item: stick # nazwa itemu, ktory ma tepac (angielska nazwa)
- on first join:
- teleport player to {miejsce_1}
- set {tutorial.%player%} to true
- add 1 {@item} named "{@wiadomosc_1}" to player
- set {tutorial.1.%player%} to true
- on rightclick holding a {@item}:
- if {tutorial.1.%player%} is true:
- teleport player to {miejsce_2}
- set the name of the player's tool to "{@wiadomosc_2}"
- set {tutorial.1.%player%} to false
- set {tutorial.2.%player%} to true
- stop
- if {tutorial.2.%player%} is true:
- teleport player to {miejsce_3}
- set the name of the player's tool to "{@wiadomosc_3}"
- set {tutorial.2.%player%} to false
- set {tutorial.3.%player%} to true
- stop
- if {tutorial.3.%player%} is true:
- teleport player to spawn
- remove {@item} named "{@wiadomosc_3}" from player
- set {tutorial.%player%} to false
- set {tutorial.3.%player%} to false
- stop
- command /tut [<text>] [<text>]:
- trigger:
- arg 1 is "ustaw":
- arg 2 is not set:
- send "&cUzyj /tut ustaw <1/2/3>"
- arg 2 is "1":
- set {miejsce_1} to location of player
- send "&2Ustawiono miejsce TUT_1"
- stop
- arg 2 is "2":
- set {miejsce_2} to location of player
- send "&2Ustawiono miejsce TUT_2"
- stop
- arg 2 is "3":
- set {miejsce_3} to location of player
- send "&2Ustawiono miejsce TUT_3"
- stop
- else:
- send "&cUzyj /tut ustaw <1/2/3>"
- every 1 second:
- loop all players:
- if {tutorial.%loop-player%} is true:
- if {tutorial.1.%loop-player%} is true:
- teleport loop-player to {miejsce_1}
- stop
- if {tutorial.2.%loop-player%} is true:
- teleport loop-player to {miejsce_2}
- stop
- if {tutorial.3.%loop-player%} is true:
- teleport loop-player to {miejsce_3}
- stop
Advertisement
Add Comment
Please, Sign In to add comment