-
Ilość zawartości
22 -
Rejestracja
-
Ostatnia wizyta
Treść opublikowana przez judosmok
-
Nie działa mi część skryptu ze sprzedawaniem
judosmok odpowiedział(a) na Dragon5231s pytanie w Pytania i problemy
set slot 49 of {_gui} to 1 of barrier named "&cCofnij!" open {_gui} to player # on inventory click: if name of event-inventory is "&8Sklep": cancel event if clicked slot is 20: masz dwa tab'y za dużo w linijce z on inventory click -
już wiem jak to zrobić
-
specialny item ktory wypada po zabiciu gracza
judosmok odpowiedział(a) na Piterowsky pytanie w Zlecenia
@SkryptExpert powinieneś w tym sk sprawdzić jeszcze czy victim to gracz poprawiona wersja on death: if (attacker and victim is a player): execute console command "/aszaman give %attacker% 1" Uwaga! nie wiem czy działa nie testowałem może być błąd związany z tym że nie istnieje komenda /aszaman give %attacker% 1, jeżeli taka nie istnieje to w miejsce "" wpisz poprawną komendę na nadanie jednego odłamku dla gracza (w komendzie zastąp nick gracza tym: %attacker% -
da się w skrypcie zloopować nazwę jakiegoś itemu w moim skripcie mam zmienną {_name} która przechowuje nazwe itemu próbowałem napisać loop{_name}: ale pisało że nie mogę tego zrobić bo {_name} to pojedyncza wartość próbowałem też: loop characters of {_name}: ale pisało że nie rozpoznaje tego loopa: "characters of {_name}:"
-
wait loop-integer ticks wie ktoś czemu ta linijka nie działa, wait jest w loopie jak ktoś by się pytał a jak wcześniej dałem wait loop-integer*2 ticks to działało
-
FunnySkAddon - Plugin wspierający FunnyGuilds w skripcie
judosmok odpowiedział(a) na Peridot temat w Dodatki i narzędzia
Jest za pomocą tego addona możliwość ustawienia liczby zdobytych punktów po zabójstwie do zmiennej ? -
Może dlatego że mam inaczej zrobione, wyśle może jak to umie wygląda: command /smoki: trigger: mlody_smokiGUI(player, "main") function mlody_smokiGUI(p: player, n: string): if {_n} is "main": set {_gui} to chest inventory with 4 row named {guis::dragons} loop integers between 0 and 35: set {_gui}'s slot loop-integer to black stained glass pane named " " set {_i1} to 10 set {_i2} to 20 # ---------- loop 7 times: set {_gui}'s slot {_i1} to sunflower named {dragons::%loop-integer%} with lore "&7Wymagania:" and "&8・&7Poziom » &f%{poziom::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer%::level}%" and "&8・&7Zabójstwa » &f%{kill::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer%::kills}%" and "&8・&7Wykopane bloki » &f%{blok::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer%::blocks}%" and "&8・&7Odrodzenia » &f%{odrodzenie::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer%::revives}%" and "&8・&f&lStatus » &f%{dragons::%loop-integer%::canClaim::%{_p}'s uuid%}%" add 1 to {_i1} loop 5 times: set {_gui}'s slot {_i2} to sunflower named {dragons::%loop-integer + 7%} with lore "&7Wymagania:" and "&8・&7Poziom » &f%{poziom::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer + 7%::level}%" and "&8・&7Zabójstwa » &f%{kill::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer + 7%::kills}%" and "&8・&7Wykopane bloki » &f%{blok::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer + 7%::blocks}%" and "&8・&7Odrodzenia » &f%{odrodzenie::%{_p}'s uuid%}%&7/&f%{dragons::%loop-integer + 7%::revives}%" and "&8・&f&lStatus » &f%{dragons::%loop-integer + 7%::canClaim::%{_p}'s uuid%}%" add 1 to {_i2} # ----------------- open {_gui} to {_p} stop set {_gui} to chest inventory with 5 rows named {dragons::%{_n}%} set {_gui}'s slot 0 and 8 and 36 and 44 to purple stained glass pane named " " set {_gui}'s slot 1 and 9 and 7 and 17 and 37 and 43 and 27 and 35 to blue stained glass pane named " " set {_gui}'s slot 2 and 3 and 5 and 6 and 18 and 26 and 38 and 39 and 41 and 42 to light blue stained glass pane named " " if {dragons::%{_n}%::canClaim::%{_p}'s uuid%} is {@false}: set {_gui}'s slot 22 to red wool named {dragons::%{_n}%} with lore "&7Wymagania:" and "&8・&7Poziom » &f%{poziom::%{_p}'s uuid%}%&7/&f%{dragons::%{_n}%::level}%" and "&8・&7Zabójstwa » &f%{kill::%{_p}'s uuid%}%&7/&f%{dragons::%{_n}%::kills}%" and "&8・&7Wykopane bloki » &f%{blok::%{_p}'s uuid%}%&7/&f%{dragons::%{_n}%::blocks}%" and "&8・&7Odrodzenia » &f%{odrodzenie::%{_p}'s uuid%}%&7/&f%{dragons::%{_n}%::revives}%" and "&8・&f&lStatus » &f%{dragons::%{_n}%::canClaim::%{_p}'s uuid%}%" else if {dragons::%{_n}%::canClaim::%{_p}'s uuid%} is {@toClaim}: set {_gui}'s slot 22 to yellow wool named {dragons::%{_n}%} with lore "&8・&f&lStatus » &f%{dragons::%{_n}%::canClaim::%{_p}'s uuid%}%" and "&8・&7Kliknij aby wytresować smoka %{dragons::%{_n}%}%" else: set {_gui}'s slot 22 to lime wool named {dragons::%{_n}%} with lore "&8・&f&lStatus » &f%{dragons::%{_n}%::canClaim::%{_p}'s uuid%}%" # if {dragons::%{_n}%::canClaim::%%{_p}'s uuid%%} is {@toClaim}: # set {_gui}'s slot 22 to lime wool named {dragons::%{_n}%} with lore "do odebrania" # else: # set {_gui}'s slot 22 to lime wool named {dragons::%{_n}%} with lore "wytresowales" open {_gui} to {_p} function mlody_checkSmoki(p: player): if {dragons::cooldown::%{_p}'s uuid%} is smaller than now: loop 12 times: if: {poziom::%{_p}'s uuid%} is greater or equal to {dragons::%loop-integer%::level} {kill::%{_p}'s uuid%} is greater or equal to {dragons::%loop-integer%::kills} {blok::%{_p}'s uuid%} is greater or equal to {dragons::%loop-integer%::blocks} {odrodzenie::%{_p}'s uuid%} is greater or equal to {dragons::%loop-integer%::revives} then: if {dragons::%loop-integer%::canClaim::%{_p}'s uuid%} is {@false}: set {dragons::%loop-integer%::canClaim::%{_p}'s uuid%} to {@toClaim} else: set {dragons::%loop-integer%::canClaim::%{_p}'s uuid%} to {@false} set {dragons::cooldown::%{_p}'s uuid%} to now + 3 second loop 12 times: if {dragons::%loop-integer%::canClaim::%{_p}'s uuid%} is {@toClaim}: send "%{prefix}% &aMożesz wytresować smoka %{dragons::%loop-integer%}%! &a(&f/smoki&a)" to {_p} on inventory click: if name of event-inventory is {guis::dragons}: if name of event-item is not " ": cancel event loop 12 times: set {_n} to name of event-item if {dragons::%loop-integer%} contains {_n}: mlody_smokiGUI(player, "%loop-integer%") stop if {dragons::*} contains name of event-inventory: cancel event loop 12 times: set {_n} to name of event-item if {dragons::%loop-integer%} contains {_n}: #-------------------------------------------------------------- #------------------------------------------------------------------------ if {dragons::%loop-integer-1%::canClaim::%player's uuid%} is {@false}: send "%{prefix}% &4Nie spełniasz wymagań, aby wytresować tego smoka!" to player if {dragons::%loop-integer-1%::canClaim::%player's uuid%} is {@toClaim}: if player has enough space for {dragons::%loop-integer-1%::reward}: give {dragons::%loop-integer-1%::reward} to player set {dragons::%loop-integer-1%::canClaim::%player's uuid%} to {@true} broadcast "%{prefix}% &7Gracz &f%player% &7wytresował smoka %{dragons::%loop-integer-1%}%" close player's inventory stop if {dragons::%loop-integer-1%::canClaim::%player's uuid%} is {@true}: send "%{prefix}% &7Wytresowałeś już tego smoka!" to jest tylko część nie dawałem tu ustawiania zmiennych w on skript load bo w tym były jeszcze inne zmienne
-
{dragon::*} - zawiera 12 nazw gui, od {dragon::1} do {dragon::12} no i główne gui przez które wchodzi się do poszczególnych gui - {dragon::gui} (ale z nim nie ma problemu)
-
Problem jest taki, że nawet jak napisze on inventory click: if (name of event-inventory is {dragon::3} ro {dragon::7}): cancel event {dragon::3} i {dragon::7} do nich są ustawione nazwy dwóch gui i tylko one nie działają i nawet jak napisz powyższy kod to nadal da się z tych gui wyjmować itemy
-
on inventory click: if name of event-inventory is {guis::dragons}: if name of event-item is not " ": cancel event loop 12 times: set {_n} to name of event-item if {dragons::%loop-integer%} contains {_n}: mlody_smokiGUI(player, "%loop-integer%") stop if {dragons::*} contains name of event-inventory: cancel event loop 12 times: set {_n} to name of event-item if {dragons::%loop-integer%} contains {_n}: Mam taki kod, w którym jest 12 smoków jest gui gdzie po kliknięciu na dowolnego otwieram gui tego smoka w kodzie powyżej jest kawałek on inventory click i i część kodu po if {dragons::*} dotyczy gui które są dla smoków chodzi oto że mam tam cancel event, ale on nie działa, ale tylko w dwóch smokach o numerach 3 i 7 Nie wiem czy dobrze to wytłumaczyłem, ale w skrócie cancel event nie działa na dwóch smokach o numerach 3 i 7
-
Tylko przy odpaleniu serwer napisało że ta funkcja zostanie niedługo usunięta:
-
Okej, dziękuje.
-
Nie wiem czy zrozumiałem dobrze, ale wyszło mi coś takiego set {_loc1} to location of victim set {_loc2} to location of attacker set {_v} to vector between {_loc1} and {_loc2} set {_v} to normalized {_v} set {_scalarVector} to vector 0.8, 0.8, 0.8 set {_cel} to {_v}*{_scalarVector} shoot an arrow from victim {_cel} nie mam jak sprawdzić, ale jak zrobiłem reload to nie było błędów powiesz czy to dobrze zrobiłem, czy źle zrozumiałem?
-
Czy da się używając shoot wystrzelić strzałę czy cokolwiek żeby leciała do osoby która na zaatakuje?
-
Już znam rozwiązanie
-
on placeholderapi placeholder request for the prefix "skript": if (the identifier is "odrodzenie"): set the result to "%{odrodzenie::%player's uuid%}%" jak coś np jak mam taki placeholder to on działa, a tamte nie a są identyczne o te nie działają: on placeholderapi placeholder request for the prefix "skript": if (the identifier is "poziom"): set the result to "%{poziom::%player's uuid%}%" # placeholder: %skript_poziom% on placeholderapi placeholder request for the prefix "skript": if (the identifier is "exp"): set the result to "%{exp::%player's uuid%}%" # placeholder: %skript_exp% on placeholderapi placeholder request for the prefix "skript": if (the identifier is "potrzebnyexp"): set the result to "&e%{exp::%player's uuid%}%&5&l/&e%{potrzebny_exp::%player's uuid%}%" # placeholder: %skript_potrzebnyexp% Mam skript 2.8.4, skript placeholder najnowszy, i mam PlaceHolderApi
-
Bo ładniej dla mnie wygląda jak jest w nawiasach no i tak już się przyzwyczaiłem robić. Ale działa, dzięki
-
Pomoże ktoś, Mam błąd "Can't understand this condition" a to kod: function zmienexp(p: player): if ({exp::%{_p}'s uuid%} >= {poziom::%{_p}'s uuid%}): remove {potrzebny_exp::%{_p}'s uuid%} from {exp::%{_p}'s uuid%} if ({poziom::%{_p}'s uuid%} <= 9 and {poziom::%{_p}'s uuid%} >= 0): Reszty kodu nie dawałem Problem jest z ostatnią linijką, z if
-
Dzięki, działa.
-
set {_fr} to arg 2 remove 4 from {_fr} wie ktoś czemu nie zabiera 4 od zmiennej {_fr} Proszę o szybką odpowiedzi
-
Powinno zadziałać: on death: if (victim is player): if (attacker is player): set {_time} to random integer between 180 and 600 # effektu po śmierci (negatywne) set {_} to random integer between 1 and 10 set {_3} to random integer between 1 and 3 set {_2} to random integer between 1 and 2 apply strenght {_2} to victim for {_time} seconds replacing existing effect apply regeration 1 to victim for {_time} seconds replacing existing effect apply jump boost {_2} to victim for {_time} seconds replacing existing effect apply speed {_2} to victim for {_time} seconds replacing existing effect apply health boost {_3} to victim for {_time} seconds replacing existing effect apply fire resistance 1 to victim for {_time} seconds replacing existing effect send "&aNadano dobre effekty za zabicie gracza" to attacker if ({_} is not 1): wait 60 ticks # czeka by nadać effekty po śmierci a nie przed apply slowness {_3} to victim for {_time} seconds replacing existing effect apply poison {_2} to victim for {_time} seconds replacing existing effect apply hunger 1 to victim for {_time} seconds replacing existing effect apply weakness 1 to victim for {_time} seconds replacing existing effect apply mining fatigue {_3} to victim for {_time} seconds replacing existing effect send "&cNadano złe effekty z powodu śmierci" to victim Dodaj tylko taby zamiast spacji i będzie raczej działało, jeżeli nie to napisz to spróbuje naprawić.
-
umiał by ktoś zrobić skrypt dodający topke poziomu "{poziom::%player%}" sam zrobiłem skrypt na zdobywanie go, ale nie wie jak zrobić z niego topke że pod komendą /poziomtopka napisz top 5 osób z najwyższym poziomem
