Skocz do zawartości

Cinu2421

Użytkownik
  • Ilość zawartości

    348
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    1

Treść opublikowana przez Cinu2421

  1. 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
  2. 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?
  3. Dziwne teraz dziala normalnie, jedyna roznica jest taka ze wczesniej bylo wiecej ludzi na serwerze.
  4. 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
  5. 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?
  6. Cinu2421

    falling chest

    Rozumiem ze nie da sie zrobic falling blocku chesta bez petli
  7. 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
  8. 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
  9. 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%}
  10. Cinu2421

    Problem z tnt

    Petla nie wykrywa "primed tnt" tylko "TNT"
  11. 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
  12. 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
  13. 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?
  14. 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.
  15. 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?
  16. Witam, jest mozliwosc pobrania lokalizacji domu z pluginu essentials w skrypcie?
  17. 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
  18. 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
  19. Cinu2421

    Mam sk na /kit

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

    Jaki hosting wybrać?

    Titan scamuje Craftserve tez A o pozostalych hostingach nie moge sie wypowiedziec
  21. command /farmer [<text>]: trigger: player has permission "admin": if arg is "boy": give player obsidian named "&4BoyFarmer" if arg is "sand": give player sand named "&4SandFarmer" if arg is "kopacz": give player glass named "&4KopaczFosy" else: send "&7Wpisz &6/farmer <boy/sand/kopacz>" on place obsidian or glass or sand: set {_loc} to location of event-block player's tool is glass named "&4KopaczFosy": loop 254 times: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to air else: exit loop stop if player's tool is obsidian named "&4BoyFarmer": set {_blok} to obsidian if player's tool is sand named "&4SandFarmer": set {_blok} to sand loop 254 times: if block under {_loc} is air: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to {_blok} else: exit loop stop
  22. command /farmer [<text>]: trigger: player has permission "admin": if arg is "boy": give player obsidian named "&4BoyFarmer" if arg is "boy" if arg is "sand": give player sand named "&4SandFarmer" if arg is "sand" if arg is "kopacz": give player glass named "&4KopaczFosy" else: send "&7Wpisz &6/farmer <boy/sand/kopacz>" on place obsidian or glass or sand: set {_loc} to location of event-block player's tool is glass named "&4KopaczFosy": loop 254 times: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to air else: exit loop stop if player's tool is obsidian named "&4BoyFarmer": set {_blok} to obsidian if player's tool is sand named "&4SandFarmer": set {_blok} to sand loop 254 times: if block under {_loc} is air: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to {_blok} else: exit loop stop
×
×
  • Dodaj nową pozycję...