#=====================================================# # SKRYPT NAPISANY PRZEZ PGMAJSTER # # SKRIPT.PL & PGMAJSTER.EU # # ZAKAZ KOPIOWANIA ORAZ ROZPRZESZCZENIANIA SKRYPTU # #=====================================================# #=====================================================# # WSTĘPNA KONFIGURACJA # #=====================================================# variables: {tpeq.%player%} = true #JEŻELI SIĘ NIE ZNASZ, A CHCESZ, ABY SKRYPT DZIAŁAŁ TO NIE RUSZAJ TEGO options: tag: &f&l[&a&lItemTP&f&l] #TAG WIADOMOŚCI WYSYŁANYCH DO GRACZA timegive: 10 #CO ILE MINUT MOŻNA UŻYWAĆ KOMENDY /tpeq timetpsec: 5 #CZY JEŻELI WŁĄCZONE OCZEKIWANIE NA TP (UP) TO ILE MA CZEKAĆ SEKUND W BEZRUCHU? #=====================================================# # ITEMY TELEPORTUJĄCE # #=====================================================# item1: stick #ITEM TELEPORTUJĄCY NA SPAWN item2: clock #ITEM TELEPORTUJĄCY NA WARP 1 item3: bone #ITEM TELEPORTUJĄCY NA WARP 2 item3: blaze rod #ITEM TELEPORTUJĄCY NA WARP 3 item4: arrow #ITEM TELEPORTUJĄCY NA WARP 4 item5: bowl #ITEM TELEPORTUJĄCY NA WARP 5 #=====================================================# # WARPY TELEPORTUJĄCE # # ZALECAM PISAĆ Z WIELKIEJ LITERY! # #=====================================================# warp1: Parkour #WARP DO ITEMU TELEPORTUJĄCEGO 2 warp2: Sklep #WARP DO ITEMU TELEPORTUJĄCEGO 3 warp3: StrefaVIP #WARP DO ITEMU TELEPORTUJĄCEGO 4 warp4: StrefaSVIP #WARP DO ITEMU TELEPORTUJĄCEGO 5 #=====================================================# # KOMENDA /tpeq - OTRZYMANIE TPEQ # #=====================================================# command /tpeq: #KOMENDA trigger: if {tpeq.%player%} is true: #GRACZ JESZCZE NIE KORZYSTAŁ Z KOMENDY, LUB UPLYNĄŁ WYZNACZONY CZAS set {tpeq.%player%} to false #WŁĄCZAMY give {@item1} named "&a&lSpawn" to the player #ITEM TELEPORTUJĄCY 1 give {@item2} named "&a&l{@warp1}" to the player #ITEM TELEPORTUJĄCY 2 give {@item3} named "&a&l{@warp2}" to the player #ITEM TELEPORTUJĄCY 3 give {@item4} named "&a&l{@warp3}" to the player #ITEM TELEPORTUJĄCY 4 give {@item5} named "&a&l{@warp4}" to the player #ITEM TELEPORTUJĄCY 5 send "{@tag}&7 Otrzymales teleportujace EQ!" to player #WYSYŁAMY WIADOMOŚĆ DO GRACZA wait {@timegive} minutes #CZEKAMY X MINUT NA PONOWNE UŻYCIE KOMENDY set {tpeq.%player%} to true #WŁĄCZAMY MOŻLIWOŚĆ PONOWNEGO SKORZYSTANIA Z KOMENDY /TPEQ send "{@tag}&7 Mozesz ponownie wziasc teleportujace EQ!" to player else: send "{@tag}&c Wziales juz eq teleportujace! Ponownie mozesz je wziasc za {@timegive} minut/y!" to player #INFO, GDY KTOŚ UŻYŁ KOMENDY, A NIE MINEŁO X MINUT stop #=====================================================# # DOSTAWANIE EQ TELEPORTUJĄCEGO PO 1 WEJŚCIU NA SERWER # #=====================================================# on first join: wait 10 seconds #DAJMY GRACZOWI CZAS NA ZALOGOWANIE SIĘ :) execute player command "/tpeq" #WYKONUJEMY KOMENDE PRZEZ GRACZA NA EQ stop #STOPUJEMY #=====================================================# # TELEPORTACJA POPRZEZ ITEMY # #=====================================================# on rightclick holding a {@item1}: #GDY KLIKNIEMY NA ITEM 1 if name of player's tool is "&a&lSpawn": #NAZWA ITEMU set {teleport.%player%} to true #AKTYWOWANIE TELEPORTU send "{@tag}&7 Teleportuje..." to player #WYSYŁANIE WIADOMOŚCI O TELEPORTACJI wait {@timetpsec} seconds #CZEKANIE X SEKUND, MOŻNA USTAWIĆ W OPTIONS if {teleport.%player%} is true: #JEŻELI NIE PRZERWANO TELEPORTU, TO NADAL JEST AKTWNY teleport player to spawn #TELEPORTACJA set {teleport.%player%} to false #WYŁĄCZA TELEPORT stop #STOPOWANIE #=====================================================# # DALSZY KOD TELEPORTACJI # #TEGO KODU NIE BĘDĘ JUŻ TŁUMACZYŁ, PONIEWAŻ SIĘ POWTARZA# #=====================================================# on rightclick holding a {@item2}: if name of player's tool is "&a&l{@warp1}": set {teleport.%player%} to true send "{@tag}&7 Teleportuje..." to player wait {@timetpsec} seconds if {teleport.%player%} is true: execute player command "/warp {@warp1}" set {teleport.%player%} to false stop on rightclick holding a {@item3}: if name of player's tool is "&a&l{@warp2}": set {teleport.%player%} to true send "{@tag}&7 Teleportuje..." to player wait {@timetpsec} seconds if {teleport.%player%} is true: execute player command "/warp {@warp2}" set {teleport.%player%} to false stop on rightclick holding a {@item4}: if name of player's tool is "&a&l{@warp3}": set {teleport.%player%} to true send "{@tag}&7 Teleportuje..." to player wait {@timetpsec} seconds if {teleport.%player%} is true: execute player command "/warp {@warp3}" set {teleport.%player%} to false stop on rightclick holding a {@item5}: if name of player's tool is "&a&l{@warp4}": set {teleport.%player%} to true send "{@tag}&7 Teleportuje..." to player wait {@timetpsec} seconds if {teleport.%player%} is true: execute player command "/warp {@warp4}" set {teleport.%player%} to false stop #=====================================================# # ZABEZPIECZENIE PVP # #=====================================================# on damage of player: #GDY KTOŚ BIJE GRACZA PODCZAS TELEPORTU if {teleport.%victim%} is true: #GDY TELEPORTOWANIE JEST W TOKU send "{@tag}&c Teleport anulowany!" to victim #WIADOMOŚĆ O ANULOWANIU TELEPORTU set {teleport.%victim%} to false #WYŁĄCZANIE TELEPORTU stop #STOPOWANIE on walking on stone or grass or cobblestone or wood or any wool or sandstone or netherrack or glowstone or sand or gravel or snow or stone brick: #WYŁĄCZA TELEPORT PODCZAS RUSZANIA SIE Z MIEJSCA if {teleport.%player%} is true: send "{@tag}&c W trakcie teleportacji nie mozesz sie ruszac!" to player set {teleport.%player%} to false stop on fly: if {teleport.%player%} is true: send "{@tag}&c W trakcie teleportacji nie mozesz latac!" to player set {teleport.%player%} to false stop