-
Ilość zawartości
2271 -
Rejestracja
-
Wygrane w rankingu
23
Treść opublikowana przez bludis
-
on join: while player is online: bEmeraldTrade(player, (amount of emeralds in {_player}'s inventory)) wait 1 second function bEmeraldTrade(player: player, emerald: integer): if {_emerald} < 2: stop else if {_emerald} >= 2: set {_} to (({_emerald} / 2) * 100) add {_} to {coins.%{_player}%} send "Wymieniłeś %{_emerald}% emeraldów na %{_}%$." to {_player} remove {_emerald} of emerald from {_player}'s inventory
-
A skąd ja mam wiedzieć jaki Ty masz kod? Pomyśl zanim coś napiszesz, proszę...
-
Straszne drzewa ifów... command /naprawfarme [<text>]: cooldown: 3 seconds cooldown message: Poczekaj jeszcze trigger: send "&6&lGothic&e&lMc &7pomyslnie naprawiono farmy!" to player loop all blocks in radius 10 of player: if loop-block is not end stone: stop if block above loop-block is not dirt: stop set block above loop-block to farmland loop all blocks in radius 10 of player: if loop-block is not farmland: stop if block above loop-block is not air: stop set block above loop-block to fully grown carrot plant
-
Wytłumacz dokładniej.
-
Powielić kod formatujący gui, Dodać nowe cooldowny (ważne, aby ich nazwa była zgodna z późniejszym nazewnictwem argumentu ranga w funkcji), Sprawdzać cooldowny per permisja, Funkcję wywoływać w sposób (bGetMoney(player, 100, "ranga"), Funkcję zmienić na: function bGetMoney(player: player, money: integer, ranga: text): close {_player}'s inventory add {_money} to {_player}'s balance send "Otrzymales dostawe (%{_money}%$) I %{_ranga}%" to {_player} setCooldown({_player}, "%{_ranga}%")
-
on load: createCooldown("dostawa", 24 hours) function bGetMoney(player: player, money: integer): close {_player}'s inventory add {_money} to {_player}'s balance send "Otrzymales dostawe (%{_money}%$)" to {_player} setCooldown({_player}, "dostawa") command /dostawa [<text>]: trigger: open chest with 1 row named "Dostawa" to player if getCooldown(player, "dostawa"): format gui slot 4 of player with diamond named "Dostawa" to run function bGetMoney(player, 100) stop format gui slot 4 of player with barrier named "Nie mozesz odebrac dostawy." with lore "Wroc tu za: %getCooldownText(player, ""dostawa"")%" Wymaga tuske i axcooldown.
-
Ten temat został przeniesiony.
-
Wiadomo, że nie będzie działać xD Musisz podmienić lokacje, to jest chyba wiadome.
-
Problem został rozwiązany.
-
@WIZIBANG działa?
-
function bCheckCoordinate(player: player): if (location of {_player}) is not (within lokacja1 to lokacja2): stop send "Jesteś na jakiejś lokacji - brawo!" to {_player} on join: while player is online: bCheckCoordinate(player) wait 5 seconds
-
function bKurier(player: player): if {_player}'s location is not lokacja: stop loop all items in {_player}'s inventory: if name of loop-item is "paczka': remove loop-item from {_player} on join: while player is online: bKurier(player) wait 1 second
-
Problem został rozwiązany.
-
options: file: "plugins/bEvents/config.yml" on load: loop (yaml nodes "eventy" from file {@file}): set {bEvents::%loop-value%::name} to yaml value "eventy.%loop-value%.name" from file {@file} set {bEvents::%loop-value%::lore} to yaml list "eventy.%loop-value%.lore" from file {@file} set {bEvents::%loop-value%::item} to yaml value "eventy.%loop-value%.item" from file {@file} set {bEvents::%loop-value%::slot} to yaml value "eventy.%loop-value%.slot" from file {@file} add loop-value to {bEvents::openGui::*} function bEventClick(player: player, event: text): send "Klikłeś na event: %{_event}%." to {_player} command /eventy [<text>]: trigger: open chest with 1 row named "Eventy" to player loop {bEvents::openGui::*}: format gui slot ({bEvents::%loop-value%::slot} parsed as integer) of player with ({bEvents::%loop-value%::item} parsed as itemtype) named coloured {bEvents::%loop-value%::name} with lore (join {bEvents::%loop-value%::lore::*} with "||") to run function bEventClick(player, "%loop-value%") Wtedy do pliku dajesz na przykład: eventy: Event1: name: 'Event 1' lore: - 'Status: &aaktywny' item: 'skull of ("Libter" parsed as offlineplayer)' slot: '0'
-
Ten temat został przeniesiony.
- 1 odpowiedź
-
- worldguard
- przydatne
-
(i 2 więcej)
Oznaczone tagami:
-
Jeśli zapłacisz, to nie ma problemu - jeśli jesteś zainteresowany podaj discorda lub napisz w wiadomości prywatnej na forum.
-
Kto się zna na WorldGuard zapraszam.
bludis odpowiedział(a) na KapiPierog pytanie w Pytania i problemy
Ten temat został przeniesiony. -
on mine of coal ore: set event-block to cobblestone add (random integer between 1 and 5) coal to player give 2 exp to player wait 5 seconds set event-block to coal ore
-
Ten temat został przeniesiony do kosza!
-
Jeśli zapłacisz, to nie ma problemu
-
Ten temat został przeniesiony.
-
Ten temat został przeniesiony.
-
Problem został rozwiązany.
-
Dodane, dzięki za uwagę
