tromek1337
Użytkownik-
Ilość zawartości
31 -
Rejestracja
-
Ostatnia wizyta
Treść opublikowana przez tromek1337
-
Ustawianie argumentu przez napisanie na czacie
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
Dzięki za pomoc wszystko ładnie działa -
Ustawianie argumentu przez napisanie na czacie
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
@Kormic Mam już wszystko zrobione tylko nie wiem jak pobrać to co napisał gracz. (czyli teksty z czatu dać do zmiennej) -
Ustawianie argumentu przez napisanie na czacie
tromek1337 opublikował(a) pytanie w Pytania i problemy
Witam mam skrypt którym chcę ustawić nazwę danego domu. Chcę aby po wykonaniu np. komendy będzie trzeba napisać nazwę na czacie (która nie wyświetla się innym) i zapisze ona się w zmiennej. Oczywiście żeby był określony czas na wpisanie. -
Dzięki za pomoc wszystko już działa Ostateczna wersja: if {ignore::%player%::*} doesn't contain name of arg 1:
-
a jak by to trzeba by było zapisać bo próbowałem na wszystkie sposoby i zawsze coś działa źle
-
Jeżeli ktoś pierwszy raz wejdzie na serwer od razu ignoruje wszystkich
-
no bo żeby nie móc wysłać wiadomości najpierw trzeba przecież zignorować tego gracza Tak myślę że tu może być źle napisane if {ignore::%arg-1%::*} contains name of arg 1:
-
Witam nie wiem jak zrobić aby działało /ignore w /msg skrypt niby działa ale trzeba odignorować gracza aby wysłać wiadomość prywatną. command /ignore [<text>]: trigger: if arg is not set: send "&8&l[&9&lTAG&8&l] &fPodaj nick gracza" else: arg is set if {ignore::%arg%::*} contain player: send "&8&l[&9&lTAG&8&l] &fPrzestales ignorować gracza &b%arg%" remove player from {ignore::%arg%::*} else: add player to {ignore::%arg%::*} send "&8&l[&9&lTAG&8&l] &fOd teraz gracz &b%arg% &fnie bedzie mógl wysylać tobie wiadomości prywatnych i próśb o teleportacje" command /msg [<offlineplayer>] [<text>]: trigger: if arg 1 is set: if arg 2 is set: if {powpw::%arg-1%} is true: if {ignore::%arg-1%::*} contains name of arg 1: send "&8&l[&9&l%player% &7&l-> &9&lTY&8&l] &e%arg 2%" to arg 1 send "&8&l[&9&lTY &7&l-> &9&l%arg 1%&8&l] &e%arg 2%" set {%player's uuid%.odpowiedz} to arg 1 else: send "&8&l[&9&lTAG&8&l] &fTen gracz ciebie ignoruje" else: send "&8&l[&9&lTAG&8&l] &fTen gracz ma wylaczone wiadomości prywatne" else: send "&8&l[&9&lTAG&8&l] &fPodaj tresc wiadomosci!" else: send "&8&l[&9&lTAG&8&l] &fPodaj nick gracza!"
-
dzięki wszystko się naprawiło
-
ale to nie jest potrzebne? on load: createCooldown("home", 120 second, "vip") a można to jakoś naprawić?
-
Witam czy można zamienić on load: na coś inne ponieważ mam takie błędy i Cooldown nalicza w drugą stronę (czyli nie zmniejsza się np. z 5 sekund na 1 sekundę tylko np. z 5 sekund na 10 sekund w drugą stronę) [20:57:59 ERROR]: Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events! Wersja serwera, skripta oraz dodatki:
-
No dobrze myślałem i nie wiem jak to zrobić. Ale i tak dziękuje ci za pomoc. Temat do zamknięcia
-
A jak mam to dokładnie zrobić? (Ponieważ nie siedzę w skript aż tak)
-
Właśnie to chyba są randomowe cyfry ponieważ się zmieniają za każdym razem. Po dodaniu "set {_t} to last (length of uncolo..." takie daje wartości po takim samym zapytaniu do bazy dany
-
a czym to można zastąpić? no tak samo tylko na końcu mają inne wartości po Set@ i się zmieniają co dane zapytanie do bazy
-
A co może być źle zrobione bo np. strona mi normalnie odczytuje wartości
-
Witam mam problem ponieważ nie mam żadnych błędów tylko jak skript pobierze dane z bazy to wyświetlają się tak: Skrypt: script options: $ init com.mysql.jdbc.Driver $ db url jdbc:mysql://mysql.--------------:3306/------------- $ db username ---------- $ db password ----------- command /statystyki [<text>]: trigger: send title "&9&lBaza danych" with subtitle "&f&lTrwa pobieranie informacji" for 3 seconds set {_uuid} to placeholder "player_uuid" set {_name} to result of query "SELECT `Name` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_bed} to result of query "SELECT `Bed` FROM `staty` WHERE `UUID` = '%{_uuid}%'" set {_godziny} to result of query "SELECT `Time` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_diax} to result of query "SELECT `Diax` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_smierci} to result of query "SELECT `Death` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_bloki} to result of query "SELECT `Block` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_status} to result of query "SELECT `Status` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_firstjoin} to result of query "SELECT `FirstTime` FROM `staty` WHERE `UUID` = '%{_uuid}%';" set {_onlinedate} to result of query "SELECT `OnlineDate` FROM `staty` WHERE `UUID` = '%{_uuid}%';" if {_status} is "Offline": set {_status} to "Offline (%{_onlinedate}%)" send title "&9&lBaza danych" with subtitle "&f&lPobrano pomyślnie" for 3 seconds open chest with 3 rows named "&9&lStatystyki gracza &9&l&n%player%" to player wait 2 tick format slot 10 of player with 1 of skull of player named "&f&lNick: &9&l%{_name}%" with lore "&f&lUUID: &9&l%{_uuid}%" to close format slot 11 of player with 1 of clock named "&f&lCzas gry: &9&l%{_godziny}%h" to close format slot 12 of player with 1 of diamond ore named "&f&lWykopane diaxy: &9&l%{_diax}%" to close format slot 13 of player with 1 of leather helmet named "&f&lSmierci: &9&l%{_smierci}%" to close format slot 14 of player with 1 of red bed named "&f&lPrzespane noce: &9&l%{_bed}%" to close format slot 15 of player with 1 of wooden pickaxe named "&f&lInterakcje z blokami: &9&l%{_bloki}%" to close format slot 16 of player with 1 of paper named "&f&lPierwsze dolaczenie: &9&l%{_firstjoin}%" to close Informacje o serwerze i dodatkach:
-
Problem z wykonywaniem czynności
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
a jaka jest różnica? -
Problem z wykonywaniem czynności
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
@Kormic No zrobiłem to trochę inaczej niż miało być początkowo ale i tak dziękuje tobie za pomoc. script options: $ init com.mysql.jdbc.Driver $ db url jdbc:mysql://mysql.---------:3306/--------- $ db username --------- $ db password --------- variables: {statystykistrona.%player%} = true on first join: set {statystykistrona.%player%} to true on join: if {statystykistrona.%player%} is true: set {_uuid} to "%placeholder ""player_uuid"" from player%" set {_name} to "%placeholder ""player_name"" from player%" set {_smierci} to "%placeholder ""statistic_deaths"" from player%" set {_diax} to "%placeholder ""statistic_mine_block:diamond_ore"" from player%" set {_bed} to "%placeholder ""statistic_sleep_in_bed"" from player%" set {_godziny} to "%placeholder ""statistic_hours_played"" from player%" set {_bloki} to "%placeholder ""statistic_mine_block"" from player%" set {_firstjoin} to "%placeholder ""player_first_join_date"" from player%" update "INSERT INTO staty (UUID, Name, Bed, Time, Diax, Death, Block, Status, FirstTime) VALUES ('%{_uuid}%', '%{_name}%', '%{_bed}%', '%{_godziny}%', '%{_diax}%', '%{_smierci}%', '%{_bloki}%', 'Online', '%{_firstjoin}%');" set {statystykistrona.%player%} to false else: set {_uuid} to "%placeholder ""player_uuid"" from player%" set {_smierci} to "%placeholder ""statistic_deaths"" from player%" set {_diax} to "%placeholder ""statistic_mine_block:diamond_ore"" from player%" set {_bed} to "%placeholder ""statistic_sleep_in_bed"" from player%" set {_godziny} to "%placeholder ""statistic_hours_played"" from player%" set {_bloki} to "%placeholder ""statistic_mine_block"" from player%" update "UPDATE `staty` SET `Bed` = '%{_bed}%', `Diax` = '%{_diax}%', `Death` = '%{_smierci}%', `Block` = '%{_bloki}%', `Time` = '%{_godziny}%', `Status` = 'Online' WHERE `staty`.`UUID` = '%{_uuid}%';" on quit: if {statystykistrona.%player%} is false: set {_uuid} to "%placeholder ""player_uuid"" from player%" update "UPDATE `staty` SET `Status` = 'Offline' WHERE `staty`.`UUID` = '%{_uuid}%';" I również udostępniam jakby ktoś chciał zrobić coś podobnego. Temat do zamknięcia -
Problem z wykonywaniem czynności
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
A jest jakiś sposób aby zrobić to na skript-placeholders? Robię statystyki graczy na stronie. Po prostu chcę aby statystyki graczy się odświeżały za 5 minut. -
Problem z wykonywaniem czynności
tromek1337 odpowiedział(a) na tromek1337 pytanie w Pytania i problemy
Dodatek to jest Ersatz Wszystkie informacje: Błędy z konsoli: [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 9: set {_uuid} to placeholder "player_uuid"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 10: set {_name} to placeholder "player_name"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 11: set {_smierci} to placeholder "statistic_deaths"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 12: set {_diax} to placeholder "statistic_mine_block:diamond_ore"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 13: set {_bed} to placeholder "statistic_sleep_in_bed"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 14: set {_godziny} to placeholder "statistic_hours_played"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 15: set {_bloki} to placeholder "statistic_mine_block"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 16: set {_firstjoin} to placeholder "player_first_join_date"') [22:47:58 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (staty.sk, line 17: set {_status} to placeholder "player_online"') -
Witam czy można zrobić aby wykonywało to dla każdego gracza. every 5 minutes: loop all players: set {_uuid} to placeholder "player_uuid" set {_name} to placeholder "player_name" set {_smierci} to placeholder "statistic_deaths" set {_diax} to placeholder "statistic_mine_block:diamond_ore" set {_bed} to placeholder "statistic_sleep_in_bed" set {_godziny} to placeholder "statistic_hours_played" set {_bloki} to placeholder "statistic_mine_block" set {_firstjoin} to placeholder "player_first_join_date" set {_status} to placeholder "player_online" update "INSERT INTO staty (UUID, Name, Bed, Time, Diax, Death, Block, Status, FirstTime) VALUES ('%{_uuid}%', '%{_name}%', '%{_bed}%', '%{_godziny}%', '%{_diax}%', '%{_smierci}%', '%{_bloki}%', '%{_status}%', '%{_firstjoin}%');"
-
ok dzięki później to sprawdzę
-
mam pobrane i nie mam żadnych błędów ale mogę pobierać kita w nieskończoność nie ma tego limitu 5h
-
gdzie tu może być błąd ? zero błędów a nie działa
