Guest User

Untitled

a guest
Sep 16th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.18 KB | None | 0 0
  1. ==============================
  2. # Skript "TuTorial" by Skull #
  3. #         v 1.0              #
  4. #                            #
  5. #                            #
  6. ==============================
  7. options:
  8.     wiadomosc_1: &4Witj na serwerze! Oto maly tutorial &6>PPM<  # Nazwa itemu przy pierwszym teleporcie
  9.     wiadomosc_2: &4Tu znajduje sie sklep         # Nazwa itemu przy drugim teleporcie
  10.     wiadomosc_3: &4To wszystko! Milej gry!       # Nazwa itemu przy ostatnim teleporcie
  11.     item: stick      # nazwa itemu, ktory ma tepac (angielska nazwa)
  12.  
  13.    
  14.    
  15. on first join:
  16.     teleport player to {miejsce_1}
  17.     set {tutorial.%player%} to true
  18.     add 1 {@item} named "{@wiadomosc_1}" to player
  19.     set {tutorial.1.%player%} to true
  20.    
  21. on rightclick holding a {@item}:
  22.     if {tutorial.1.%player%} is true:
  23.         teleport player to {miejsce_2}
  24.         set the name of the player's tool to "{@wiadomosc_2}"
  25.         set {tutorial.1.%player%} to false
  26.         set {tutorial.2.%player%} to true
  27.         stop
  28.     if {tutorial.2.%player%} is true:
  29.         teleport player to {miejsce_3}
  30.         set the name of the player's tool to "{@wiadomosc_3}"
  31.         set {tutorial.2.%player%} to false
  32.         set {tutorial.3.%player%} to true
  33.         stop
  34.     if {tutorial.3.%player%} is true:
  35.         teleport player to spawn
  36.         remove {@item} named "{@wiadomosc_3}" from player
  37.         set {tutorial.%player%} to false
  38.         set {tutorial.3.%player%} to false
  39.         stop
  40. command /tut [<text>] [<text>]:
  41.     trigger:
  42.         arg 1 is "ustaw":
  43.             arg 2 is not set:
  44.                 send "&cUzyj /tut ustaw <1/2/3>"
  45.             arg 2 is "1":
  46.                 set {miejsce_1} to location of player
  47.                 send "&2Ustawiono miejsce TUT_1"
  48.                 stop
  49.             arg 2 is "2":
  50.                 set {miejsce_2} to location of player
  51.                 send "&2Ustawiono miejsce TUT_2"
  52.                 stop
  53.             arg 2 is "3":
  54.                 set {miejsce_3} to location of player
  55.                 send "&2Ustawiono miejsce TUT_3"
  56.                 stop
  57.         else:
  58.             send "&cUzyj /tut ustaw <1/2/3>"
  59. every 1 second:
  60.     loop all players:
  61.         if {tutorial.%loop-player%} is true:
  62.             if {tutorial.1.%loop-player%} is true:
  63.                 teleport loop-player to {miejsce_1}
  64.                 stop
  65.             if {tutorial.2.%loop-player%} is true:
  66.                 teleport loop-player to {miejsce_2}
  67.                 stop
  68.             if {tutorial.3.%loop-player%} is true:
  69.                 teleport loop-player to {miejsce_3}
  70.                 stop
Advertisement
Add Comment
Please, Sign In to add comment