-
Ilość zawartości
11013 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
231
Treść opublikowana przez Kormic
-
Najnowsza niewiele mi mówi. Sprecyzuj jaką wersję masz na myśli.
-
Wiem, że dość dużo osób poleca Hostinger, sprawdź czy ci się spodoba ich oferta. Co do pytania o to czy pociągnie jeden VPS, szczerze nie wiem.
-
Przecież to nie jest action bar ze Skripta. EDIT: @Nefiu Mój skrypt działa, testowałem u siebie. Jaką masz wersję Skripta?
-
on join: while player is online: loop all living entities in radius 100 around player: set loop-entity's target to player wait 10 minutes Rozumiem, że masz na myśli coś takiego? Czy chodzi ci o to, aby spawnowały się w odległości 100 kratek?
-
To się wysyła co sekundę na action barze.
-
command /vanish: permission: permisja.vanish permission message: &8>> &cNie masz uprawnień do tej komendy! aliases: /v trigger: if {v::%player%} is not set: set {v::%player%} to true add player to {vanished::*} send "&8>> &1Od teraz jesteś niewidoczny" to player loop all players: if loop-player doesn't have permission "permisja.vanish-widze": add loop-player to {_g::*} hide player from {_g::*} stop if {v::%player%} is set: clear {v::%player%} send "&8>>&1Od teraz jesteś widoczny" to player remove player from {vanished::*} reveal player to all players stop every 1 second: loop {vanished::*}: send action bar "&aJesteś obecnie ukryty przed innymi graczami!" to loop-value Proszę.
-
Przecież jest reveal, widocznie ty zepsułeś, więc popraw.
-
Teraz powinno działać: command /vanish: permission: permisja.vanish permission message: &8>> &cNie masz uprawnień do tej komendy! aliases: /v trigger: if {v::%player%} is not set: set {v::%player%} to true send "&8>> &1Od teraz jesteś niewidoczny" to player loop all players: if loop-player doesn't have permission "permisja.vanish-widze": add loop-player to {_g::*} hide player from {_g::*} stop if {v::%player%} is set: clear {v::%player%} send "&8>>&1Od teraz jesteś widoczny" to player reveal player to all players stop
-
W razie błędów daj znać, proszę: on first join: set {ochrona::czas::%player%} to now while player is online: if {ochrona::czas::%player%} is not set: exit loop if difference between {ochrona::czas::%player%} and now is greater than or equal to 10 minutes: clear {ochrona::czas::%player%} remove player from {ochrona::gracze::*} send "&cTwoja poczatkowa ochrona sie skonczyla, miej sie na bacznosci i powodzenia!" to player exit loop wait 1 second on join: if {ochrona::czas::%player%} is not set: stop while player is online: if {ochrona::czas::%player%} is not set: exit loop if difference between {ochrona::czas::%player%} and now is greater than or equal to 10 minutes: remove player from {ochrona::gracze::*} clear {ochrona::czas::%player%} send "&cTwoja poczatkowa ochrona sie skonczyla, miej sie na bacznosci i powodzenia!" to player exit loop wait 1 second command /ochronawylacz: trigger: if {ochrona::czas::%player%} is not set: send "&cNie posiadasz ochrony poczatkowej!" to player stop clear {ochrona::czas::%player%} send "&cWylaczyles swa poczatkowa ochrone, miej sie na bacznosci i powodzenia!" to player on damage of player: if attacker is not a player: stop if {ochrona::czas::%victim%} is not set: stop cancel event send "&cTen gracz posiada poczatkowa ochrone!" to attacker
-
on death of player: if {turniej::uczestnicy::*} doesn't contain victim: stop loop {turniej::uczestnicy::*}: remove loop-value from {turniej::uczestnicy::*} teleport loop-value to {spawn} set loop-value's helmet to air set loop-value's chestplate to air set loop-value's leggings to air set loop-value's boots to air Zrobiłem prosty przykładowy kod. Gdy któryś z uczestników turnieju zawarty w liście zmiennych {turniej::uczestnicy::*} umrze, to wszystkim uczestnikom zdejmuje zbroję, usuwa ich z listy uczestników i teleportuje do lokacji w zmiennej {spawn}.
-
Proszę. Spis komend: - /home - teleportuje gracza do jego domu. - /home <gracz> - teleportuje do domu danego gracza, dostępne tylko dla operatorów (op). - /sethome - ustawia dom gracza w miejscu, w którym stoi. - /delhome - usuwa dom gracza. - /delhome <gracz> - usuwa dom podanego gracza, dostępne tylko dla operatorów (op). command /home [<offline player>]: trigger: if sender is not player: stop if arg 1 is not set: if {home::%player%} is not set: send "&cNie masz ustawionego domu!" to player stop teleport player to {home::%player%} else: if player is not op: stop if {home::%arg 1%} is not set: send "&cTen gracz nie posiada ustawionego domu!" to player stop teleport player to {home::%arg 1%} command /sethome: trigger: set {home::%player%} to location of the player send "&aPomyslnie ustawiles swoj dom." to player command /delhome [<offline player>]: trigger: if arg 1 is not set: if sender is not player: stop if {home::%player%} is not set: send "&cNie posiadasz ustawionego domu!" to player stop clear {home::%player%} send "&aPomyslnie usunales swoj dom." to player else: if sender is not console: if player is not op: stop if {home::%arg 1%} is not set: send "&cTen gracz nie posiada ustawionego domu!" to sender stop clear {home::%arg 1%} send "&aPomyslnie usunales dom gracza &6%arg 1%&a." to player Gdyby coś nie działało, daj znać.
-
W takim wypadku użyj wyrażenia 'item amount of loop-item' i mnożysz ilość tego itemu przez cenę za 1 taki item.
-
W takim wypadku musisz do tej pętli dać warunki 'if loop-item is' i sprawdzać czym jest dany item, czy jest drogi czy też nie, itd. Nie wiem jakie ustaliłeś sobie ceny, ale podejrzewam, że rozumiesz co mam na myśli, prawda?
-
A RunSell()? Z tego co zrozumiałem, to chcesz sprzedać cały ekwipunek gracza, więc powinieneś to w ten sposób zrobić: loop all items in player's inventory: RunSell(player, loop-item, 50, "Jakiś tekst")
-
A ta funkcja do czego służy? Do wymiany? Jeśli tak, to co reprezentują zawarte w niej argumenty?
-
Zaraz, ale co konkretnie próbujesz osiągnąć?
-
loop all items in player's inventory: Proszę.
-
Czy obejrzałeś jakiś poradnik w postaci wideo? Czy na pewno zrobiłeś wszystko jak trzeba?
-
W takim wypadku w ten sposób trzeba to zrobić: on command "/rtp": if player is in world "swiat": stop cancel event send "&cNie mozesz uzywac w tym swiecie komend!" to player
-
Poprawiłem skrypt, zobacz czy tym razem nic się nie będzie bugowało: on load: set {sleepnumber} to 0 on bed enter: if number of all players is less than or equal to 1: stop if player isn't in world "world": stop add 1 to {sleepnumber} set {_num} to (number of all players / 2) set {_cnum} to round({_num}) set {_wymagani} to {_cnum} - {sleepnumber} if {sleepnumber} is less than {_cnum}: broadcast "&4%player%&c położył się spać. Potrzeba jeszcze &4%{_wymagani}% &cgraczy, by nastał dzień." else: broadcast "&aWystarczająco dużo graczy położyło się do łóżek. Lada chwila nastanie dzień!" wait 1 seconds set time in world to 06:00 set {sleepnumber} to 0 on bed leave: if number of all players is less than or equal to 1: stop if player isn't in world "world": stop remove 1 from {sleepnumber} on disconnect: if player is not sleeping: stop remove 1 from {sleepnumber} on join: if player is not sleeping: stop add 1 to {sleepnumber}
-
on command: if player is not in world "swiat_nether" or "swiat_the_end": stop cancel event send "&cNie mozesz uzywac w tym swiecie komend!" to player Proszę.
-
To będzie obciążało serwer. Użyj lepiej jakiegoś pluginu do tego typu rzeczy. EDIT: Pamiętaj też, że chunki po jakimś czasie (bodajże 60 sekund) znikają. EDIT: Mimo wszystko postanowiłem spróbować zrobić skrypt, sprawdź czy zadziała: every 30 seconds: loop all living entities: if loop-entity is not player: if name of loop-entity is "Zombie": add loop-entity to {_livingEntities::atChunk::%chunk at loop-entity%::*} loop {_livingEntities::atChunk::*}: if size of {_livingEntities::atChunk::%loop-index%::*} is greater than 15: set {_num} to size of {_livingEntities::atChunk::%loop-index%::*} loop ({_num} - 15) times: set {_entity} to random entity out of {_livingEntities::atChunk::%loop-index%::*} kill {_entity} remove {_entity} from {_livingEntities::atChunk::%loop-index%::*}
-
W takim wypadku mógłbyś to w ten sposób zrobić: on join: while player is online: loop all living entities within chunk at player: if loop-entity is not player: if name of loop-entity is "Nazwa": add 1 to {_num} broadcast "Na tym chunku jest %{_num}% mobow!" wait 30 seconds EDIT: Poprawiłem skrypt, bo był błąd.
-
Możesz w ten sposób policzyć moby w chunku, na którym jest gracz. Wymagane SkQuery. command /test: trigger: loop all living entities within chunk at player: if loop-entity is not player: add 1 to {_num} broadcast "Na tym chunku jest %{_num}% mobow!"
-
blokada Blokada połączenia przez "direct connect"
Kormic odpowiedział(a) na Shateq pytanie w Pytania i problemy
Znam ludzi, u których zmienne zajmują spokojnie 100 MB (rekordzistom zajmują nawet 4 GB), a i tak nie mają jakichkolwiek problemów z wydajnością serwera. Możesz zrobić listę i do niej dodawać adresy IP.
