Skocz do zawartości

Shooterowy

Użytkownik
  • Ilość zawartości

    999
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    23

Treść opublikowana przez Shooterowy

  1. command /gui: trigger: set {_gui} to chest with 1 row named "&1GUI" set slot 4 of {_gui} to sponge named "&6Niespodzianka" open {_gui} to player on inventory click: if name of clicked inventory is "&1GUI": cancel event if type of clicked inventory is chest inventory: if index of clicked slot is 4: if click type is left mouse button: add dirt to player else if click type is left mouse button with shift: add iron ingot to player else if click type is right mouse button: add glass to player else if click type is right mouse button with shift: add coal to player
  2. options: nazwa: "&d&lEpicka Sniezka" on gamemode change: if player's gamemode is spectator: loop items in player's inventory: if name of loop-item is {@nazwa}: add loop-item to {items::%player%::*} else if player's gamemode is survival: add {items::%player%::*} to player clear {items::%player%::*} Nie wiem czy zadziała, bo plugin, który czyści ekwipunek po śmierci może usunąć itemy zanim skrypt zapisze je do zmiennej.
  3. Zamień wyrażenia zadawania obrażeń damage {_Moby::*} by {ZRodzka2.%player%} na make player damage {_Moby::*} by {ZRodzka2.%player%}
  4. Wrzuciłem na code.skript.pl Przetestowałem u siebie, wszystko działa.
  5. options: nazwa: "&d&lEpicka Sniezka" on death: if victim is a player: loop drops: if name of loop-item is {@nazwa}: add loop-item to {items::%victim%::*} remove loop-item from drops on respawn: wait a tick add {items::%player%::*} to player clear {items::%player%::*}
  6. command /mag [<text>] [<text>] [<text>]: trigger: if arg 1 is "dodaj": if arg 2 is set: if arg 3 is set: execute player command "/arm addmember %arg 2% %arg 3%"
  7. Jeśli korzystasz z pluginu Essentials to w configu jest opcja, która daje nieśmiertelność po teleportacji komendą teleport-invulnerability: 4 Jeśli chcesz wyłączyć to ustaw na 0.
  8. spróbuj if index of clicked slot is between 0 and 35:
  9. zamień loop-zombies na loop-entity
  10. masz starą wersję Skript
  11. Skrypt za szybko sprawdza kliknięty slot on inventory click: if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA": wait a tick if event-slot is 12: set {_item} to slot 12 of player's current inventory if {_item} is any tool: send "tool" to event-player set slot 14 of player's current inventory to diamond else: set slot 14 of player's current inventory to air if {_item} is any sword: send "sword" to event-player set slot 14 of player's current inventory to diamond
  12. W pliku plugins/Essentials/config.yml U mnie jest to linijka 549 zamień false na true
  13. on death: victim is a player attacker is a player add 100 to {punkty::%attacker%} remove 100 from {punkty::%victim%} send "&7>> &aGracz &4%attacker% &azabił gracza &4%victim% &a100 punktów" to all players
  14. on rightclick on player skull: delete event-block wait a tick set event-block to player's skull if {holo::%event-block%} is set: unregister hologram {holo::%event-block%} clear {holo::%event-block%} set {_holoskull} to new hologram at location 0.4 meter above event-block add text "&6%player%" to hologram {_holoskull} set {holo::%event-block%} to {_holoskull} on break: if event-block is player skull: if {holo::%event-block%} is set: unregister hologram {holo::%event-block%} Wymagane HolographicDisplays i HolographicDisplaysAddon
  15. hmm, u mnie działa taki kod (przykład) command /test: trigger: loop 10 times: if loop-number is 5: set {_n} to loop-number exit loop send "%{_n}%" add 0.10 to {_n} send "%{_n}%" Sprawdź u siebie, jak nie działa to spróbuj z inna wersją skript P.S. ustawiasz zmienną {_SRObrazenia} a w temacie masz zmienną {_Obrazenia}?
  16. Pokaż kod od ustawiania zmiennej {_Obrazenia}
  17. ID przedmiotów nie są już wspierane, używaj nazw (w tym przypadku black glass pane)
  18. Shooterowy

    Skrypt na kody

    command /utworzkod [<text>] [<text>] [<text>]: permission: utworz.kod permission message: &cNie masz uprawnień do tej komendy. trigger: if arg 1 is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop if {code::%arg 1%::usages} is set: send "&cTaki kod już istnieje." stop if arg 2 parsed as integer is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop if arg 3 is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop set {code::%arg 1%::usages} to arg 2 parsed as integer set {code::%arg 1%::command} to arg 3 send "&aUtworzono kod &e%arg 1% &a(&c%arg 2%&a) z komendą &7%arg 3%&a." command /odbierz [<text>]: permission: odbierz.kod permission message: &cNie masz uprawnień do tej komendy. trigger: if arg is not set: send "&cPoprawne użycie: /odbierz <kod>" stop if {code::%arg%::usages} is not set: send "&cTaki kod nie istnieje." stop if {code::%arg%::usedby::*} contains name of player: send "&cUżyłeś już tego kodu" stop send "&aUżyłeś kodu &e%arg%&a." add name of player to {code::%arg%::usedby::*} set {_cmd} to {code::%arg%::command} replace "{PLAYER}" with "%player%" in {_cmd} if {code::%arg%::command} contains "/": make player run command "%{_cmd}%" as op else: execute console command "%{_cmd}%" remove 1 from {code::%arg%::usages} if {code::%arg%::usages} is 0: send "&7Kod &e%arg% &7został wyczerpany." to ops clear {code::%arg%::*} and {code::%arg%} Jeśli chcesz użyć nicku gracza to w komendzie podaj {PLAYER}
  19. on command "spawn": if difference between metadata value "spawn" of player and now is less than 15 seconds: cancel event set {_timeleft} to 15 seconds remove difference between metadata value "spawn" of player and now from {_timeleft} set {_timeleft} to rounded up first element of split "%{_timeleft}%" at " " parsed as number send "Musisz poczekać jeszcze %{_timeleft}% sekund" stop set metadata value "spawn" of player to now
  20. spróbuj add 0.10 to {_Obrazenia} parsed as number
  21. jeśli chcesz wysłać znak specjalny to musisz go podwoić send "%%"
  22. Shooterowy

    warunek

    if player doesn't have diamond:
  23. Shooterowy

    Ban po logowaniu

    on command: if full command is "/register 12345 12345" or "/reg 12345 12345": cancel event execute console command "ban-ip %player%"
  24. To zależy jakie skrypty chcesz pisać.
  25. Player player = event.getPlayer(); ItemStack item = new ItemStack(Material.DIAMOND_PICKAXE, 1); ItemMeta meta = item.getItemMeta(); meta.addEnchant(Enchantment.DIG_SPEED, 5, true); meta.addEnchant(Enchantment.DURABILITY, 3, true); meta.addEnchant(Enchantment.LOOT_BONUS_BLOCKS, 3, true); item.setItemMeta(meta); if(player.getInventory().contains(item)) player.getInventory().remove(item);
×
×
  • Dodaj nową pozycję...