Skocz do zawartości

Kormic

Zasłużony
  • Ilość zawartości

    11013
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    231

Treść opublikowana przez Kormic

  1. Kormic

    Spawner

    Znalazłem takie rozwiązanie, wymagany dodatek do Skripta obsługujący NBT (np. SkBee). on break of spawner: if player's tool is not diamond pickaxe named "&b&lMagiczny Kilof": send "&c&lSpawner mozesz wykopac tylko &b&lMagicznym Kilofem&c&l!" to player cancel event stop set {_s::*} to "%nbt of targeted block%" split at """" drop mob spawner with nbt "{BlockEntityTag:{SpawnData:{id:""%{_s::2}%""},id:""minecraft:mob_spawner"",SpawnPotentials:[0:{Entity:{id:""%{_s::2}%""},Weight:1}]},display:{Name:""%{_s::2}%""}}"
  2. Kormic

    Spawner

    Proszę. on break of spawner: if player's tool is not diamond pickaxe named "&b&lMagiczny Kilof": send "&c&lSpawner mozesz wykopac tylko &b&lMagicznym Kilofem&c&l!" to player cancel event
  3. W mojej ocenie kolejne zasady i obostrzenia nie mają najmniejszego sensu. W większości tutaj osoby proszące o pomoc uciekają z forum po tygodniu czy też przychodzą raz na ruski rok. Zresztą, według mnie nie ma co się łudzić, zdecydowana większość nowych użytkowników forum i tak nie czyta regulaminów, i lokalnych, i globalnego.
  4. Kormic

    skript

    1. Clicked item używa się jedynie w evencie 'on inventory click:'. 2. Poprawiony kod: on rightclick on villager: if name of villager is not "&4&lKowal": stop if player's tool is not diamond armor: send "test" to player stop if player's tool is diamond helmet: execute player command "/kowalguihelm" else if player's tool is diamond chestplate: execute player command "/kowalguiklata" else if player's tool is diamond leggings: execute player command "/kowalguispodnie" else if player's tool is diamond boots: execute player command "/kowalguibuty" Proszę.
  5. Kormic

    unstealable

    1. Używaj pętli zamiast ręcznego ustawiania GUI. 2. Tutaj poprawiony kod: command /kowalguihelm: permission: sk.ok permission message: &cBrak uprawnien! trigger: open chest with 3 row named "&0&lKowal" to player loop 27 times: set slot loop-number - 1 of player's current inventory to black stained glass pane named " " set player's current inventory's slot 13 to diamond helmet named "&a&lKLIKNIJ ABY WYKUC DZIURE" with lore "||&eCena: &6100000$" on inventory click: if name of player's current inventory is not "&0&lKowal": stop if clicked inventory is player's inventory: stop cancel event if clicked slot is 13: #twój kod
  6. Powinieneś dać 'redstone wire' bądź 'redstone dust block'.
  7. Kormic

    villager leftclick

    on damage of entity: if display name of victim is "&4&lKowal": send "&4&lKowal&7: &cNie bij mnie!" to attacker Przetestuj ten kod.
  8. Kormic

    Obstawianie

    Nie to mam na myśli... mówię o pierwotnym skrypcie. Jeśli było 64 cobblestone w slocie, to możesz usunąć '{_a} of' z tej linijki.
  9. Kormic

    Obstawianie

    Zaraz, zaraz. Czy gdy obstawiałeś 64 cobblestone'a to czy pojawiało się w GUI tyle samo?
  10. Kormic

    Obstawianie

    Jak wygląda u ciebie błąd? U mnie nie ma żadnego błędu.
  11. Kormic

    Obstawianie

    Hmm... A w ten sposób? command /obstaw: executable by: players trigger: if player's tool is air: send "&cMusisz trzymac cos w rece, aby moc obstawiac!" to player stop open chest inventory with 3 rows named "&6&lObstawianie" to player loop integers between 0 and 8: set slot loop-integer of player's current inventory to white stained glass pane named " " loop integers between 9 and 17: set slot loop-integer of player's current inventory to gray stained glass pane named " " loop integers between 18 and 26: set slot loop-integer of player's current inventory to white stained glass pane named " " set {_a} and {obstawianie::a::%player%} to item amount of player's tool set {_d} and {obstawianie::t::%player%} to player's tool set {_l::*} to lore of {_d} set line (size of {_l::*} + 1) of {_d} to " " set line (size of {_l::*} + 2) of {_d} to "&250%% &aszans na podwojenie przedmiotu" set line (size of {_l::*} + 3) of {_d} to "&450%% &cszans na utratę przedmiotu" set line (size of {_l::*} + 4) of {_d} to " " set line (size of {_l::*} + 5) of {_d} to "&aKliknij, aby obstawić!" set slot 13 of player's current inventory to {_a} of {_d} on inventory click: if name of player's current inventory is not "&6&lObstawianie": stop if clicked inventory is player's inventory: stop cancel event if clicked slot is 13: set {_a} to item amount of player's tool set {_t} to player's tool if slot 13 of player's current inventory is {obstawianie::t::%player%} named "&aWygrales, kliknij aby odebrac!": give ({obstawianie::a::%player%} * 2) of {obstawianie::t::%player%} to player clear {obstawianie::t::%player%} clear {obstawianie::a::%player%} close player's inventory stop delete player's tool chance of 50%: play sound "block_note_block_pling" with volume 3 and pitch 4 to player set slot 13 of player's current inventory to {_t} named "&aWygrales, kliknij aby odebrac!" stop chance of 50%: play sound "entity_blaze_ambient" with volume 3 and pitch 4 to player close player's inventory send "&cNiestety przegrales, powodzenia nastepnym razem!" to player on inventory close: if name of player's current inventory is not "&6&lObstawianie": stop if {obstawianie::t::%player%} is not set: stop if slot 13 of player's current inventory is not {obstawianie::t::%player%} named "&aWygrales, kliknij aby odebrac!": stop give ({obstawianie::a::%player%} * 2) of {obstawianie::t::%player%} to player clear {obstawianie::t::%player%} clear {obstawianie::a::%player%} EDIT: Poprawiłem zmienną.
  12. Kormic

    Obstawianie

    Dobra, już namierzyłem błąd. Problem wynika z tego, że co każde kliknięcie zmienna ustawia się do obecnie trzymanego itemu przez gracza. Dlatego też to nie działa, bo już wcześniej jest usuwane narzędzie gracza, więc ten zapisany item jest powietrzem. Za chwilę poprawię skrypt wyżej, daj mi chwilę. EDIT: Poprawiłem skrypt, sprawdź jeszcze raz.
  13. Kormic

    Obstawianie

    Inaczej. Powiedz dokładnie co się dzieje podczas wykonywania komendy.
  14. Kormic

    Obstawianie

    Czy usuwa się trzymany przez ciebie item?
  15. Kormic

    Obstawianie

    Sprawdź czy zadziała. Proszę, oto skrypt. command /obstaw: executable by: players trigger: if player's tool is air: send "&cMusisz trzymac cos w rece, aby moc obstawiac!" to player stop open chest inventory with 3 rows named "&6&lObstawianie" to player loop integers between 0 and 8: set slot loop-integer of player's current inventory to white stained glass pane named " " loop integers between 9 and 17: set slot loop-integer of player's current inventory to gray stained glass pane named " " loop integers between 18 and 26: set slot loop-integer of player's current inventory to white stained glass pane named " " set {_d} and {obstawianie::t::%player%} to player's tool set {_l::*} to lore of {_d} set line (size of {_l::*} + 1) of {_d} to " " set line (size of {_l::*} + 2) of {_d} to "&250%% &aszans na podwojenie przedmiotu" set line (size of {_l::*} + 3) of {_d} to "&450%% &cszans na utratę przedmiotu" set line (size of {_l::*} + 4) of {_d} to " " set line (size of {_l::*} + 5) of {_d} to "&aKliknij, aby obstawić!" set slot 13 of player's current inventory to {_d} on inventory click: if name of player's current inventory is not "&6&lObstawianie": stop if clicked inventory is player's inventory: stop cancel event if clicked slot is 13: set {_t} to player's tool if slot 13 of player's current inventory is {obstawianie::t::%player%} named "&aWygrales, kliknij aby odebrac!": give 2 of {obstawianie::t::%player%} to player close player's inventory stop delete player's tool chance of 50%: play sound "block_note_block_pling" with volume 3 and pitch 4 to player set slot 13 of player's current inventory to {_t} named "&aWygrales, kliknij aby odebrac!" stop chance of 50%: play sound "entity_blaze_ambient" with volume 3 and pitch 4 to player close player's inventory send "&cNiestety przegrales, powodzenia nastepnym razem!" to player on inventory close: if name of player's current inventory is not "&6&lObstawianie": stop if slot 13 of player's current inventory is not {obstawianie::t::%player%} named "&aWygrales, kliknij aby odebrac!": stop give 2 of {obstawianie::t::%player%} to player clear {obstawianie::t::%player%} EDIT: Mała poprawka, pozbyłem się 'loop-number'. EDIT: Poprawiłem zmienne.
  16. Kormic

    resp mobów

    Wymagany Skript 2.5+ oraz plugin wspierający regiony. Co prawda w dokumentacji jest podana wersja 2.3, jednakże błąd ze 'spawn reason' został dopiero naprawiony w wersjach 2.5. on spawn: if event-entity is a player: stop if "%region at event-entity%" doesn't contain "test": stop if spawn reason is not customized or spawn egg: cancel event
  17. Kormic

    System lvl

    1. W periodicalach nie ma playera, musisz go uzyskać, np. z zapętlania wszystkich graczy. 2. Tutaj poprawiony skrypt, dodałem kilka nowych rzeczy: command /poziom: trigger: send "" to player send "&bTwoj poziom: &6%{lvl::%player%}%" to player send "&bTwoje doswiadczenie: &6%{exp::%player%}%&e/&6%1000 * {lvl::%player%}%" send "" to player on mine of any ore: add 10 to {exp::%player%} if {exp::%player%} is less than (1000 * {lvl::%player%}): stop if {lvl::%player%} is greater than or equal to 500: stop remove (1000 * {lvl::%player%}) from {exp::%player%} add 1 to {lvl::%player%} broadcast "&aGracz &e%player%&a awansował na &6%{lvl::%player%}% &alvl!" on join: if {lvl::%player%} is not set: set {lvl::%player%} to 1 if {exp::%player%} is not set: set {exp::%player%} to 0
  18. Kormic

    Problem || else

    1. W takim razie naucz się używania pętli. 2. Lepiej aby czegoś takiego nie używał, takie setowanie po primo wygląda okropnie, po drugie nie ma nic wspólnego z wydajnością skryptu, a po trzecie zmniejsza drastycznie czytelność kodu. 3. Wtedy może wywalić takiego gracza za pakiety, zresztą z loopowaniem czy bez i tak efekt jest taki sam. Poza tym czymś takim nie wywalisz serwera.
  19. Kormic

    villager leftclick

    W takim wypadku zamiast 'name' należy użyć 'display name'. if display name of victim is "&4&lKowal":
  20. Kormic

    Problem || else

    Nie miałeś warunku, a w kodzie był else. Dodałem przykład z wymaganym diamentem. command /test: trigger: open chest with 3 rows named "&cSklep" to player loop 27 times: set slot loop-number - 1 of player's current inventory to black stained glass pane named " " if player has 1 diamond: set slot 13 of player's current inventory to stone named "&7&lSILA I" with lore "|| &aKliknij, aby kupic efekt!|| &8» &cSpecyfikacja&8:|| &8&l• &7trwanie 5 min|| &8&l• &7koszt 64 emerald blockow|| || &8» &aStac Cie na to!" else: set slot 13 of player's current inventory to stone named "&7&lSILA I" with lore "|| &aKliknij, aby kupic efekt!|| &8» &cSpecyfikacja&8:|| &8&l• &7trwanie 5 min|| &8&l• &7koszt 64 emerald blockow|| || &8» &cNie stac Cie na to!" on inventory click: if name of player's current inventory is not "&cSklep": stop if clicked inventory is player's inventory: stop cancel event if clicked slot is 13: if player doesn't have 1 diamond: send "&cNie stac cie na to!" to player stop close player's inventory execute player command "efektyzgui sila %player%" To, co ty zrobiłeś, to jest herezja. Kto normalny w taki sposób ustawia sloty?
  21. Jeśli spawn jest objęty regionem, to użyj tego. Wymagany plugin wspierający regiony (np. WorldGuard). on entering of region "spawn": send "&aWitaj na spawnie!" to player
  22. Kormic

    Radio

    Sprawdź plugin JukeBox.
  23. Kormic

    Skrypty na msg

    Dopisz sobie w komendzie /socialspy odpowiednią permisję i tyle.
  24. Kormic

    Skrypty na msg

    Zastąp linijki kolejno 38 i 72 tym: set {_c} to translateTimespan({_c})
  25. Kormic

    Skrypty na msg

    A nie masz możliwości wyłączenia komendy /tell?
×
×
  • Dodaj nową pozycję...