Skocz do zawartości

Shooterowy

Użytkownik
  • Ilość zawartości

    999
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    23

Treść opublikowana przez Shooterowy

  1. Jeśli masz silnik spigot to możesz ustawić to w pliku spigot.yml Z tego co się orientuję to w Skript nie da się sprawdzić czy dana komenda istnieje, musiałbyś wypisać je wszystkie po kolei. (Być może jakiś dodatek dodaje taką możliwość)
  2. Shooterowy

    Skrypt na topki

  3. Shooterowy

    Skrypt na aktywność

    on join: if {Time::spent::%player%} is not set: set {Time::spent::%player%} to 0 seconds set {Time::lastseen::%player%} to now on quit: add difference between {Time::lastseen::%player%} and now to {Time::spent::%player%} set {Time::lastseen::%player%} to now command /czas [<text="%player%">]: trigger: if {Time::spent::%argument%} is not set: send "&cBłąd: Nie ma takiego gracza." stop set {Time::openedinventory::%player%} to true set {_target} to argument parsed as offline player open chest with 6 rows named "&eCzas" to player loop 54 times: set slot loop-number -1 of player's current inventory to green glass pane named " " set slot 4 of player's current inventory to {_target}'s skull named "&9%argument%" while {Time::openedinventory::%player%} is set: set {_total} to {Time::spent::%argument%} if {_target} is online: set {_session} to difference between {Time::lastseen::%argument%} and now set {_t} to "%{_session}%" replace "days" and "day" with "dni" in {_t} replace "hours" and "hour" with "godzin" in {_t} replace "minutes" and "minute" with "minut" in {_t} replace "seconds" and "second" with "sekund" in {_t} replace " and" with "" in {_t} set slot 11 of player's current inventory to clock named "&aBieżąca sesja" with lore "&c%{_t}%" add {_session} to {_total} else: set slot 11 of player's current inventory to ender pearl named "&aOstatnio widziany" with lore "&c%{Time::lastseen::%argument%}%" set {_t} to "%{_total}%" replace "days" and "day" with "dni" in {_t} replace "hours" and "hour" with "godzin" in {_t} replace "minutes" and "minute" with "minut" in {_t} replace "seconds" and "second" with "sekund" in {_t} replace " and" with "" in {_t} set slot 15 of player's current inventory to paper named "&aŁączny czas gry" with lore "&c%{_t}%" set {_s} to 29 loop {Time::spent::*}: add loop-index to {_players::*} loop 10 times: loop {_players::*}: set {_ttarget} to loop-value-2 parsed as offline player set {_total} to {Time::spent::%loop-value-2%} if {_ttarget} is online: add difference between {Time::lastseen::%loop-value-2%} and now to {_total} if {_top::%loop-number%::player} is not set: set {_top::%loop-number%::player} to loop-value-2 set {_top::%loop-number%::total} to {_total} else if {_total} is more than {_top::%loop-number%::total}: set {_top::%loop-number%::player} to loop-value-2 set {_top::%loop-number%::total} to {_total} remove {_top::%loop-number%::player} from {_players::*} if {_top::%loop-number%::player} is set: set {_ttarget} to {_top::%loop-number%::player} parsed as offline player set {_t} to "%{_top::%loop-number%::total}%" replace "days" and "day" with "dni" in {_t} replace "hours" and "hour" with "godzin" in {_t} replace "minutes" and "minute" with "minut" in {_t} replace "seconds" and "second" with "sekund" in {_t} replace " and" with "" in {_t} set slot {_s} of player's current inventory to {_ttarget}'s skull named "&6%loop-number%. &9%{_ttarget}%" with lore "&c%{_t}%" add 1 to {_s} if {_s} is 33: add 5 to {_s} else: exit loop wait a second on inventory click: if inventory name of player's current inventory is "&eCzas": cancel event on inventory close: if {Time::openedinventory::%player%} is set: clear {Time::openedinventory::%player%} Do napisania dodatkowy kod który przelicza dziesiętne części godzin na minuty, minut na sekundy.
  4. command /kowal: trigger: open chest with 5 rows named "&e&lKowal" to player loop 45 times: set slot loop-number - 1 of current inventory of player to light blue glass pane named " " set slot 11 of current inventory of player to red glass pane named " " set slot 15 of current inventory of player to green glass pane named " " set slot 19 of current inventory of player to red glass pane named " " set slot 20 of current inventory of player to air set slot 21 of current inventory of player to red glass pane named " " set slot 23 of current inventory of player to green glass pane named " " set slot 24 of current inventory of player to air set slot 25 of current inventory of player to green glass pane named " " set slot 29 of current inventory of player to red glass pane named " " set slot 33 of current inventory of player to green glass pane named " " set slot 40 of current inventory of player to anvil named "&eNapraw" set {opened::%player%} to true on inventory click: if inventory name of current inventory of player is "&e&lKowal": if clicked slot is not 20 or 24: cancel event if clicked slot is 40: if slot 20 of current inventory of player is any sword or any tool or any armour or shield or elytra or bow or fishing rod or shears or flint and steel: if durability of slot 20 of current inventory of player is not 0: if slot 24 of current inventory of player is a diamond: if current inventory of player contains 10 diamonds: remove 10 diamonds from current inventory of player repair slot 20 of current inventory of player stop on inventory close: if {opened::%player%} is set: if slot 20 of current inventory of player is not air: add slot 20 of current inventory of player to player if slot 24 of current inventory of player is not air: add slot 24 of current inventory of player to player clear {opened::%player%} stop
  5. variables: {drop::diament::%player%} = true on inventory click: if inventory name of player's current inventory is "&eDrop": cancel event if clicked slot is 4: if {drop::diament::%player%} is false: set {drop::diament::%player%} to true set clicked slot to glowing diamond named "&bDiament" with lore "&7Status: &aWłączone" else: set {drop::diament::%player%} to false set clicked slot to diamond named "&bDiament" with lore "&7Status: &cWyłączone" command /drop: trigger: open chest with 1 rows named "&eDrop" to player if {drop::diament::%player%} is false: set slot 4 of player's current inventory to diamond named "&bDiament" with lore "&7Status: &cWyłączone" else: set slot 4 of player's current inventory to glowing diamond named "&bDiament" with lore "&7Status: &aWłączone" add glowing stick to player #daje graczowi świecący patyk (bez enchantów)
  6. on command: if command is "testforblock" or "effect": if sender is a player: cancel event Blokuje używanie komend /testforblock i /effect przez graczy.
  7. Shooterowy

    Tpa

    options: request_time: 30 teleport_delay: 5 command /tpa [<text>]: trigger: if argument is not set: send "&cPoprawne użycie: /tpa <gracz>" stop set {_target} to argument parsed as player if {_target} is offline: send "&cBłąd: Nie ma takiego gracza." stop if {_target} is player: send "&cBłąd: Nie możesz teleportować się do siebie." stop if {tpa::request::%{_target}%::ignored::*} contains player: send "&c%{_target}% &7zablokował Ci możliwość wysyłania próśb o teleportację do niego." stop set {tpa::request::%{_target}%::received} to player set {tpa::request::%{_target}%::received::time} to now send "&7Wysłano prośbę o teleportację do &c%{_target}%&7." send "&c%player% &7chce się do Ciebie teleportować. Użyj &c/tpaccept&7, aby zaakceptować. Masz na to &c{@request_time} &7sekund." to {_target} stop command /tpaccept: trigger: if {tpa::request::%player%::received} is not set: send "&cBłąd: Nie masz oczekującej prośby o teleportację." stop set {_target} to {tpa::request::%player%::received} if {_target} is offline: send "&cBłąd: Gracz opuścił serwer." clear {tpa::request::%player%::received} clear {tpa::request::%player%::received::time} stop if difference between {tpa::request::%player%::received::time} and now is more than {@request_time} seconds: clear {tpa::request::%player%::received} clear {tpa::request::%player%::received::time} send "&cBłąd: Prośba o teleportację przedawniona." stop clear {tpa::request::%player%::received} clear {tpa::request::%player%::received::time} send "&7Akceptowałeś prośbę o teleportowację." send "&c%player% &7akceptował Twoją prośbę o teleportację." to {_target} send "&7Teleportacja nastąpi za &c{@teleport_delay} &7sekund. &7Nie ruszaj się." to {_target} wait a second set {_tpos} to {_target}'s location loop {@teleport_delay}-1 times: if distance between {_tpos} and {_target} is more than 0.01: send "&cRuszyłeś się. Teleportacja przerwana." to {_target} stop if player is offline: send "&cGracz opuścił serwer. Teleportacja przerwana." to {_target} stop wait a second send "&7Teleportacja..." to {_target} teleport {_target} to player stop command /tpdeny: trigger: if {tpa::request::%player%::received} is not set: send "&cBłąd: Nie masz oczekującej prośby o teleportację." stop set {_target} to {tpa::request::%player%::received} clear {tpa::request::%player%::received} clear {tpa::request::%player%::received::time} send "&7Odrzuciłeś prośbę o teleportowację." send "&c%player% &7odrzucił Twoją prośbę o teleportację." to {_target} stop command /tpaignore [<text>]: trigger: if argument is not set: send "&cPoprawne użycie: /tpingore <gracz>" stop set {_target} to argument parsed as player if {_target} is offline: send "&cBłąd: Nie ma takiego gracza." stop if {_target} is player: send "&cBłąd: Nie możesz ignorować samego siebie." stop if {tpa::request::%player%::ignored::*} contains {_target}: send "&cBłąd: Ignorujesz już tego gracza." stop add {_target} to {tpa::request::%player%::ignored::*} send "&7Zablokowano &c%{_target}% &7możliwość wysyłania próśb o teleportację do Ciebie." send "&c%player% &7zablokował Ci możliwość wysyłania próśb o teleportację do niego." to {_target} command /tpaunignore [<text>]: trigger: if argument is not set: send "&cPoprawne użycie: /tpuningore <gracz>" stop set {_target} to argument parsed as offline player if {tpa::request::%player%::ignored::*} doesn't contain {_target}: send "&cBłąd: Nie ignorujesz tego gracza." stop remove {_target} from {tpa::request::%player%::ignored::*} send "&7Odblokowano &c%{_target}% &7możliwość wysyłania próśb o teleportację do Ciebie." if {_target} is online: send "&c%player% &7odblokował Ci możliwość wysyłania próśb o teleportację do niego." to {_target} stop command /tpaignored: trigger: if size of {tpa::request::%player%::ignored::*} is 0: send "&7Nikogo nie ignorujesz." stop set {_ignored} to "%{tpa::request::%player%::ignored::*}%" replace " and" with "," in {_ignored} send "&7Lista ignorowanych osób: &c%{_ignored}%" stop command /tpahelp: trigger: send "&7Komendy TPA:" send "&c/tpa <gracz>" send "&c/tpaccept" send "&c/tpdeny" send "&c/tpaignore <gracz>" send "&c/tpaunignore <gracz>" send "&c/tpaignored" send "&c/tpahelp"
  8. Shooterowy

    Stowniarki +

    on Skript start: register new shaped recipe for endstone named "&aStowniarkaplus" using diamond block, diamond block, diamond block, diamond block, emerald block, diamond block, diamond block, diamond block, diamond block on inventory click: if type of player's current inventory is workbench inventory: if clicked slot is endstone named "&aStowniarkaplus": loop 9 times: set {_i} to slot loop-number of player's current inventory if loop-number is not 5: if "%{_i}%" is not "64 diamond blocks": cancel event stop else: if "%{_i}%" is not "64 emerald blocks": cancel event stop loop 9 times: set slot loop-number of player's current inventory to air add endstone named "&aStowniarkaplus" to cursor slot of player command /stowniarkaplus [<text>] [<text>]: trigger: if argument 1 is not "daj" or "dodaj" or "usun": send "&c/stowniarkaplus <daj/dodaj/usun> <gracz>" else: if argument 2 parsed as player is not set: send "&c/stowniarkaplus <daj/dodaj/usun> <gracz>" else: if argument 1 is "daj": add endstone named "&aStowniarkaplus" to argument 2 parsed as player send "&aDales stowniarkeplus graczowi %argument 2%." else if argument 1 is "dodaj": if {Stowniarkaplus::%targeted block%::owner} is not set: send "&cMusisz patrzeć na stowniarke." else if {Stowniarkaplus::%targeted block%::owner} is not player: send "&cTo nie jest twoja stowniarka." else: if {Stowniarkaplus::%targeted block%::players::*} contains argument 2 parsed as player: send "&cTen gracz jest juz dodany do tej stowniarki." else: add argument 2 parsed as player to {Stowniarkaplus::%targeted block%::players::*} send "&aDodales gracza %argument 2% do swojej stowniarki." else: if {Stowniarkaplus::%targeted block%::owner} is not set: send "&cMusisz patrzeć na stowniarke." else if {Stowniarkaplus::%targeted block%::owner} is not player: send "&cTo nie jest twoja stowniarka." else if argument 2 parsed as player is player: send "&cNie mozesz usunac sie ze swojej stoniarki." else: if {Stowniarkaplus::%targeted block%::players::*} contains argument 2 parsed as player: remove argument 2 parsed as player from {Stowniarkaplus::%targeted block%::players::*} send "&aUsunąłeś gracza %argument 2% do twojej stowniarki." else: send "&cTen gracz nie jest dodany do tej stowniarki." on place: if player's tool is endstone named "&aStowniarkaplus": set {Stowniarkaplus::%event-block%::owner} to player add player to {Stowniarkaplus::%event-block%::players::*} send "&aPostawiles stowniarkeplus." set block above event-block to stone on break: if {Stowniarkaplus::%block below event-block%::owner} is set: if {Stowniarkaplus::%block below event-block%::players::*} contains player: #Tutaj drop ze stowniarki if chance of 3%: drop obsidian at event-block else if chance of 2%: drop golden apple at event-block else if chance of 1%: drop enchanted golden apple at event-block wait a second set event-block to stone else: cancel event send "&cNie mozesz uzywac tej stowniarki." else if {Stowniarkaplus::%event-block%::owner} is set: cancel event if {Stowniarkaplus::%event-block%::owner} is player: delete event-block delete block above event-block clear {Stowniarkaplus::%event-block%::owner} clear {Stowniarkaplus::%event-block%::players::*} wait a tick drop endstone named "&aStowniarkaplus" at event-block send "&cUsunales stowniarke." else: send "&cNie jestes wlascicielem tej stowniarki."
  9. on place: if player's tool is jungle log named "&7Tartak": set {Tartak::%event-location%} to event-location send "&aPostawiles tartak." on break: if event-block is jungle log: if {Tartak::%event-location%} is set: if player's tool is not golden axe: wait a second set event-block to jungle log else: clear {Tartak::%event-location%} send "&cUsunales tartak." command /tartak: trigger: add jungle log named "&7Tartak" to player
  10. Shooterowy

    Drop z rudy

    Zamienia rudę na kamień po uderzeniu w nią. on leftclick on any ore: set event-block to stone Blokuje wykopanie rudy i usuwa blok. on mine of any ore: cancel event set event-block to air
  11. Shooterowy

    wyścigi

    command /lodka: trigger: spawn a boat above player set spawned entity's passenger to player while spawned entity's passenger is player: wait a second send "Wysiadłeś z łódki!" delete spawned entity stop
  12. on rightclick on villager: if name of clicked entity is "Misja": if {misja::%player%} is set: if difference between {misja::%player%} and now is less than 30 seconds: send "Wykonujesz juz misje" else: send "Nie udalo sie wykonac misji." clear {misja::%player%} else: set {misja::%player%} to now send "Wykop 1 cobblestone w ciągu 30 sekund." on break of stone: if {misja::%player%} is set: if difference between {misja::%player%} and now is smaller than 30 seconds: send "Udalo ci sie wykonac misje" add diamond to player else: send "Nie udalo sie wykonac misji." clear {misja::%player%}
  13. Shooterowy

    Zakończenie wakacji

    Nareszcie.
  14. Shooterowy

    KitPVP

    on load: if folder "plugins/PVPKits" doesn't exists: create folder "plugins/PVPKits" if file "plugins/PVPKits/Message.yml" doesn't exists: create file "plugins/PVPKits/Message.yml" set yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJestes w trakcie walki, nie wychodz z gry!" set {AntyLogOut1} to yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" set yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJuz nie jestes w trakcie walki, mozesz sie wylogowac" set {AntyLogOut2} to yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit PVP" set {Kit-PvP} to yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit Druid" set {Kit-Druid} to yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit VIP" set {Kit-VIP} to yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yaml" if file "plugins/PVPKits/GUI.yml" doesn't exists: create file "plugins/PVPKits/GUI.yml" set yaml value "KitsGUI" from file "plugins/PVPKits/GUI.yml" to "&a&lKits" set {KitsGUI} to yaml value "KitsGUI" from file "plugins/PVPKits/GUI.yml" Nie ma możliwości spersonalizowania wiadomości, ponieważ wczytujesz je tylko raz, po utworzeniu pliku. on load: if folder "plugins/PVPKits" doesn't exists: create folder "plugins/PVPKits" if file "plugins/PVPKits/Message.yml" doesn't exists: create file "plugins/PVPKits/Message.yml" set yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJestes w trakcie walki, nie wychodz z gry!" set yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJuz nie jestes w trakcie walki, mozesz sie wylogowac" set yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit PVP" set yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit Druid" set yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit VIP" set {AntyLogOut1} to yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" set {AntyLogOut2} to yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yaml" set {Kit-PvP} to yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yaml" set {Kit-Druid} to yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yaml" set {Kit-VIP} to yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yaml" if file "plugins/PVPKits/GUI.yml" doesn't exists: create file "plugins/PVPKits/GUI.yml" set yaml value "KitsGUI" from file "plugins/PVPKits/GUI.yml" to "&a&lKits" set {KitsGUI} to yaml value "KitsGUI" from file "plugins/PVPKits/GUI.yml"
  15. on inventory click: if event-slot is feather named "&e&lPodwojny Skok": if type of player's current inventory is ender chest inventory: send "&cNie możesz schować tego przedmiotu do ender chesta, jest to przedmiot klasy." cancel event on drop: if event-item is feather named "&e&lPodwojny Skok": delete item skrypt wyżej może wyrzucać błąd przy usuwaniu wyrzuconego przedmiotu (przynajmniej u mnie tak jest) //Edit (wersja II) on inventory click: if event-slot is feather named "&e&lPodwojny Skok": if type of player's current inventory is ender chest inventory: send "&cNie możesz schować tego przedmiotu do ender chesta, jest to przedmiot klasy." cancel event on drop: if event-item is feather named "&e&lPodwojny Skok": wait a tick loop dropped items in radius 0.01 around event-location: delete loop-entity
  16. On right click: if "%clicked block%" contains "button": send "Uzyles przycisku"
  17. command /wyrzuc [<text>]: trigger: execute player command "/is kick %argument%"
  18. Czyli zamiast "%arg 1%" dajesz po prostu arg 1 set "%player%.(%{ile.%player%}%)" to arg 1 in yaml file "plugins/POMOCE/bug.yml"
  19. Shooterowy

    Skrypt na /pin

    Oczywiście, zmieniaj co chcesz i jak chcesz. Musisz mieć dodatek skUtilities.
  20. Shooterowy

    Skrypt na /pin

    Testowane na PaperSpigot 1.14.4 git-Paper-167, Skript 2.4-beta5, SkQuery 4.1.1, SkRayFall 1.9.17, skUtilities 0.9.2 Gracze z uprawnieniem AdminPIN będą musieli wpisywać pin po zalogowaniu. Plik z pinami generuje się w folderze "plugins/AdminPIN/pins.yml". Jego struktura wygląda następująco: Shooterowy: 123456 Nick_gracza: PIN
  21. Reumatyzm
  22. Aminokwas
  23. amortyzator
  24. Nairobi
  25. Styropian
×
×
  • Dodaj nową pozycję...