Skocz do zawartości

Cinu2421

Użytkownik
  • Ilość zawartości

    401
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    3

Treść opublikowana przez Cinu2421

  1. Cinu2421

    pomoc ze skryptem

    on mine of pumpkin: chance of 5.0%: give player pumpkin pie with name "&c&lPlacek Dyniowy" with lore "&bWymienisz go na ciekawe nagrody" if player has permission "komapanie.szansa.5" stop chance of 4.0%: give player pumpkin pie with name "&c&lPlacek Dyniowy" with lore "&bWymienisz go na ciekawe nagrody" if player has permission "kopanie.sznasa.4"
  2. Mozesz zrobic to np. w taki sposob: command /ustawnether: permission: admin executable by: players trigger: set {nether} to location of player send "&cUstawiles lokalizacje teleportu w netherze" on portal: cancel event wait 3 seconds teleport player to {nether} Przy tym sposobie bedziesz musial ustawic spawn "w netherze" Mozesz tez uzyc losowego teleportu z essentials o ile posiadasz aby, tepalo graczy w losowe miejsca w netherze. Losowy tp z essentials jest dosc bezpieczny o ile pamietam i nie teleportuje graczy w skaly
  3. Witam. Mam problem z porownaniem czasu... Skrypt ma sprawdzac czy aktualna minuta jest wieksza niz ta z zmiennej. W broadcast pokazuje wszystko normalnie, ale nie dziala to w warunku. on load: {test} exist: stop set {test} to now formatted as "mm" every 15 seconds: set {_x} to now formatted as "mm" broadcast "&cr_n: %{test}% now: %{_x}%" if {_x} is greater than {test}: broadcast "r_n: %{test}% now: %{_x}%"
  4. on inventory close: if {Bursztyn.open} is set: loop 54 times: set {Bursztyn.items::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player delete {Bursztyn.open} if {Jadeit.open} is set: loop 54 times: set {Jadeit.items::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player delete {Jadeit.open} if {Szafir.open} is set: loop 54 times: set {Szafir.items::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player delete {Szafir.open} Dobra chodzi o to. Do zamkniecia
  5. on rightclick with player head on crafting table: player has permission "admin": name of player's tool is "%{Bursztynowa}%": cancel event open chest inventory with 6 rows named "Bursztyn: Ustawienia dropu" to player set {_n} to 0 loop {Bursztyn.items::*}: set slot {_n} of player's current inventory to loop-value add 1 to {_n} set {Bursztyn.open} to true name of player's tool is "%{Jadeitowa}%": cancel event open chest inventory with 6 rows named "Jadeit: Ustawienia dropu" to player set {_n} to 0 loop {Jadeit.items::*}: set slot {_n} of player's current inventory to loop-value add 1 to {_n} set {Jadeit.open} to true name of player's tool is "%{Szafirowa}%": cancel event open chest inventory with 6 rows named "Szafir: Ustawienia dropu" to player set {_n} to 0 loop {Szafir.items::*}: set slot {_n} of player's current inventory to loop-value add 1 to {_n} set {Szafir.open} to true Dobra wiem juz jak wyglada bug loot boxow: Jesli otworze loot boxy i jakis gracz jednoczesniej otworzy jakas skrzynie to mi nadpisuje caly loot box. Jakis pomysl jak to naprawic?
  6. Dziwne teraz dziala normalnie, jedyna roznica jest taka ze wczesniej bylo wiecej ludzi na serwerze.
  7. Witam. Mam problem, otoz czesc zmiennych nie zapisuje mi sie. (Usuwaja sie po restarcie) Przykladowy kod na enderchesty: on right click on ender chest: cancel event EnderChest(player) command /ec: trigger: if player has permission "vip": EnderChest(player) function EnderChest(gracz:player): if {Ranga%{ExpPoziom.%{_gracz}%}%} is not set: send "&7Poziom twojej rangi jest zbyt niski aby otworzyc enderchest" to {_gracz} stop if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Drewno": send "&7Poziom twojej rangi jest zbyt niski aby otworzyc enderchest" to {_gracz} stop if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Kamien": set {_nazwa} to "EnderChest rangi [Kamien]" set {_wielkosc} to 1 if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Zelazo": set {_nazwa} to "EnderChest rangi [Zelazo]" set {_wielkosc} to 2 if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Zloto": set {_nazwa} to "EnderChest rangi [Zloto]" set {_wielkosc} to 3 if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Diament": set {_nazwa} to "EnderChest rangi [Diament]" set {_wielkosc} to 4 if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Emerald": set {_nazwa} to "EnderChest rangi [Emerald]" set {_wielkosc} to 5 if {Ranga%{ExpPoziom.%{_gracz}%}%} contains "Netheryt": set {_nazwa} to "EnderChest rangi [Netheryt]" set {_wielkosc} to 6 open chest inventory with {_wielkosc} rows named "%{_Nazwa}%" to {_gracz} set {_n} to 0 loop {memees.backpacks.items.%{_gracz}%::*}: set slot {_n} of {_gracz}'s current inventory to loop-value add 1 to {_n} set {memees.backpacks.open::%{_gracz}%} to true on inventory close: if {memees.backpacks.open::%player%} is set: loop 54 times: set {memees.backpacks.items.%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player delete {memees.backpacks.open::%player%} Podobnie jest z loot boxami Tyle ze tam miesza mi sie wszystko z nie wiadomo czym (Wyglada to jak ekwipunki graczy) A zasada dzialania jest podobna jak ta z enderchestow
  8. Dobra mam
  9. Witam Robie oznaczanie graczy na czacie i mam male pytanie. Jesli wiadomosc zawiera nick oznaczonego gracza to jak w prosty sposob moge zmienic kolor tego nicku w wiadomosci?
  10. Rozumiem ze nie da sie zrobic falling blocku chesta bez petli
  11. Witam, chcialem zrobic zrzut skrzynek, ale zauwazylem, ze nie widac spadajacej skrzynki(Inne bloki widac) Mozna zrobic to bez petli, albo wie ktos moze jak zrobic, aby ta spadajaca skrzynke bylo widac? command /zrzut: trigger: set {_loc} to location of player set y poss of {_loc} to 254 loop 254 times: if block under {_loc} is air: remove 1 from y poss of {_loc} set block up {_loc} to air set block at {_loc} to chest else: stop wait 1 ticks
  12. Cinu2421

    Skrzynka

    command /craft [<text>]: trigger: open chest with 3 rows named "&2Craftingi" to player set slot (integers from 0 to 8) of player's current inventory to white stained glass pane set slot (integers from 18 to 26) of player's current inventory to red stained glass pane set slot 13 of player's current inventory to diamond pickaxe on inventory click: if inventory name of player's current inventory is "&2Craftingi": cancel event if clicked slot is 13: send "&0[&bF&eM&bC&0] &7Pomyślnie otworzyłeś &6craftingi&7!" to player A tu masz druga wersje: command /craft [<text>]: trigger: set {_gui} to chest with 3 rows named "&2Craftingi" set slot (integers from 0 to 8) of {_gui} to white stained glass pane set slot (integers from 18 to 26) of {_gui} to red stained glass pane set slot 13 of {_gui} to diamond pickaxe open {_gui} to player on inventory click: if inventory name of player's current inventory is "&2Craftingi": cancel event if clicked slot is 13: send "&0[&bF&eM&bC&0] &7Pomyślnie otworzyłeś &6craftingi&7!" to player
  13. Cinu2421

    Incognito

    command /incognito: trigger: set {incognito::%player%} to "&cWylaczone" if {incognito::%player%} is not set close player's inventory open chest with 1 rows named "&6&lINCOGNITO" to player set player's current inventory's slot 4 to name tag named "&8&l• &6Incognito status: %{incognito::%player%}%&8&l•" on inventory click: if inventory name of player's current inventory is not "&6&lINCOGNITO": stop cancel event close player's inventory if "%clicked slot%" is "4" if {incognito::%player%} is "&cWylaczone": set {incognito::%player%} to "&cWlaczone" set player's tag to "&8[&6&l?&8]&6 &k" stop set {incognito::%player%} to "&cWylaczone" set player's tag to "" on quit: delete {incognito::%player%}
  14. Cinu2421

    Problem z tnt

    Petla nie wykrywa "primed tnt" tylko "TNT"
  15. Cinu2421

    Problem z tnt

    on place: if block is tnt: set block to air spawn 1 primed TNT wait 3 seconds loop entities in radius 2 around event-location: if loop-entity is tnt: kill loop-entity Pamietaj ze to nie zadziala jesli tnt poplynnie gdzies dalej, bedziesz musial zwiekszyc zasieng
  16. Cinu2421

    Pomoc w rtp

    Okej
  17. Cinu2421

    Pomoc w rtp

    @FaczikPL Twoj problem polega na tym ze essentials zapewne ma tez takie rtp A guzik z tego skryptu bedzie dzialac tylko z jednej strony Zmien blok w kodzie z gabki na inny i sprawdz
  18. command /sethome <string>: description: Sets your home permission: skript.home executable by: players trigger: set {homes::%uuid of player%::%arg-1%} to location of player message "Set your home <green>%arg-1%<reset> to <grey>%location of player%<reset>" command /delhome <string>: description: Deletes your home permission: skript.home executable by: players trigger: clear {homes::%uuid of player%::%arg-1%} message "Deleted your home <green>%arg-1%<reset>" command /home <string>: description: Teleports yourself to your home permission: skript.home executable by: players trigger: if {homes::%uuid of player%::%arg-1%} is not set: message "You have not set your home <green>%arg-1%<reset> yet!" else: teleport player to {homes::%uuid of player%::%arg-1%} Taki kodzik jest standardowo dodawany do skripta. Brac go czy robic wlasny bez uzywania uid?
  19. Mam zamiar zrobic home/tpa na innej zasadzie dzialania wiec i tak musze zrobic to w skrypcie. Uwazam ze wrzucanie placeholderow i ersatz tylko po to aby pobierac lokalizacje z home to sredni pomysl i juz lepiej usunac essentials i zrobic to w skrypcie. Jesli uwazasz ze to jednak glupi pomysl daj znac.
  20. Raczej odpada, home i kasa to jedyne dwie rzeczy ktore uzywam w essentials. Zastanawiam sie nad wyrzuceniem tego pluginu i zastapieniem tego w skrypcie. Co o tym myslisz?
  21. Witam, jest mozliwosc pobrania lokalizacji domu z pluginu essentials w skrypcie?
  22. Cinu2421

    Jaki hosting wybrać?

    Tak, teraz bym nie popelnil tego bledu. Mimo wszystko jestem do ich oferty zniechecony bo nawet na titanie nie mialem takich problemow przy 4gb i podobnej ilosci graczy. Moze to jest tez zalezne od czasu kiedy ja mialem tam serwer a twoj kolega. Moglo cos sie u nich zmienic
  23. Cinu2421

    Jaki hosting wybrać?

    Mialem serwer na craftserve. Moze z 25 pluginow standardowych pod sv 15 graczy na serwie i zaczynaly sie lagi a ramu bylo ok 8gb
  24. Cinu2421

    Mam sk na /kit

    Ustaw date i godzine uzycia do zmiennej nastepnie porownaj date i godzine z zmiennej do %now%
  25. Cinu2421

    Jaki hosting wybrać?

    Titan scamuje Craftserve tez A o pozostalych hostingach nie moge sie wypowiedziec
×
×
  • Dodaj nową pozycję...