Skocz do zawartości

PanAnimek

Użytkownik
  • Ilość zawartości

    406
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    13

Treść opublikowana przez PanAnimek

  1. PanAnimek

    Skrypt na Ban'a

    Pamiętaj, że zmienne też umieszczasz w %%, np send "%{ban::%player%}%" A więc Twój kod będzie działał, jeśli będzie wyglądał on tak: command /ban [<offlineplayer>] [<text>]: trigger: if arg-1 is not set: send "&bPoprawne uzycie: &f&l/ban <gracz> <powod>&b!" to player else if arg-2 is not set: send "&bPoprawne uzycie: &f&l/ban <gracz> <powod>&b!" to player else if arg-1 is set: if arg-2 is set: send "&bGracz: &f&l%arg-1% &bzostal zbanowany z powodem: &f&l%arg-2% &bprzez: &f&l%player%&b!" to all players set {ban::%arg-1%} to true set {banplayer::%arg-1%} to player set {banreason::%arg-1%} to arg-2 kick arg-1 due to "&bZostales zbanowany! %nl% %nl% &bInformacje o banie: %nl% &f&lTwoj nick: %arg-1% %nl% &f&lZbanowany przez: %{banplayer::%arg-1%}% %nl% &f&lZbanowany za: %{banreason::%arg-1%}% %nl% &f&lZbanowany na: zawsze %nl% %nl% &bKup unbana na: &f&lIcePVP.pl&b!" on join: if {ban::%player%} is true: kick player due to "&bZostales zbanowany! %nl% %nl% &bInformacje o banie: %nl% &f&lTwoj nick: %player% %nl% &f&lZbanowany przez: %{banplayer::%player%}% %nl% &f&lZbanowany za: %{banreason::%player%}% %nl% &f&lZbanowany na: zawsze %nl% %nl% &bKup unbana na: &f&lIcePVP.pl&b!"
  2. on message: if "%first character of message%" is "#": //zrob cos
  3. PanAnimek

    Komenda

    options: czas: 30 seconds on command: if command is "fly": if {fly::%player%} is not set: set {fly::%player%} to now stop set {_check} to difference between {fly::%player%} and now if {_check} is greater than ("{@czas}" parsed as timespan): set {fly::%player%} to now stop cancel event send "&cMusisz odczekac &730 sekund &czanim ponownie tego uzyjesz!"
  4. PanAnimek

    Komenda

    Ale chodzi o off fly po 30sek, wywolywanie komendy co 30sek czy cooldown na 30sek?
  5. options: czas: 3 minutes on rightclick on sugar cane: if "%region at player%" contains "trzcina1": if difference between {trzcina::%player%} and now is greater than "{@czas}" parsed as timespan: send action bar "&aZbierasz &a&lTrzcine!" to player execute console command "give %player% sugarcane 1 name:&aTrzinca" set {trzcina::%player%} to now To ma byc cooldown, a nie sleep na 10 sek przed wykonaniem dalszych instrukcji. Cooldown polega na tym, ze jesli gracz wykona dana akcje, to przed jej ponownym wykonaniem musi odczekac x czasu.
  6. Najnowszy Skript bez problemu działa mi na 1.15.2, tak samo najnowsze SkQuery Lime, SkUtilities, TuSKe i skRayFall.
  7. on death: if victim is player: set {_loc} to location of victim set {_x} to 0 loop 39 times: if slot {_x} of victim is not air: add {_x} to {_sloty::*} add 1 to {_x} set {_ilosc} to size of {_sloty::*} set {_ilosc} to (10 * {_ilosc}) / 100 set {_ilosc} to rounded up {_ilosc} loop {_ilosc} times: set {_i} to "%random element out of {_sloty::*}%" remove {_i} from {_sloty::*} set {_item} to slot ({_i} parsed as integer) of victim add {_item} to {_dropy::*} drop {_item} at {_loc} set slot ({_i} parsed as integer) of victim to air send "%{_i}%" to victim To może coś takiego?
  8. on place of furnace: if name of player's tool is "Piecyk": set {piec::%event-block%} to true on right click: if {piec::%target-block%} is set: cancel event Może coś takiego zadziała
  9. on command "warp": if "%arguments%" contains "hotel": if player's balance >= 3: remove 3 from player's balance else: cancel event send "&cMasz za malo pieniedzy!"
  10. on death: if victim is player: set {_a} to random integer between 1 and 36 set {_b} to random integer between 1 and 36 set {_c} to random integer between 1 and 36 set {_d} to random integer between 1 and 36 while {_a} is {_b} or {_c} or {_d}: set {_a} to random integer between 1 and 36 while {_b} is {_a} or {_c} or {_d}: set {_b} to random integer between 1 and 36 while {_c} is {_b} or {_a} or {_d}: set {_c} to random integer between 1 and 36 while {_d} is {_b} or {_c} or {_a}: set {_d} to random integer between 1 and 36 set {_i1} to slot {_a} of victim drop {_i1} at victim set slot {_a} of player to air set {_i2} to slot {_b} of victim drop {_i2} at victim set slot {_b} of player to air set {_i3} to slot {_c} of victim drop {_i3} at victim set slot {_c} of player to air set {_i4} to slot {_d} of victim drop {_i4} at victim set slot {_d} of player to air Może coś takiego? Do tego musisz mieć keepInventory (/gamerule keepInventory true)
  11. Skrypt bardzo prosty, nie ma większych błędów, ale szczerze powiedziawszy nie mają nawet za bardzo gdzie być. Moim zdaniem skrypt powinien zostać przeniesiony do sekcji Nauka. Oceniał nie będę, bo nie mam co oceniać
  12. command /online [<text>]: trigger: open virtual chest with 5 rows named "Gracze online" to player set {_x} to 0 loop all players: format gui slot {_x} of player with skull of loop-player named "&6%loop-player%" with lore "", "&aKliknij, aby napisac wiadomosc" to close then run function msg(%player%, %loop-player%) add 1 to {_x} function msg(p: offlineplayer, t: offlineplayer): set {msg::%{_p}%} to {_t} send "&aNapisz wiadomosc na chacie." to {_p} on chat: if {msg::%player%} is set: cancel event send "&6[&fJa &6&l&m->&r &f%{msg::%player%}%&6] &7%message%" send "&6[&f%player% &6&l&m->&r &fJa&6] &7%message%" to {msg::%player%} clear {msg::%player%} O mniej więcej coś takiego ci chodziło? (Do GUI użyłem TuSKe)
  13. PanAnimek

    Tuske problem

    Spróbuj użyć format gui slot <nr> of player with <itemstack> named "<nazwa>" to close then run player command "<komenda (bez /)>" U mnie działa
  14. PanAnimek

    Jak to naprawić?

    Zamień zmienną tymczasową na zwykłą albo grupową, wtedy powinno działać Przykład: {_ofiara} na {ofiara.%loop-player%}
  15. PanAnimek

    Skrypt CZYTAJ niżej

    on click on button: if block behind event-block is <jakis blok>: teleport player to spawn of world "<nazwa swiata>" execute player command "<komenda gracza>" execute console command "<komenda konsoli>"
  16. PanAnimek

    Skrypt poniżej

    on click on stone button: execute player command "losowe"
  17. PanAnimek

    pomocyy

    w sumie racja, ale ja już z przyzwyczajenia tak pisze
  18. PanAnimek

    pomocyy

    on damage: if attacker is player: if victim is player: cancel event push attacker backwards with speed 1 send "&cAtakowanie innych graczy jest zablokowane!" to attacker
  19. PanAnimek

    Skrypt na chat

    wytabuj sobie od nowa cały skrypt i powinno działać
  20. format slot 6 of player with 1 of 54 named "&c&lPremiumCase" with lore " &6Zestaw z Premkami!||&7Dostepnosc zestawu&8:|| &2&lDOSTEPNY, MOZESZ GO WZIAC!" to close then run [send "&4&lBlad! &cKITY SA OFF PRZEZ 24H!" to player]
  21. Jak pisałem tutaj wkradła mi się literówka, a także przypadkowo zamiast log wpisałem wood. Jest to już poprawione pod tym samym linkiem.
  22. Ja bym to zrobił w ten sposób: on rightclick with book: teleport player to spawn of world "<swiat>"
  23. Wkradła mi się literówka, już masz to poprawione
  24. command /przepustka [<offlineplayer>] [<text>]: permission: fajna.permisja permission message: &cBrak uprawnien! trigger: if arg 1 is not set: send "&cUzycie: &7/przepustka <gracz> <swiat>" stop if arg 2 is not set: send "&cUzycie: &7/przepustka <gracz> <swiat>" stop if arg 1 is not online: send "&cTen gracz jest offline!" stop send "&aNadano przepustke do swiata &7%arg 2% &agraczowi &7%arg 1%" send "&aOtrzymales przepustke do swiata &7%arg 2%" to arg 1 add 1 paper of fortune 10 named "&aPrzepustka" with lore "%arg 2%" to arg 1's inventory on rightclick with paper: if name of player's tool is "&aPrzepustka": teleport player to spawn of world "%lore of player's tool%" send "&aTeleportowano do swiata &7%lore of player's tool%" set {_rm} to type of player's tool remove 1 of {_rm} from player's inventory Coś takiego?
  25. Prosz, masz od razu składowanie danych w plikach YAML.
×
×
  • Dodaj nową pozycję...