Skocz do zawartości

Cinu2421

Użytkownik
  • Ilość zawartości

    401
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    3

Treść opublikowana przez Cinu2421

  1. on load: loop 9999999 times: set {_random} to random integer between 5 and 10 wait "%{_random}% seconds" parsed as timespan broadcast "as"
  2. "Teraz gracz nawet bez permisji może latać na działce" wybacz moj blad. on region enter: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone" set player's flight mode to true set {latanie.%player%} to true stop if player is the members of the region: send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone" set player's flight mode to true set {latanie.%player%} to true on region exit: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone" set player's flight mode to false wait 10 seconds delete {latanie.%player%} stop if player is the members of the region: send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone" set player's flight mode to false wait 10 seconds delete {latanie.%player%} on damage: if damage was caused by fall: if {latanie.%victim%} is set: cancel event on quit: if {latanie.%player%} is set: set player's flight mode to false delete {latanie.%player%}
  3. chodzilo mi o opa* command /obrazenia: permission: sa trigger: set {latanie.%player%} to true broadcast "ustawiles god" on damage: if damage was caused by fall: if {latanie.%victim%} is set: cancel event Testowalem to dziala.
  4. Owner ma wszystkie uprawnienia. Nie sprawdzaj tego za pomoca ownera.
  5. Jesli ma sie to wykonywac bez konca dodaj zamiast x jakas duza liczbe. command /test: permission: sa trigger: loop 9999999 times: set {_random} to random integer between 5 and 10 wait "%{_random}% seconds" parsed as timespan broadcast "as"
  6. ## to on damage: if damage was caused by fall: if {latanie.%victim%} is set: cancel event # jesli nie dziala uzyj tego on damage: if damage was caused by fall: if {latanie.%victims%} is set: cancel event
  7. Nic tam nie zmieniales? Pomijajac wait ktory zle zrobilem powinno dzialac. command /test: permission: sa trigger: set {_x} to 1 loop {_x} times: set {_random} to random integer between 1200 and 7200 add 1 to {_x} wait "%{_random}% seconds" parsed as timespan #broadcast "as" execute console command "/disasters mintimer ALL_WORLDS %{_random}%" execute console command "/disasters reload"
  8. on region enter: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone" if player is the members of the region: send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone" if gamemode of player is survival: set player's flight mode to true set {latanie.%player%} to true on region exit: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone" if player is the members of the region: send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone" if gamemode of player is survival: set player's flight mode to false wait 10 seconds delete {latanie.%player%} on damage: if damage was caused by fall: if {latanie.%player%} is set: cancel event on quit: if {latanie.%player%} is set: set player's flight mode to false delete {latanie.%player%}
  9. W tym rodzaju petli ten wait chyba nie bedzie dzialac poprawnie, ale moge sie mylic. Sprobuj dac loop. # Tu Najpierw bedziesz musial poczekac ten czas aby wykonaly sie obie komendy set {_x} to 1 loop {_x} times: set {_random} to random integer between 1200 and 7200 add 1 to {_x} wait {_random} execute console command "/disasters mintimer ALL_WORLDS %{_random}%" execute console command "/disasters reload"
  10. Sprawdz teraz, poza tym nie wydaje mi sie ze to co robisz dziala poprawnie. on script load: set {_random} to random integer between 1200 and 7200 while 1 is 1: execute console command "/disasters mintimer ALL_WORLDS %{_random}%" execute console command "/disasters reload" wait {_random} seconds
  11. Sprawdz czy teraz Ci sie podoba. Uzylem efektu slow falling aby nie bawic sie w dodawanie i odejmowanie zmiennych. Jesli to Ci przeszkadza daj znac on region enter: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone" if player is the members of the region: send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone" if gamemode of player is survival: set player's flight mode to true on region exit: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if gamemode of player is survival: if player is the owner of the region: send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone" if player is the members of the region: send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone" if gamemode of player is survival: set player's flight mode to false if player do not have potion effect slow falling: apply slow falling 3 to player for 15 seconds
  12. on load: {Monety} is not set: set {Monety} to 0 command /monety [<integer>] [<player>]: executable by: players trigger: arg-1 is set: player has permission "admin": give arg-1 stone named "&fMoneta" to arg-2 send "&fDales graczowi &7%arg-2% %arg-1% &fmonet" stop set {_menu} to a new chest inventory with 3 row named "&6TurboDrop" set slot 13 of {_menu} to dirt named "&fTurboDrop" with lore "", "&7Kliknij aby wplacic &fMonety" and "&fMonety &7%{Monety}%&f/&7300" open {_menu} to player on inventory click: name of event-inventory is "&6TurboDrop": cancel event loop all items in the player's inventory: name of loop-value is "&fMoneta": set {_x} to item amount of loop-value remove {_x} of loop-value from player if {_x} is set: send "&7Wplaciles &f%{_x}% &7Monet" add {_x} to {Monety} if {Monety} is greater than or equal to 300: set {Monety} to 0 execute console command "turbodrop" else: send "&7Nie posiadasz monet"
  13. Sprawdz czy dziala poprawnie, lacznie z wyjsciem zamrozonych graczy z serwera. command /FrozenAxe: permission: admin trigger: give player diamond axe named "&bSiekiera zamrozenia" on damage: attacker is a player: victim is a player: attacker's tool is diamond axe named "&bSiekiera zamrozenia": if {zamrazanie::%attacker%} is not set: broadcast "axe" set {_x} to victim's walk speed set victim's walk speed to 0 set {zamrazanie::%attacker%} to true wait 5 seconds set victim's walk speed to {_x} delete {zamrazanie::%attacker%}
  14. Jesli dobrze rozumiem Twoj post: Zrobic motyke ktora kopie 3x3 i zasadza marchewki oraz daje 10 expa. Zrobilem ze kopie 3x3 i daje expa w zaleznosci od ilosci wykopanych marchewek. Jesli wykopie wszystkie 9 dostajesz 9 expa, jesli 4 to 4... options: nazwa_motyki: &1&lSpecjalna motyka command /motyka: permission: tezet.admin trigger: give 1 iron hoe named "{@nazwa_motyki}" to player on break of ripe carrot plant: player's tool is any hoe named "{@nazwa_motyki}": set event-block to carrot plant loop all blocks in radius 1.5 around event-block: if loop-block is ripe carrot plant: add 1 to {_exp} set loop-value to carrot plant drop carrot at loop-value add {_exp} to {level::%player%} send "&7Otrzymales &a%{_exp}% &7expa!" if player's game mode is survival: damage player's tool by 5 stop
  15. Dodalem mozliwosc dawania fly rowniez dla czlonkow dzialki posiadajacych vipa... Jesli chcesz usun. Bedzie kolidowac z kazdym innym regionem zawierajacym w nazwie "ps" wiec jesli posiadasz jakis region na serwerze z taka nazwa zmien ja. on region enter: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if player is the owner of the region: send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone" if player is the members of the region: send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone" set player's flight mode to true on region exit: event-entity is a player: if "%event-region%" contains "ps": player has permission "vip": if player is the owner of the region: send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone" if player is the members of the region: send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone" set player's flight mode to false
  16. Witam. Jak zmieniac godziny, minuty w zmiennej? Chodzi o to ze chce zrobic komende w ktorej podaje godzine i np wylacza mi serwer o tej godzinie... set {OperacjaSerwerowa} to now
  17. Wygenerowalem na necie najkrotsze nbt jakie sie da. Wychodzi na to ze pierwszy sposob byl dobry. a ja po prostu dawalem zle nbt.
  18. Uzywam nbt spawneru z starszej wersji SkBee, jest raczej nie poprawne. Probowalem rowniez pobrac NBT po dodaniu do niego potwora, i dropnac spawner z tym nbt, ale tez nic. Jak wyswietlam nbt za pomoca klikniecia, pokazuje mi cos podobnego do tego co chce wrzucic tyle ze w troche innej kolejnosci. Tu mam zapis z konsoli: Zapis 1: [18:05:47 INFO]: [Skript] [SkBee ERROR] Invalid NBT: '{SpawnData:{iange:16s,SpawnCount:4s,SpawnPotentials:[{Entity:{id:"minecraft:zombie"},Weight:1}],MinSpawnDelay:10,MaxSpawnDelay:50s}' [18:05:47 INFO]: [Skript] [SkBee ERROR] Message: MalformedNBT: Expected '}' at position 131: ...Delay:50s}<--[HERE] [18:05:47 INFO]: {Delay:0s,MaxNearbyEntities:6s,MaxSpawnDelay:800s,MinSpawnDelay:200s,RequiredPlayerRange:16s,SpawnCount:4s,SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[],SpawnRange:4s,custom:{},id:"minecraft:mob_spawner",x:145,y:72,z:-19} [18:05:53 INFO]: [Skript] [SkBee ERROR] Invalid NBT: '{SpawnData:{iange:16s,SpawnCount:4s,SpawnPotentials:[{Entity:{id:"minecraft:zombie"},Weight:1}],MinSpawnDelay:10,MaxSpawnDelay:50s}' [18:05:53 INFO]: [Skript] [SkBee ERROR] Message: MalformedNBT: Expected '}' at position 131: ...Delay:50s}<--[HERE] [18:05:53 INFO]: {Delay:300s,MaxNearbyEntities:6s,MaxSpawnDelay:800s,MinSpawnDelay:200s,RequiredPlayerRange:16s,SpawnCount:4s,SpawnData:{entity:{}},SpawnPotentials:[],SpawnRange:4s,custom:{},id:"minecraft:mob_spawner",x:145,y:72,z:-15} Zapis2: [18:24:28 INFO]: {Delay:239s,MaxNearbyEntities:6s,MaxSpawnDelay:800s,MinSpawnDelay:200s,RequiredPlayerRange:16s,SpawnCount:4s,SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[],SpawnRange:4s,custom:{},id:"minecraft:mob_spawner",x:145,y:72,z:-19} [18:24:28 WARN]: Invalid SpawnData: No key entity in MapLike[{MaxSpawnDelay:50s,MinSpawnDelay:10,Range:16s,SpawnCount:4s,SpawnPotentials:[{Entity:{id:"minecraft:zombie"},Weight:1}]}]
  19. Nic.
  20. Witam. Ogarnia ktos jak dziala dokladnie teraz nbt w SkBee i mi pomoze? Probuje zrobic mozliwosc dodawania potworow za pomoca nbt do spawnerow. Dawniej mi to dzialalo, ale po zmianach w SkBee nie wiem jak do tego podejsc. Przegladalem dokumentacje i probowalem ogarnac to na kilka sposobow, ale to chyba mnie przerasta. Nie mam problemu z zmiana hp potworow, wyswietlanych nazw i takich tam za pomoca nbt. Problem jest przy samych spawnerach, 0 bledow spawner sie normalnie respi ale bez potwora w srodku. #set block at location of player to spawner with nbt nbt compound from "{SpawnData:{id:""minecraft:zombie""},MaxNearbyEntities:30s,SpawnRange:4s,RequiredPlayerRange:16s,SpawnCount:4s,SpawnPotentials:[{Entity:{id:""minecraft:zombie""},Weight:1}],MinSpawnDelay:10,MaxSpawnDelay:50s}" #add {_n} to nbt of event-entity
  21. Dobra dziala, wczesniej probowalem parsowac to za pomoca integer/number, ale zapewne cos zle zrobilem...
  22. aliases: menu items = TNT, lava bucket, string, coal, oak planks function makeMenu(name: text, rows: number) :: inventory: set {_gui} to a new chest inventory with {_rows} rows with name {_name} loop {_rows} * 9 times: # Fill the inventory with random items. set slot loop-number - 1 of {_gui} to random item out of menu items return {_gui} command /fancymenu: permission: skript.example.menu trigger: set {_menu} to makeMenu("hello", 4) add {_menu} to {my inventories::*} # Prepare to listen to this inventory. open {_menu} to player on inventory click: # Listen for players clicking in any inventory. if {my inventories::*} contains event-inventory: # Make sure it's our menu. cancel event send "You clicked slot %index of event-slot%!" on inventory close: # No longer need to listen to this inventory. {my inventories::*} contains event-inventory remove event-inventory from {my inventories::*} Jesli chcesz aby to poprawnie dzialalo Twoj skrypt musi zawierac wszystko co tu widzisz. Jesli chcesz aby dzialal inaczej niz tu, napisz w jaki sposob ma to dzialac. A ktos pewnie Ci to zrobi. Latwiej wszystkim bedzie jak powiesz jak ma to dzialac. Nie musisz obawiac sie o to ze ktos ukradnie Twoj pomysl bo uwierz mi ze na tym forum sa osoby kreatywniejsze od Ciebie. Bez urazy... Pozdrawiam
  23. Cinu2421

    Zmienne

    Sprawdz tak: command /test: permission: test executable by: players trigger: set {_t} to "test" add {_t} to {grupowa::*} loop {grupowa::*}: broadcast "%loop-value%"
  24. on portal: event-entity is a player: cancel event if {netherloc::%player%} exist: wait 5 ticks teleport player to location of {netherloc::%player%} stop wait 5 ticks set {_block} to block at location at (random number between -1000 and 1000, 0, random number between -1000 and 1000) in world "world_nether" loop all blocks above {_block}: if loop-block is air: block below loop-block is not lava block below loop-block is not air block below loop-block is not bedrock if block above loop-block is air: teleport player to loop-block set {netherloc::%player%} to location of loop-block Sprawdz czy dziala Jesli dziala, polecam Ci na przyszlosc uzywania np. notepada++, oraz wstawiania swego kodu w "kodzie <>" gdyz dluzej zajelo mi ogarniecie ze tabulacja jest zla przez program ktory uzywasz niz sama pomoc.
  25. Zaraz sprobuje zrobic, tylko program przeinstaluje bo cos sie psuje... Tam przed wait 5 ticks musisz dodac sprawdzanie entity bo ten event prawdopodobnie wywoluje sie przy kazdym encie
×
×
  • Dodaj nową pozycję...