Znajdź zawartość
Wyświetlanie wyników dla 'schowek'.
-
Podstawowe informacje Wersja serwera: 1.21.1 Wersja Skript: 2.12.2 Dodatki Skript i ich wersje: skquery 4.3.2 Kod skryptu options: # Maksymalne ilości koxów, refilli oraz pereł endu koxy-max: 4 refy-max: 48 perly-max: 6 # Nazwa schowka schowek-nazwa: &6&lSchowek function reloadSchowekGUI(p: player): set slot 1 of {_p}'s current inventory to enchanted golden apple named "&c&lKOXY" with lore "&6Kliknij i wyplac koxy z depozytu!" and "" and "&bPosiadasz: &e%{schowek::koxy::%{_p}%}%" and "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 3 of {_p}'s current inventory to golden apple named "&c&lREFY" with lore "&6Kliknij i wyplac refy z depozytu!" and "" and "&bPosiadasz: &e%{schowek::refille::%{_p}%}%" and "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 5 of {_p}'s current inventory to ender pearl named "&c&lPERLY" with lore "&6Kliknij i wyplac perly z depozytu!" and "" and "&bPosiadasz: &e%{schowek::perly::%{_p}%}%" and "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 7 of {_p}'s current inventory to magma cream named "&aWypłać wszystko do limitu!" with lore "&7Kliknij &aLPM&7, aby wyplacic!" function getKoxSchowek(p: player) :: boolean: if {_p} has {@koxy-max} enchanted golden apple: send "&cJuz masz &6{@koxy-max} &ckoxy!" to {_p} return false if {schowek::koxy::%{_p}%} is less than 1: send "&cProbowalem wyplacic koxa.. ale masz pusty schowek." to {_p} return false if {_p} doesn't have enough space for 1 enchanted golden apple: send "&cProbowalem wyplacic koxa.. ale masz pelny ekwipunek." to {_p} return false loop {@koxy-max} times: if {_p} has {@koxy-max} enchanted golden apple: exit loop if {schowek::koxy::%{_p}%} is less than 1: exit loop if {_p} doesn't have enough space for 1 enchanted golden apple: exit loop add enchanted golden apple to {_p} remove 1 from {schowek::koxy::%{_p}%} add 1 to {_num} if {_num} is not set: return false send "&aWyplacono &6%{_num}% &akoxow!" to {_p} return true function getRefillSchowek(p: player) :: boolean: if {_p} has {@refy-max} golden apple: send "&cJuz masz &6{@refy-max} &crefow!" to {_p} return false if {schowek::refille::%{_p}%} is less than 1: send "&cProbowalem wyplacic refilla.. ale masz pusty schowek." to {_p} return false if {_p} doesn't have enough space for 1 golden apple: send "&cProbowalem wyplacic refilla.. ale masz pelny ekwipunek." to {_p} return false loop {@refy-max} times: if {_p} has {@refy-max} golden apple: exit loop if {schowek::refille::%{_p}%} is less than 1: exit loop if {_p} doesn't have enough space for 1 golden apple: exit loop add golden apple to {_p} remove 1 from {schowek::refille::%{_p}%} add 1 to {_num} if {_num} is not set: return false send "&aWyplacono &6%{_num}% &arefow!" to {_p} return true function getPearlSchowek(p: player) :: boolean: if {_p} has {@perly-max} ender pearl: send "&cJuz masz &6{@perly-max} &cperly!" to {_p} return false if {schowek::perly::%{_p}%} is less than 1: send "&cProbowalem wyplacic perle.. ale masz pusty schowek." to {_p} return false if {_p} doesn't have enough space for 1 ender pearl: send "&cProbowalem wyplacic perle.. ale masz pelny ekwipunek." to {_p} return false loop {@perly-max} times: if {_p} has {@perly-max} ender pearl: exit loop if {schowek::perly::%{_p}%} is less than 1: exit loop if {_p} doesn't have enough space for 1 ender pearl: exit loop add ender pearl (teleport cause) to {_p} remove 1 from {schowek::perly::%{_p}%} add 1 to {_num} if {_num} is not set: return false send "&aWyplacono &6%{_num}% &aperel!" to {_p} return true every 1 second: loop all players: if loop-player has ({@koxy-max} + 1) of enchanted golden apple: add ((amount of enchanted golden apple in loop-player's inventory) - {@koxy-max}) to {schowek::koxy::%loop-player%} remove ((amount of enchanted golden apple in loop-player's inventory) - {@koxy-max}) of enchanted golden apple from loop-player's inventory send "&cMiales za duzo koxow! Przeniesiono nadmiar do depozytu!" to loop-player if loop-player has ({@refy-max} + 1) of golden apple: add ((amount of golden apple in loop-player's inventory) - {@refy-max}) to {schowek::refille::%loop-player%} remove ((amount of golden apple in loop-player's inventory) - {@refy-max}) of golden apple from loop-player's inventory send "&cMiales za duzo refow! Przeniesiono nadmiar do depozytu!" to loop-player if loop-player has ({@perly-max} + 1) of ender pearl: add ((amount of ender pearl in loop-player's inventory) - {@perly-max}) to {schowek::perly::%loop-player%} remove ((amount of ender pearl in loop-player's inventory) - {@perly-max}) of ender pearl from loop-player's inventory send "&cMiales za duzo perel! Przeniesiono nadmiar do depozytu!" to loop-player command /schowek: trigger: open chest with 1 row named "depozyt" to player set slot (integers between 0 and 8) of player's current inventory to glass named " " reloadSchowekGUI(player) on inventory click: name of player's current inventory is "depozyt" clicked inventory is not player's inventory cancel event if clicked slot is 1: getKoxSchowek(player) is true reloadSchowekGUI(player) else if clicked slot is 3: getRefillSchowek(player) is true reloadSchowekGUI(player) else if clicked slot is 5: getPearlSchowek(player) is true reloadSchowekGUI(player) else if clicked slot is 7: getKoxSchowek(player) is true: reloadSchowekGUI(player) getRefillSchowek(player) is true: reloadSchowekGUI(player) getPearlSchowek(player) is true: reloadSchowekGUI(player) Opis problemu siemanko, jak wyplacam perly to nie trafiaja one do mojego ekwipunku tylko cos je wciaga, a ze schowka znikaja, refy i koxy juz nie maja takiego problemu i smigaja elegancko, ale od pol godziny siedze i nie moge rozwiazac problemu z perlami, pomoglby ktos?
-
Witam, stworzyłem skrypt na schowek jak na SG
krystianalanekw opublikował(a) pytanie w Pytania i problemy
-
Wie ktos dlaczego w tym skrypcie sie nie wpłacaja perły?
-
Co do wait 14 days to poprostu przez przypadek wkleiłem ze schowka wersję, która była w trakcie roboty i bardzo przepraszam ---------- I właśnie co masz na myśli Jowiszek?
- 43 odpowiedzi
-
Czy mógłby ktoś pomóc mi naprawić mój skrypt na schowek?
Kamerzystanasyt opublikował(a) pytanie w Pytania i problemy
Witam, mam problem z moim skryptem ponieważ chciałem dodać wypłacanie ale one nie działa nie wiem czemu. https://code.skript.pl/j8qNRrKg -
korzystam ze skryptow na schowek i efektow ktore dzialaja tylko na 2.5.3
-
Schowek "if clicked type is left mouse button"
Fendi odpowiedział(a) na PePeFanBOT#5777 pytanie w Pytania i problemy
czczeczeczeczego? wygody? No dobra Moze użyj po prostu gotowy skrypt na schowek w gui ktorych jest pelno zamiast się męczyć Przykładowo -
Schowek "if clicked type is left mouse button"
PePeFanBOT#5777 opublikował(a) pytanie w Pytania i problemy
Witam mam problem z wykonaniem tego eventu w schowku (gui) wersja skryptu to 2.1.1 a wersja serwera to 1.8.8 -
Siemanko, potrzebuję skryptu na schowek w gui. Wersja 1.16.5 Silnik: PURPUR Limity: Perły - 16 Totem - 1 Chorusy - 3 Automatycznie zabierany nadmiar z eq i dobieranie po kliknięciu w dany przedmiot pod komendą /schowek Fajny również by był jakiś item który dobiera wszystko naraz do limitu
-
Tak, jednak przy posiadaniu więcej niż to jest ustawione to wtedy to idzie do schowka
-
Witam, chciałbym się zapytać czy ktoś mógłby mi napisać skrypt na schowek z takimi ustawieniami: Koxy, Refile, Perły, Totemy, End Crystale, Respawn Ancory, oraz Hopper z opcją wypłacenia wszystkich itemów na raz(zgodnie z limitem). Opcje powyżej do ustawienia, moje preferencje: [1, 12, 5, 7, 15, 15] każda wartość odpowiada indexowi itemom powiedzianym na początku np. 1 Kox, 12 Refilów Gui powinno wyglądać tak: SSSSSSSSS SKRPSCATS SSSSHSSSS SSSSSSSSS S-Szyba z pustą nazwą, K-Kox, R-Refil, P-Perła, C-Crystal, A-Ancor, T-Totem, H-Hopper. Skrypt powinien zabierać itemki po każdym, jakimkolwiek przekroczeniu limitu: Pickup, Zabranie ze skrzynki itp. Ewentualnie przy próbie zjedzenia/użycia przedmiotu Komenda na schowek to: /pocket jako Skrytka lub Kieszeń po angielsku. Prosiłbym również o napisanie skryptu po angielsku tzn. nazwy przedmiotów komunikaty itp. Uprzedzając odpowiedź, wszystkie inne mi nie działają pomimo podobnej wersji. Client: Paper 388, Client Version: 1.18.2, Skript Version: 2.6.4, Addons?: SkBee. Jeżeli coś jest nie jasne, tzn. wersja czegoś, czegoś nie dopowiedziałem, to śmiało pytać! PS: Restart też był robiony wiele razy
-
Dzięki chętnie przeczytam twoją opinię odnośnie tego co dodać lub zmienić aby działanie pluginu było przyjemniejsze. To pierwsza wersja i mam jeszcze fajne plany co do tego. W przyszłości chciałbym przerobić plugin tak aby przedmioty były zapisywane w skrzyni a nie były przypisane do gracza. To pozwoli na zabicie kogoś i zebrania jego skrzynki o ile taką będzie miał. Aktualnie działa to na zasadzie, że itemy są w schowku gracza i pojawią się jedynie jeżeli to gracz położy skrzynie (takie zabezpieczenie przed podnoszeniem skrzyń i wyrzucaniem bo w taki sposób mamy zwykły shulkerbox).
-
options: kox-max: 1 refill-max: 16 perla-max: 4 totem-max: 1 deposit-name: &6&lSchowek function reloadStorageGUI(p: player): set slot 6 of {_p}'s current inventory to enchanted golden apple named "&c&lKoxy" with lore "&6Kliknij i wyplac koxy ze schowka!", "", "&bPosiadasz: &e%{storage::kox::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 2 of {_p}'s current inventory to golden apple named "&c&lRefille" with lore "&6Kliknij i wyplac refy ze schowka!", "", "&bPosiadasz: &e%{storage::refill::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 10 of {_p}'s current inventory to totem of undying named "&c&lTotemy" with lore "&6Kliknij i wyplac totemy ze schowka!", "", "&bPosiadasz: &e%{storage::totem::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 16 of {_p}'s current inventory to ender pearl named "&c&lPerly" with lore "&6Kliknij i wyplac perly ze schowka!", "", "&bPosiadasz: &e%{storage::pearl::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 22 of {_p}'s current inventory to hopper named "&c&lWypłać Wszystko" with lore "&6Kliknij i wyplac wszystko ze schowka!", "", "&7Kliknij &aLPM&7, aby wyplacic!" function getItemInStorage(p: player, i: item, n: integer, v: text, t: text) :: boolean: {_p} has {_n} of {_i}: send "&cJuz masz &6%{_n}% &c%{_t}%!" to {_p} return false {storage::%{_v}%::%{_p}%} is less than 1: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pusty schowek." to {_p} return false {_p} doesn't have enough space for 1 of {_i}: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pelny ekwipunek." to {_p} return false loop {_n} times: {_p} has {_n} of {_i}: exit loop {storage::%{_v::%loop-index%}%::%{_p}%} is not set: exit loop {_p} doesn't have enough space for {_i}: exit loop add {_i} to {_p} remove 1 from {storage::%{_v::%loop-index%}%::%{_p}%} add 1 to {_num} {_num} is not set: return false send "&aWyplacono &6%{_num}% &a%{_t}%!" to {_p} return true every 1 second: set {_i::*} to ender pearl, enchanted golden apple, golden apple, totem of undying set {_n::*} to {@perla-max}, {@kox-max}, {@refill-max}, {@totem-max} set {_v::*} to "pearl", "kox", "refill", "totem" set {_t::*} to "pereł", "koxów", "refilli", "totemów" loop all players: loop {_i::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{_v::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{_t::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player every 1 second: set {_n::*} to {@perla-max} loop all players: loop {ender pearl::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{pearl::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{pereł::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player command /schowek: executable by: players trigger: set {_i::*} to "kox", "refill", "pearl", "totem" loop {_i::*}: {storage::%loop-value%::%player%} is not set set {storage::%loop-value%::%player%} to 0 open chest inventory with 3 row named "{@deposit-name}" to player set slot (integers between 0 and 26) of player's current inventory to gray glass pane named " " reloadStorageGUI(player) on inventory click: name of player's current inventory is "{@deposit-name}" clicked inventory is not player's inventory cancel event if clicked slot is 6: getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player) if clicked slot is 2: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") is true reloadStorageGUI(player) if clicked slot is 10: getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") is true reloadStorageGUI(player) if clicked slot is 16: getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true reloadStorageGUI(player) if clicked slot is 22: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player)
-
options: kox-max: 1 refill-max: 16 perla-max: 4 totem-max: 1 deposit-name: &6&lSchowek function reloadStorageGUI(p: player): set slot 6 of {_p}'s current inventory to enchanted golden apple named "&c&lKoxy" with lore "&6Kliknij i wyplac koxy ze schowka!", "", "&bPosiadasz: &e%{storage::kox::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 2 of {_p}'s current inventory to golden apple named "&c&lRefille" with lore "&6Kliknij i wyplac refy ze schowka!", "", "&bPosiadasz: &e%{storage::refill::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 10 of {_p}'s current inventory to totem of undying named "&c&lTotemy" with lore "&6Kliknij i wyplac totemy ze schowka!", "", "&bPosiadasz: &e%{storage::totem::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 16 of {_p}'s current inventory to ender pearl named "&c&lPerly" with lore "&6Kliknij i wyplac perly ze schowka!", "", "&bPosiadasz: &e%{storage::pearl::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 22 of {_p}'s current inventory to hopper named "&c&lWypłać Wszystko" with lore "&6Kliknij i wyplac wszystko ze schowka!", "", "&7Kliknij &aLPM&7, aby wyplacic!" function getItemInStorage(p: player, i: item, n: integer, v: text, t: text) :: boolean: {_p} has {_n} of {_i}: send "&cJuz masz &6%{_n}% &c%{_t}%!" to {_p} return false {storage::%{_v}%::%{_p}%} is less than 1: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pusty schowek." to {_p} return false {_p} doesn't have enough space for 1 of {_i}: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pelny ekwipunek." to {_p} return false loop {_n} times: {_p} has {_n} of {_i}: exit loop {storage::%{_v::%loop-index%}%::%{_p}%} is less than 1: exit loop {_p} doesn't have enough space for {_i}: exit loop add {_i} to {_p} remove 1 from {storage::%{_v::%loop-index%}%::%{_p}%} add 1 to {_num} {_num} is not set: return false send "&aWyplacono &6%{_num}% &a%{_t}%!" to {_p} return true every 1 second: set {_i::*} to ender pearl, enchanted golden apple, golden apple, totem of undying set {_n::*} to {@perla-max}, {@kox-max}, {@refill-max}, {@totem-max} set {_v::*} to "pearl", "kox", "refill", "totem" set {_t::*} to "pereł", "koxów", "refilli", "totemów" loop all players: loop {_i::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{_v::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{_t::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player every 1 second: set {_n::*} to {@perla-max} loop all players: loop {ender pearl::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{pearl::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{pereł::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player command /schowek: executable by: players trigger: set {_i::*} to "kox", "refill", "pearl", "totem" loop {_i::*}: {storage::%loop-value%::%player%} is not set set {storage::%loop-value%::%player%} to 0 open chest inventory with 3 row named "{@deposit-name}" to player set slot (integers between 0 and 26) of player's current inventory to gray glass pane named " " reloadStorageGUI(player) on inventory click: name of player's current inventory is "{@deposit-name}" clicked inventory is not player's inventory cancel event if clicked slot is 6: getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player) if clicked slot is 2: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") is true reloadStorageGUI(player) if clicked slot is 10: getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") is true reloadStorageGUI(player) if clicked slot is 16: getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true reloadStorageGUI(player) if clicked slot is 22: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player) Spróbój to
-
options: kox-max: 1 refill-max: 16 perla-max: 4 totem-max: 1 deposit-name: &6&lSchowek function reloadStorageGUI(p: player): set slot 6 of {_p}'s current inventory to enchanted golden apple named "&c&lKoxy" with lore "&6Kliknij i wyplac koxy ze schowka!", "", "&bPosiadasz: &e%{storage::kox::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 2 of {_p}'s current inventory to golden apple named "&c&lRefille" with lore "&6Kliknij i wyplac refy ze schowka!", "", "&bPosiadasz: &e%{storage::refill::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 10 of {_p}'s current inventory to totem of undying named "&c&lTotemy" with lore "&6Kliknij i wyplac totemy ze schowka!", "", "&bPosiadasz: &e%{storage::totem::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 16 of {_p}'s current inventory to ender pearl named "&c&lPerly" with lore "&6Kliknij i wyplac perly ze schowka!", "", "&bPosiadasz: &e%{storage::pearl::%{_p}%}%", "" and "&7Kliknij &aLPM&7, aby wyplacic!" set slot 22 of {_p}'s current inventory to hopper named "&c&lWypłać Wszystko" with lore "&6Kliknij i wyplac wszystko ze schowka!", "", "&7Kliknij &aLPM&7, aby wyplacic!" function getItemInStorage(p: player, i: item, n: integer, v: text, t: text) :: boolean: {_p} has {_n} of {_i}: send "&cJuz masz &6%{_n}% &c%{_t}%!" to {_p} return false {storage::%{_v}%::%{_p}%} is less than 1: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pusty schowek." to {_p} return false {_p} doesn't have enough space for 1 of {_i}: send "&cProbowalem wyplacic kilka %{_t}%, ale masz pelny ekwipunek." to {_p} return false loop {_n} times: {_p} has {_n} of {_i}: exit loop {storage::%{_v}%::%{_p}%} is less than 1: exit loop {_p} doesn't have enough space for {_i}: exit loop add {_i} to {_p} remove 1 from {storage::%{_v}%::%{_p}%} add 1 to {_num} {_num} is not set: return false send "&aWyplacono &6%{_num}% &a%{_t}%!" to {_p} return true every 1 second: set {_i::*} to ender pearl, enchanted golden apple, golden apple, totem of undying set {_n::*} to {@perla-max}, {@kox-max}, {@refill-max}, {@totem-max} set {_v::*} to "pearl", "kox", "refill", "totem" set {_t::*} to "pereł", "koxów", "refilli", "totemów" loop all players: loop {_i::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{_v::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{_t::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player every 1 second: set {_n::*} to {@perla-max} loop all players: loop {ender pearl::*}: loop-player has ({_n::%loop-index%} + 1) of loop-value-2 add ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) to {storage::%{pearl::%loop-index%}%::%loop-player%} remove ((amount of loop-value-2 in loop-player's inventory) - {_n::%loop-index%}) of loop-value-2 from loop-player's inventory send "&cMiales za duzo %{pereł::%loop-index%}%, przeniesiono nadmiar do depozytu!" to loop-player command /schowek: executable by: players trigger: set {_i::*} to "kox", "refill", "pearl", "totem" loop {_i::*}: {storage::%loop-value%::%player%} is not set set {storage::%loop-value%::%player%} to 0 open chest inventory with 3 row named "{@deposit-name}" to player set slot (integers between 0 and 26) of player's current inventory to gray glass pane named " " reloadStorageGUI(player) on inventory click: name of player's current inventory is "{@deposit-name}" clicked inventory is not player's inventory cancel event if clicked slot is 6: getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player) if clicked slot is 2: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") is true reloadStorageGUI(player) if clicked slot is 10: getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") is true reloadStorageGUI(player) if clicked slot is 16: getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true reloadStorageGUI(player) if clicked slot is 22: getItemInStorage(player, golden apple, {@refill-max}, "refill", "refilli") getItemInStorage(player, ender pearl, {@perla-max}, "pearl", "pereł") is true getItemInStorage(player, totem of undying, {@totem-max}, "totem", "totemów") getItemInStorage(player, enchanted golden apple, {@kox-max}, "kox", "koxów") is true reloadStorageGUI(player)
-
Odpowiedź ChatGPT z OpenAI Możesz użyć JavaScript do skopiowania adresu IP serwera do schowka. Przykładowy skrypt w JavaScript może wyglądać następująco: function copyIP() { let ip = "127.0.0.1"; // tutaj wpisz adres IP serwera navigator.clipboard.writeText(ip).then(function() { console.log('Adres IP został skopiowany do schowka.'); }, function(err) { console.error('Wystąpił błąd podczas kopiowania adresu IP: ', err); }); }
-
Cześć. Chcę zrobić przycisk, który skopiuje do schowka ip serwera po jego naciśnięciu. Potrzebuję skryptu w js czy zrobię to jakimś innym sposobem?
-
Szukam skryptu i gui w chestcommands do: /schowek
-
Witam tak jak już pisałem szukam osoby która napisze mi skript na schowek gdzie po komendzie /schowek wyświetli się 27 kratkowe GUI i itemki będą porozmieszczanena środkowym pasku o 2 miejsca będzie zbierać koxy refy perły lilith 4 perły 2 koxy 12 refów i chciałbym jeszcze osobna komendę / wyplac która będzie wyplacala itemki że schowka czyli po 4 perły 2 koxy i 12 refów i to type
-
chodzilo mi bardziej o limity ze jak ma sie wiecej niz 12 refow to trafia to do schowka
-
[23:40:23] [Server thread/INFO]: [Skript] Reloading schowek.sk... [23:40:23] [Server thread/INFO]: Line 10: (schowek.sk) [23:40:23] [Server thread/INFO]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. [23:40:23] [Server thread/INFO]: Line: function refreshIlosc(p: player, page: number): [23:40:23] [Server thread/INFO]: [23:40:23] [Server thread/INFO]: Line 16: (schowek.sk) [23:40:23] [Server thread/INFO]: Can't understand this section: create a gui with virtual chest inventory with 3 rows named "&7Schowek" and shape "---------", "--p-t-r--", and "----k----" [23:40:23] [Server thread/INFO]: Line: create a gui with virtual chest inventory with 3 rows named "&7Schowek" and shape "---------", "--p-t-r--", and "----k----": [23:40:23] [Server thread/INFO]: [23:40:23] [Server thread/INFO]: Line 108: (schowek.sk) [23:40:23] [Server thread/INFO]: Starting a variable's name with an expression is discouraged ({%player%.notch}). You could prefix it with the script's name: {schowek.%player%.notch} [23:40:23] [Server thread/INFO]: Line: set {%player%.notch} to 0 [23:40:23] [Server thread/INFO]: [23:40:23] [Server thread/INFO]: Line 109: (schowek.sk) [23:40:23] [Server thread/INFO]: Starting a variable's name with an expression is discouraged ({%player%.ref}). You could prefix it with the script's name: {schowek.%player%.ref} [23:40:23] [Server thread/INFO]: Line: set {%player%.ref} to 0 [23:40:23] [Server thread/INFO]: [23:40:23] [Server thread/INFO]: Line 110: (schowek.sk) [23:40:23] [Server thread/INFO]: Starting a variable's name with an expression is discouraged ({%player%.totem}). You could prefix it with the script's name: {schowek.%player%.totem} [23:40:23] [Server thread/INFO]: Line: set {%player%.totem} to 0 [23:40:23] [Server thread/INFO]: [23:40:23] [Server thread/INFO]: Line 111: (schowek.sk) [23:40:23] [Server thread/INFO]: Starting a variable's name with an expression is discouraged ({%player%.perly}). You could prefix it with the script's name: {schowek.%player%.perly} [23:40:23] [Server thread/INFO]: Line: set {%player%.perly} to 0 [23:40:23] [Server thread/INFO]: [23:40:24] [Server thread/INFO]: [Skript] Encountered 1 error while reloading schowek.sk! (428ms)
-
Schowek ma działać jak enderchest czy bardziej tak jak na megadropach?
-
napisze mi ktos skrypt na /schowek z totemami (limit 1) refami (limit 12) koxami (limit 2) i perlami (limit 4) ?
-
Ogólnie pomysł bardzo fajny i wykonanie nienajgorsze tylko nieoptymalne Drobne uwagi: Ładowanie wszystkiego do yml to raczej nie jest za dobry pomysł, zwłaszcza ciągłe otwieranie i zapisywanie Itemy w yml, mogłeś to na normalnych zmiennych zrobić, byłoby to wydajniejsze i lepsze rozwiązanie (nawet jeden dodatek by ci odpadł) Mógłbyś też zamiast ciągle tworzyć nowe inventory każdemu graczowi, zrobic jedno i je otwierać (przy aktualizacji automatycznie każdemu graczowi by się zmieniło) Propozycje Jakiś config (do tego użyj yml a nie itemów xD) Schowek na zakupione przedmioty
-
options: ref: 12 kox: 2 perly: 6 function check(p: player, i: item=air): set {_kox} to amount of enchanted golden apple in {_p}'s inventory add ({_kox}-{@kox}) to {Schowek::%{_p}%::kox} if {_kox} > 0 add 1 to {_kox} if {_i} is enchanted golden apple remove ({_kox}-{@kox}) of enchanted golden apple from {_p} set {_ref} to amount of golden apple in {_p}'s inventory add ({_ref}-{@ref}) to {Schowek::%{_p}%::ref} if {_ref} > 0 add 1 to {_ref} if {_i} is golden apple remove ({_ref}-{@ref}) of golden apple from {_p} set {_perly} to amount of ender pearl in {_p}'s inventory add ({_perly}-{@perly}) to {Schowek::%{_p}%::perly} if {_perly} > 0 add 1 to {_perly} if {_i} is ender pearl remove ({_perly}-{@perly}) of ender pearl from {_p} on eat: check(player, event-item) every 5 second: loop all players: check(loop-player) command /schowek [<text>]: trigger: if arg is not "wyplac": send "&6SCHOWEK" send "&7Posiadasz: &e%{Schowek::%player%::kox} ? 0% koxow" send "&7Posiadasz: &e%{Schowek::%player%::ref} ? 0% refow" send "&7Posiadasz: &e%{Schowek::%player%::perly} ? 0% perel" stop if arg is "clear": delete {Schowek::*} stop set {_kox} to {@kox} if {Schowek::%player%::kox} >= {@kox} else {Schowek::%player%::kox} set {_ref} to {@ref} if {Schowek::%player%::ref} >= {@kox} else {Schowek::%player%::ref} set {_perly} to {@perly} if {Schowek::%player%::perly} >= {@kox} else {Schowek::%player%::perly} add {_kox} of enchanted golden apple to player add {_ref} of golden apple to player add {_perly} of ender pearl to player wait second check(player)
