Skocz do zawartości

judosmok

Użytkownik
  • Ilość zawartości

    22
  • Rejestracja

  • Ostatnia wizyta

Ostatnie wizyty

Blok z ostatnimi odwiedzającymi dany profil jest wyłączony i nie jest wyświetlany użytkownikom.

Osiągnięcia judosmok

Początkujący I

Początkujący I (2/13)

1

Reputacja

  1. 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
  2. już wiem jak to zrobić
  3. @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%
  4. 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}:"
  5. judosmok

    Problem z wait

    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
  6. Jest za pomocą tego addona możliwość ustawienia liczby zdobytych punktów po zabójstwie do zmiennej ?
  7. 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
  8. {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)
  9. 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
  10. 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
  11. Tylko przy odpaleniu serwer napisało że ta funkcja zostanie niedługo usunięta:
  12. Okej, dziękuje.
  13. 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?
  14. Czy da się używając shoot wystrzelić strzałę czy cokolwiek żeby leciała do osoby która na zaatakuje?
  15. Już znam rozwiązanie
×
×
  • Dodaj nową pozycję...