#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Licencja # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Zabraniam: # # » Podszywania się pod autora # # » Usuwania licencji # # » Publikacji kodu # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Zezwalam: # # » Modyfikacja opcji # # » Modyfikacja kodu # # » Uzywanie skryptu na serwerze # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Autor: Quaczi # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Opcje # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# options: time: 5 # Czas w sekundach po jakim ma teleportowac cena: 100 # Cena teleportacji w $ x: 0 # Pozycja spawnu x z: 0 # Pozycja spawnu z tag: &8[&cM&4HC&8] # tag przed kazda wiadomoscia warn: &4[&c!&4] # tag przed wiadomoscia (nie korzystna) lacznik: &6>>> # Wyswietlane miedzy tagiem a wiadomoscia tpinfo: {@kolorglowny}Teleportacja za: {@kolorzaznaczenia}%{_time}% {@kolorglowny}sek # Wiadomosc o czsie do teleportacji tpprzerwane: Teleportacja przerwana&4&l! # Wiadomosc o przerwaniu teleportacji kolorglowny: &7 # Kolor jaki jest używany przed kazda wiadomoscia kolorzaznaczenia: &b # Kolor ktorym zaznaczane sa najwazniejsze informacje #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # System /tpa # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# command /tpa [] []: trigger: if player is "%player%": if arg 1 is set: set {_tpa} to "%player-arg%" parsed as text replace all "a" with "A" in {_tpa} replace all "b" with "B" in {_tpa} replace all "c" with "C" in {_tpa} replace all "d" with "D" in {_tpa} replace all "e" with "E" in {_tpa} replace all "f" with "F" in {_tpa} replace all "g" with "G" in {_tpa} replace all "h" with "H" in {_tpa} replace all "i" with "I" in {_tpa} replace all "j" with "J" in {_tpa} replace all "k" with "K" in {_tpa} replace all "l" with "L" in {_tpa} replace all "n" with "N" in {_tpa} replace all "m" with "M" in {_tpa} replace all "o" with "O" in {_tpa} replace all "p" with "P" in {_tpa} replace all "r" with "R" in {_tpa} replace all "s" with "S" in {_tpa} replace all "t" with "T" in {_tpa} replace all "u" with "U" in {_tpa} replace all "v" with "V" in {_tpa} replace all "w" with "W" in {_tpa} replace all "x" with "X" in {_tpa} replace all "y" with "Y" in {_tpa} replace all "z" with "Z" in {_tpa} set {_tepa} to "%player%" parsed as text replace all "a" with "A" in {_tepa} replace all "b" with "B" in {_tepa} replace all "c" with "C" in {_tepa} replace all "d" with "D" in {_tepa} replace all "e" with "E" in {_tepa} replace all "f" with "F" in {_tepa} replace all "g" with "G" in {_tepa} replace all "h" with "H" in {_tepa} replace all "i" with "I" in {_tepa} replace all "j" with "J" in {_tepa} replace all "k" with "K" in {_tepa} replace all "l" with "L" in {_tepa} replace all "n" with "N" in {_tepa} replace all "m" with "M" in {_tepa} replace all "o" with "O" in {_tepa} replace all "p" with "P" in {_tepa} replace all "r" with "R" in {_tepa} replace all "s" with "S" in {_tepa} replace all "t" with "T" in {_tepa} replace all "u" with "U" in {_tepa} replace all "v" with "V" in {_tepa} replace all "w" with "W" in {_tepa} replace all "x" with "X" in {_tepa} replace all "y" with "Y" in {_tepa} replace all "z" with "Z" in {_tepa} if arg 1 is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Musisz podac nick gracza&4&l!" if arg 1 is set: if arg 2 is not set: set {tpa.%player-arg%.%player%} to true send "{@tag} {@lacznik} {@kolorglowny} Wyslales prosbe o teleportacje do {@kolorzaznaczenia}%{_tpa}%" to player send "{@tag} {@lacznik} {@kolorglowny} Gracz {@kolorzaznaczenia}%{_tepa}% {@kolorglowny}prosi o teleportacje do Ciebie" to player-arg send "{@tag} {@lacznik} {@kolorglowny} Wpisz {@kolorzaznaczenia}/tpa %player% akceptuj {@kolorglowny}aby zaakceptowac teleportacje" to player-arg send "{@tag} {@lacznik} {@kolorglowny} Wpisz {@kolorzaznaczenia}/tpa %player% odrzuc {@kolorglowny}aby odrzucic teleportacje" to player-arg if arg 2 is "akceptuj": if {tpa.%player%.%player-arg%} is not true: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Nie masz prosby od tego gracza&4&l!" to player if {tpa.%player%.%player-arg%} is true: send "{@tag} {@lacznik} {@kolorglowny} Gracz {@kolorzaznaczenia} %{_tepa}% {@kolorglowny} zaakceptowal twoja prosbe" to player-arg send "{@tag} {@lacznik} {@kolorglowny} Zaakceptowales prosbe teleportacji od gracza{@kolorzaznaczenia} %{_tpa}%" to player if player's balance is bigger or equal to {@cena}: remove {@cena} from player's balance set {_posx} to x-location of player-arg set {_posz} to z-location of player-arg set {_posy} to y-location of player-arg set {_time} to {@time} apply nausea to player-arg for 7 seconds send "{@tag} {@lacznik} {@tpinfo}" to player-arg wait 1 second loop {@time} times: difference between x-location of player-arg and {_posx} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" to player-arg add {@cena} to player's balance remove nausea from the player stop difference between z-location of player-arg and {_posz} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" to player-arg add {@cena} to player's balance remove nausea from the player stop difference between y-location of player-arg and {_posy} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" to player-arg add {@cena} to player's balance remove nausea from the player stop remove 1 from {_time} {_time} is 0: teleport player-arg to player remove nausea from the player send "{@tag} {@lacznik} {@kolorglowny} Teleportacja dokonana&a!" to player-arg stop send "{@tag} {@lacznik} {@tpinfo}" to player-arg set {tpa.%player%.%player-arg%} to false set {tpa.%player-arg%.%player%} to false if arg 2 is "odrzuc": if {tpa.%player%.%player-arg%} is not true: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Nie masz prosby od tego gracza&4&l!" to player if {tpa.%player%.%player-arg%} is true: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Gracz {@kolorzaznaczenia} %{_tepa}% {@kolorglowny}odrzucil twoja prosbe" to player-arg send "{@tag} {@lacznik} {@warn} {@kolorglowny} Prosba od gracza {@kolorzaznaczenia} %{_tpa}% {@kolorglowny}zostala odrzucona" to player set {tpa.%player%.%player-arg%} to false set {tpa.%player-arg%.%player%} to false command /tpaccept: trigger: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Uzyj {@kolorzaznaczenia} /tpa NICK akceptuj&4&l!" command /tpdeny: trigger: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Uzyj {@kolorzaznaczenia} /tpa NICK odrzuc&4&l!" #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Spawn # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# command /spawn: trigger: if player's balance is bigger or equal to {@cena}: remove {@cena} from player's balance set {_posx} to x-location of player set {_posz} to z-location of player set {_posy} to y-location of player set {_time} to {@time} apply nausea to player for 7 seconds send "{@tag} {@lacznik} {@tpinfo}" wait 1 second loop {@time} times: difference between x-location of player and {_posx} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop difference between z-location of player and {_posz} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop difference between y-location of player and {_posy} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop remove 1 from {_time} {_time} is 0: teleport player to {spawn} remove nausea from the player send "{@tag} {@lacznik} {@kolorglowny} Witaj na {@kolorzaznaczenia}SPAWN&a!" stop send "{@tag} {@lacznik} {@tpinfo}" wait 1 second send "{@kolorglowny} Aby teleportowac sie musisz miec {@kolorzaznaczenia}{@cena} zlotych." command /setspawn: permission: spawn.ustaw description: Ustawiasz miejsce spawnu. trigger: set {spawn} to location of player send "{@tag} {@lacznik} {@kolorglowny} Ustawiles {@kolorzaznaczenia}SPAWN!" #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# # Warpy # #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# command /setwarp []: permission: spawn.ustaw description: Ustawiasz miejsce warpu. trigger: if arg is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Musisz podac nazwa warpu&4&l!" if arg is set: if {warp.%arg%} is set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Jest juz taki warp&4&l!" if {warp.%arg%} is not set: if {warpy} is set: set {warpy} to "%{warpy}% %arg%" if {warpy} is not set: set {warpy} to "%arg%" add 1 to {warpyilosc} set {warp.%arg%} to player's location set {_w} to arg parsed as text replace all "a" with "A" in {_w} replace all "b" with "B" in {_w} replace all "c" with "C" in {_w} replace all "d" with "D" in {_w} replace all "e" with "E" in {_w} replace all "f" with "F" in {_w} replace all "g" with "G" in {_w} replace all "h" with "H" in {_w} replace all "i" with "I" in {_w} replace all "j" with "J" in {_w} replace all "k" with "K" in {_w} replace all "l" with "L" in {_w} replace all "n" with "N" in {_w} replace all "m" with "M" in {_w} replace all "o" with "O" in {_w} replace all "p" with "P" in {_w} replace all "r" with "R" in {_w} replace all "s" with "S" in {_w} replace all "t" with "T" in {_w} replace all "u" with "U" in {_w} replace all "v" with "V" in {_w} replace all "w" with "W" in {_w} replace all "x" with "X" in {_w} replace all "y" with "Y" in {_w} replace all "z" with "Z" in {_w} send "{@tag} {@lacznik} {@kolorglowny} Ustawiles warp {@kolorzaznaczenia}%{_w}%&a." wait a second command /warpyusun: permission: warpy.admin trigger: delete {warpy} delete {warpyilosc} send "{@tag} {@lacznik} {@kolorglowny} Usunieto {@kolorzaznaczenia}WSZYSTKIE {@kolorglowny}warpy&a." command /warpusun []: permission: warpy.admin trigger: if arg is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Podaj warp do usuniecia&4&l!" if arg is set: if {warp.%arg%} is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Nie ma takiego warpu&4&l!" if {warp.%arg%} is set: set {_w} to arg parsed as text replace all "a" with "A" in {_w} replace all "b" with "B" in {_w} replace all "c" with "C" in {_w} replace all "d" with "D" in {_w} replace all "e" with "E" in {_w} replace all "f" with "F" in {_w} replace all "g" with "G" in {_w} replace all "h" with "H" in {_w} replace all "i" with "I" in {_w} replace all "j" with "J" in {_w} replace all "k" with "K" in {_w} replace all "l" with "L" in {_w} replace all "n" with "N" in {_w} replace all "m" with "M" in {_w} replace all "o" with "O" in {_w} replace all "p" with "P" in {_w} replace all "r" with "R" in {_w} replace all "s" with "S" in {_w} replace all "t" with "T" in {_w} replace all "u" with "U" in {_w} replace all "v" with "V" in {_w} replace all "w" with "W" in {_w} replace all "x" with "X" in {_w} replace all "y" with "Y" in {_w} replace all "z" with "Z" in {_w} replace all "%{warp.%arg%}%" in {warpy} with "" delete {warp.%arg%} remove 1 from {warpyilosc} send "{@tag} {@lacznik} {@kolorglowny} Usunieto warp {@kolorzaznaczenia}%{_w}%&a." command /warps: trigger: execute player command "/warpy" command /warpy: trigger: if {warpy} is set: set {_warpy} to "%{warpy}%" replace all " " in {_warpy} with " &a,{@kolorzaznaczenia} " send "{@kolorglowny} Warpy: {@kolorzaznaczenia}%{warpyilosc}%" send "&8## {@kolorzaznaczenia}%{_warpy}%" if {warpy} is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Nie jeszcze zadnych warpow&4&l!" command /warp []: trigger: if arg is not set: send "{@tag} {@lacznik} {@warn} {@kolorglowny} Podaj nazwe warpu&4&l!" if arg is set: if {warp.%arg%} is set: set {_w} to arg parsed as text replace all "a" with "A" in {_w} replace all "b" with "B" in {_w} replace all "c" with "C" in {_w} replace all "d" with "D" in {_w} replace all "e" with "E" in {_w} replace all "f" with "F" in {_w} replace all "g" with "G" in {_w} replace all "h" with "H" in {_w} replace all "i" with "I" in {_w} replace all "j" with "J" in {_w} replace all "k" with "K" in {_w} replace all "l" with "L" in {_w} replace all "n" with "N" in {_w} replace all "m" with "M" in {_w} replace all "o" with "O" in {_w} replace all "p" with "P" in {_w} replace all "r" with "R" in {_w} replace all "s" with "S" in {_w} replace all "t" with "T" in {_w} replace all "u" with "U" in {_w} replace all "v" with "V" in {_w} replace all "w" with "W" in {_w} replace all "x" with "X" in {_w} replace all "y" with "Y" in {_w} replace all "z" with "Z" in {_w} if player's balance is bigger or equal to {@cena}: remove {@cena} from player's balance set {_posx} to x-location of player set {_posz} to z-location of player set {_posy} to y-location of player set {_time} to {@time} apply nausea to player for 7 seconds send "{@tag} {@lacznik} {@tpinfo}" wait 1 second loop {@time} times: difference between x-location of player and {_posx} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop difference between z-location of player and {_posz} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop difference between y-location of player and {_posy} is bigger than 0.5: send "{@tag} {@lacznik} {@warn} {@tpprzerwane}" add {@cena} to player's balance remove nausea from the player stop remove 1 from {_time} {_time} is 0: teleport player to {warp.%arg%} remove nausea from the player send "{@tag} {@lacznik} {@kolorglowny} Witaj na {@kolorzaznaczenia}%{_w}%&a!" stop send "{@tag} {@lacznik} {@tpinfo}" wait 1 second