Skocz do zawartości

the_kakus

Użytkownik
  • Ilość zawartości

    204
  • Rejestracja

  • Ostatnia wizyta

Treść opublikowana przez the_kakus

  1. @Kormic(zapominam klikać "Cytuj")
  2. i gdzie to dopisać, nad tym czy pod tym?
  3. powiem ci, ze zrobilem tak jak napisales i dalej bez zmian # wcześniejszy kod send "1 %{_item}%" set {_b::*} to ("%type of event-slot%") split at "block" set {_item} to "%{_b::*}%" parsed as item send "2 %{_item}%" # dalszy kod https://imgur.com/a/lRfj7Oc
  4. moj kod to ogolnie kod na sklep tylko ze przez ten caly "block" ten sklep mi sie troche buguje potrzebuje jedynie ogarnac zeby samo usuwało słowo block jezeli takowy item posiada to słowo on inventory click: name of player's current inventory = "&8» &7&lSKLEP - BLOKI ¹" or "&8» &7&lSKLEP - BLOKI ²" or "&8» &7&lSKLEP - FARMA, JEDZENIE ¹" or "&8» &7&lSKLEP - FARMA, JEDZENIE ²" or "&8» &7&lSKLEP - LOOT Z MOBÓW" or "&8» &7&lSKLEP - SUROWCE" or "&8» &7&lSKLEP - ENCZANTY" or "&8» &7&lSKLEP - EFEKTY" or "&8» &7&lSKLEP - RÓŻNE" clicked inventory is not player's inventory cancel event if clicked slot is 45 or 53: execute player command "/sklep" if clicked slot is not 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 17 or 18 or 26 or 27 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or 42 or 43 or 44 or 46 or 48 or 49 or 50 or 52: clear {_item} and {_buy1} and {_buy64} and {_sell1} and {_sell64} set {_item} to event-slot set {_buy1} to (substring of (line 2 of event-slot's lore) from characters 18 to (length of (line 2 of event-slot's lore) - 5)) parsed as integer set {_buy64} to (substring of (line 3 of event-slot's lore) from characters 19 to (length of (line 3 of event-slot's lore) - 5)) parsed as integer set {_sell1} to (substring of (line 4 of event-slot's lore) from characters 23 to (length of (line 4 of event-slot's lore) - 5)) parsed as integer set {_sell64} to (substring of (line 5 of event-slot's lore) from characters 24 to (length of (line 5 of event-slot's lore) - 5)) parsed as integer if (line 2 of event-slot's lore) is "": clear {_buy1} if (line 3 of event-slot's lore) is "": clear {_buy64} if (line 4 of event-slot's lore) is "": clear {_sell1} if (line 5 of event-slot's lore) is "": clear {_sell64} wait 2 ticks set {_xd} to event-slot send "1 %{_xd}%" if "%{_xd}%" ends with "block": set {_xd} to event-slot send "2 %{_xd}%" if clicked type is left mouse button: if {_buy1} is not set: stop else: if ({_buy1}) = {money.%player%}: play sound "minecraft:entity.experience_orb.pickup" to player remove ({_buy1}) from {money.%player%} give 1 of {_item} to player send "&8» &aKupiłeś &b&o1 &r&b%{_item}%&a! &8&o[&2&o-%{_buy1}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop if ({_buy1}) < {money.%player%}: play sound "minecraft:entity.experience_orb.pickup" to player remove ({_buy1}) from {money.%player%} give 1 of {_item} to player send "&8» &aKupiłeś &b&o1 &r&b%{_item}%&a! &8&o[&2&o-%{_buy1}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop if ({_buy1}) > {money.%player%}: play sound "minecraft:entity.blaze.hurt" to player send "&8» &cNie stać cię na ten zakup!" stop if clicked type is left mouse button with shift: if {_buy64} is not set: stop else: if ({_buy64}) = {money.%player%}: play sound "minecraft:entity.experience_orb.pickup" to player remove ({_buy64}) from {money.%player%} give 64 of {_item} to player send "&8» &aKupiłeś &b&o64 &r&b%{_item}%&a! &8&o[&2&o-%{_buy64}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop if ({_buy64}) < {money.%player%}: play sound "minecraft:entity.experience_orb.pickup" to player remove ({_buy64}) from {money.%player%} give 64 of {_item} to player send "&8» &aKupiłeś &b&o64 &r&b%{_item}%&a! &8&o[&2&o-%{_buy64}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop if ({_buy64}) > {money.%player%}: play sound "minecraft:entity.blaze.hurt" to player send "&8» &cNie stać cię na ten zakup!" stop if clicked type is right mouse button: if {_sell1} is not set: stop else: if player has 1 of {_item}: play sound "minecraft:entity.experience_orb.pickup" to player add ({_sell1}) to {money.%player%} remove 1 of {_item} from player send "&8» &aSprzedałeś &b&o1 &r&b%{_item}%&a! &8&o[&2&o+%{_sell1}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop else: play sound "minecraft:entity.blaze.hurt" to player send "&8» &cNie masz tylu przedmiotów!" stop if clicked type is right mouse button with shift: if {_sell64} is not set: stop else: if player has 64 of {_item}: play sound "minecraft:entity.experience_orb.pickup" to player add ({_sell64}) to {money.%player%} remove 64 of {_item} from player send "&8» &aSprzedałeś &b&o64 &r&b%{_item}%&a! &8&o[&2&o+%{_sell64}%&7&oPLN&8&o]" set slot 49 of player's current inventory to paper of infinity named " &8» &6STAN KONTA &8• &2%{money.%player%}%&7PLN &8« " with lore "", "&aKup &21x &r&8• &7&oLPM", "&aKup &264x &r&8• &7&oLPM + Shift", "&cSprzedaj &41x &r&8• &7&oPPM", "&cSprzedaj &464x &r&8• &7&oPPM + Shift", "" stop else: play sound "minecraft:entity.blaze.hurt" to player send "&8» &cNie masz tylu przedmiotów!" stop
  5. @Kormic
  6. tez probowalem substringi ale nie umialem nic wykombinowac, wymyslił byś cos?
  7. set {_xd} to event-slot send "1 %{_xd}%" if "%{_xd}%" ends with " block": remove " block" from {_xd} send "2 %{_xd}%" zrobilem cos takiego (te sendy to na test są tylko) i dalej nie dziala
  8. siema, potrzebuje czegos aby wykrywalo czy klikniety w gui item ma w koncówce słowo "block" i zeby je usunelo i ustawilo nazwe itemu bez "block" do zmiennej np. jezeli klikam w cobblestone to zmienna sie normalnie ustawia na cobblestone block, a ja chcialbym zeby skrypt wykryl ze ten item ma w nazwie "block" i zeby go usunelo
  9. the_kakus

    guiiiii

    bez parse'owania nadal wyskakuje <none> dobra, jakos to ogarnąlem i dziala jak powinno
  10. the_kakus

    guiiiii

    set slot 10 of player's current inventory to 1 cobblestone with lore "", "&aKup &21x &r&8• &61&7PLN", "&aKup &264x &r&8• &62&7PLN", "&cSprzedaj &41x &r&8• &63&7PLN", "&cSprzedaj &464x &r&8• &64&7PLN", "" dokladnie brzmi to tak: on inventory click: name of player's current inventory = "&8» &7&lSKLEP - BLOKI ¹" clicked inventory is not player's inventory cancel event if clicked slot is 51: execute player command "/sklep bloki2" if clicked slot is 10: set {_buy1} to (substring of (line 2 of event-slot's lore) from characters 20 to (length of (line 2 of event-slot's lore) - 5)) parsed as integer set {_buy64} to (substring of (line 3 of clicked slot's lore) from characters 20 to (length of (line 3 of clicked slot's lore) - 5)) parsed as integer set {_sell1} to (substring of (line 4 of clicked slot's lore) from characters 25 to (length of (line 4 of clicked slot's lore) - 5)) parsed as integer set {_sell64} to (substring of (line 5 of clicked slot's lore) from characters 25 to (length of (line 5 of clicked slot's lore) - 5)) parsed as integer send "1x%{_buy1}% 64x%{_buy64}% - 1x%{_sell1}% 64x%{_sell64}%" i event-slot's nie dziala i clicked slot's nie dziala
  11. the_kakus

    guiiiii

    znaczy ta wiadomosc na czacie to do testów jest bo potem chce to wykorzystac do ekonomi ale to mniejsza https://imgur.com/a/koi7Rcl
  12. the_kakus

    guiiiii

    on inventory click: name of player's current inventory = "&8» &7&lSKLEP - BLOKI ¹" clicked inventory is not player's inventory cancel event if clicked slot is 51: execute player command "/sklep bloki2" if clicked slot is 10: set {_buy1} to (substring of (line 2 of clicked slot's lore) from characters 20 to (length of (line 2 of player's clicked slot's lore) - 5)) parsed as integer set {_buy64} to (substring of (line 3 of clicked slot's lore) from characters 20 to (length of (line 3 of clicked slot's lore) - 5)) parsed as integer set {_sell1} to (substring of (line 4 of clicked slot's lore) from characters 25 to (length of (line 4 of clicked slot's lore) - 5)) parsed as integer set {_sell64} to (substring of (line 5 of clicked slot's lore) from characters 25 to (length of (line 5 of clicked slot's lore) - 5)) parsed as integer send "1x%{_buy1}% 64x%{_buy64}% - 1x%{_sell1}% 64x%{_sell64}%" siema, mam cos takiego i chcialbym zeby te zmienne ustawialy sie na odpowiednią wartość z lore kliknietego itemu z gui, lecz no nie dziala mi (zadnych errorów przy reloadzie)
  13. the_kakus

    placeholder

    dobra, nie bylo pytania
  14. the_kakus

    placeholder

    on placeholderapi request for prefix "skript": if placeholder is "skript_czaszka": if {czaszka.%player%} is 0: stop else: set result to "%{czaszka.%player%}%" siema, jak napisac zeby na tabie pokazywalo statystyke tylko wtedy gdy jest ona inna niz 0?
  15. nie bylo zadnych bledow, iii to if atacker is a player zadzialalo wiec dziekuje
  16. on death: create lightning effect at event-location drop player's head if attacker is player: if {czaszka.%victim%} is 1 or 2 or 3: set {czaszka.%victim%} to 0 add 50 to {money.%attacker%} send "&8» &f%attacker% &7dostaje &7&nnagrodę&r&7 w wysokości &250 PLN &7za &2zneutralizowanie &7agresywnego gracza &f%victim%&7." to all players stop if {czaszka.%victim%} is 0: if {czaszka.%attacker%} is 0: send "&8» &f%attacker% &7dostaje &7&nkarę grzywny&r&7 w wysokości &c100 PLN &7oraz &cczaszkę &7za &7&nzabójstwo&r&7 pokojowego gracza &f%victim%&7." to all players set {czaszka.%attacker%} to 3 remove 100 from {money.%attacker%} wait 1 second send title "&7☠" to attacker for 10 seconds stop if {czaszka.%attacker%} is 1 or 2 or 3: send "&8» &f%attacker% &7posiadał już &cczaszkę&7, a więc dostaje &7&nbana&r&7 na &c5 minut &7oraz &7&nkarę grzywny&r&7 w wysokości &c250 PLN &7za &7&nzabójstwo&r&7 pokojowego gracza &f%victim%&7." to all players set {czaszka.%attacker%} to 3 remove 250 from {money.%attacker%} wait 30 tick set {bantime.%attacker%} to 300 kick attacker due to "&4&lZostałeś skazany! &cWróć za &c&o&n5 minut." loop {bantime.%attacker%} times: remove 1 from {bantime.%attacker%} wait 1 seconds stop wszystko spoko dziala tylko te "if attacker is player" nie dziala, a gdy daje np. if attacker is not monster to dziala, da sie zrobic jakos tak zeby to if attacker is player dzialalo?
  17. jeszcze jedno mma pytanko, bo placeholderapi nie chce mi wspolpracowac ze skriptem na 1.16.5, wpisuje /papi ecloud download Skript i nie instaluje sie nic
  18. tam napisales ze da sie to robic a tutaj mowisz ze sie nie da, to jak jest w koncu?
  19. z tego co widze w configu to da sie tylko header i footer konfigurowac, a ja bym chcial zeby zrobic wielki tab (jak na serwerach 1.8) i tam te topki powpisywac
  20. istnieje mozliwosc zrobienia topki w skripcie i zeby ona wyswietlala sie na tabie?
  21. the_kakus

    problemik

    wymyslilem cos takiego zeby codziennie o 24 usuwal sie 1pkt ze zmiennej jezeli gracz ma tą zmienną ustawioną powyzej 0 lecz niestety nie dziala i nie mam juz pomyslow na to, pomoze ktos? every 1 second: (now formatted as "HH:mm:ss") is "23:59:59" loop all offline players: if {czaszka.%loop-player%} is greater than 0: remove 1 from {czaszka.%loop-player%}
  22. okej, {sklep::%player%} ta zmienna zadziala, dziekuje slicznie
  23. chce zeby klikniety item pokazal sie w innym gui
×
×
  • Dodaj nową pozycję...