Skocz do zawartości

xXx_Skrypter_xXx

Użytkownik
  • Ilość zawartości

    212
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    3

Treść opublikowana przez xXx_Skrypter_xXx

  1. Na bossbarze jest teraz odliczanie, ale coś jest nie tak, ponieważ bossbar odświeża się co 2 sekundy, gdy zleci poniżej zera to odlicza się od 10 tak do 8 i się usuwa. I w dodatku mam jeden błąd (null can't have anything removed from it (test.sk, line 34: remove ({_percent} / 5) from value of bossbar "haste.%player%"") Spigot-1.16.4 Skript 2.5.3 Addony: SkStuff,TuSKe,skRayFall,SkQuery,SkExtras,Skellett,skDragon,Repuska,MundoSK
  2. Witam, czy byłby ktoś w stanie poprawić ten oto skrypt? Chciałbym, żeby bossbar pojawiał się na 5 sekund po rozwaleniu danego bloku i żeby na tym bossbarze odliczał się czas 5 sekund. Mam taki skrypt: (Wszystko tutaj działa tylko,że bossbar nie updatuje się i cały czas stoi na 5 sekundach.) every 1 second in "world": loop all players: if {haste::%loop-player%} is less than or equal to 5: remove 1 from {haste::%loop-player%} if {haste::%loop-player%} is 0: set {haste::%loop-player%} to 10 destroy bossbar "%{_haste}%" stop if {haste::%loop-player%} is greater than or equal to 1: if {haste::%loop-player%} is less than or equal to 5: apply haste 1 to loop-player for 1 second on break coal block: cancel event set event-block to air chance of 30%: set {haste::%player%} to 5 send title "&c&lMAGICZNY BLOK" with subtitle "&fWylosowano: &3Haste I &7na 5 sekund!" to player for 1 second set {_percent} to (1 / 5) * 100 set {_} to random integer between 1 and 999999 create bossbar title "&b&lHaste I &7[&e%{haste::%player%}% &6sekund&7]" and id "%{_haste}%" for player with progress {_percent}
  3. xXx_Skrypter_xXx

    Bruk

    variables: {bruk::%player%} = 0 {netherrack::%player%} = 0 command /bruk [<text>]: if arg-1 is off: set {bruk::%player%} to 1 send "&cWylaczyles drop bruku!" stop if arg-1 is on: set {bruk::%player%} to 0 send "&cWlaczyles drop bruku!" stop command /netherrack [<text>]: if arg-1 is off: set {netherrack::%player%} to 1 send "&cWylaczyles drop netherracku!" stop if arg-1 is on: set {netherrack::%player%} to 0 send "&cWlaczyles drop netherracku!" stop on mine of cobblestone: if {bruk::%player%} = 1: cancel event set event-block to type of air on mine of netherrack: if {netherrack::%player%} = 1: cancel event set event-block to type of air Wytabuj to sobie
  4. xXx_Skrypter_xXx

    Frozen player

    On shoot: If shooter's tool is bow named "&atest": Set {_zamrozenie} to 1 If damage was caused by projectile: If projectile is a arrow: If shooter is a attacker: If {_zamrozenie} is 1: Set {_zamrozenie} to 2 Set walk speed of victim to 0 Wait 2 second Set walk speed of victim to 1 Delete {_zamrozenie} Nie testowane
  5. on consume golden apple: add 1 golden apple to the player's inventory
  6. xXx_Skrypter_xXx

    Frozen player

    Nie testowane, pisane z telefonu On damage: If attacker's tool is bow named "&atest": If damage was caused by projectile: If projectile is a arrow: If shooter is a attacker: Set walk speed of victim to 0 Wait 2 second Set walk speed of victim to 1 Wytabuj to sobie
  7. Teraz po przeładowaniu skryptów ,skript wyrzucił 721 błędów. Przy okazji musiałem wyrzucić wszystkie dodatki do skripta bo i z nimi było to samo co z Tuske @Kormic Na stronie skripta jest napisane, że ta wersja obsługuje tylko ostatnie patche od danej wersji, a ostatni patch do 1.9 to jest 1.9.4 nie wiem, ale może w tym rzecz.
  8. W konsoli Skript wyrzuca mi błąd: [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! [Skript] Severe Error: [22:58:29] [Server thread/ERROR]: #!#! TuSKe's class com.github.tukenuke.tuske.effects.EffMakeDrop generated an exception while loading [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript. [22:58:29] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [22:58:29] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [22:58:29] [Server thread/ERROR]: #!#! Following plugins are probably related to this error in some way: [22:58:29] [Server thread/ERROR]: #!#! TuSKe (github.com/Tuke-Nuke/TuSKe) [22:58:29] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [22:58:29] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [22:58:29] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it. [22:58:29] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [22:58:29] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Stack trace: [22:58:29] [Server thread/ERROR]: #!#! java.lang.NullPointerException [22:58:29] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.effects.EffMakeDrop.<clinit>(EffMakeDrop.java:25) [22:58:29] [Server thread/ERROR]: #!#! at java.lang.Class.forName0(Native Method) [22:58:29] [Server thread/ERROR]: #!#! at java.lang.Class.forName(Unknown Source) [22:58:29] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptAddon.loadClasses(SkriptAddon.java:108) [22:58:29] [Server thread/ERROR]: #!#! at com.github.tukenuke.tuske.TuSKe.onEnable(TuSKe.java:100) [22:58:29] [Server thread/ERROR]: #!#! at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [22:58:29] [Server thread/ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [22:58:29] [Server thread/ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [22:58:29] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [22:58:29] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [22:58:29] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:411) [22:58:29] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:376) [22:58:29] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [22:58:29] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:269) [22:58:29] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [22:58:29] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Unknown Source) [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Version Information: [22:58:29] [Server thread/ERROR]: #!#! Skript: 2.4.1 (latest) [22:58:29] [Server thread/ERROR]: #!#! Flavor: skriptlang-github [22:58:29] [Server thread/ERROR]: #!#! Date: 2019-12-22 [22:58:29] [Server thread/ERROR]: #!#! Bukkit: 1.9.2-R0.1-SNAPSHOT [22:58:29] [Server thread/ERROR]: #!#! Minecraft: 1.9.2 [22:58:29] [Server thread/ERROR]: #!#! Java: 1.8.0_261 (Java HotSpot(TM) 64-Bit Server VM 25.261-b12) [22:58:29] [Server thread/ERROR]: #!#! OS: Windows 10 amd64 10.0 [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Server platform: Spigot [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Current node: null [22:58:29] [Server thread/ERROR]: #!#! Current item: null [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Thread: Server thread [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! Language: english [22:58:29] [Server thread/ERROR]: #!#! Link parse mode: DISABLED [22:58:29] [Server thread/ERROR]: #!#! [22:58:29] [Server thread/ERROR]: #!#! End of Error. [22:58:29] [Server thread/ERROR]: #!#!
  9. Po wgraniu nowej wersji skripta, skrypty nie wywalają błędów, ale żaden nie działa Może jest potrzebny jakiś dodatek do skripta?
  10. U mni U mnie zupełnie nic to nie zmienia, testowałem miecz z lore i bez ,ale damage się nie zmienia. Dodam, że używam wersji skrypta 2.2-dev13 , wersja serwera spigot 1.9.2
  11. Nie ma żadnych błędów, działa, ale znowu tylko gdy jest w pierwszej linijce lore.
  12. Mógłbyś pokazać na moim kodzie jakbyś to zrobił? Bo nie za bardzo wiem jak to zrobić. Byłbym wdzięczny
  13. Czy wie ktoś może dlaczego skrypt działa tylko gdy podana fraza jest w 1 linijce lore, inaczej damage nie zmienia się. on damage: set {_l} to uncoloured lore of attacker's tool if "%{_l}%" contains "Srednie obrazenia: ": replace all "Srednie obrazenia: " with "" in {_l} replace all "%%" with "" in {_l} set {_lore::*} to {_l} set {_dodatdmg} to "%{_lore::*}%" parsed as integer set {_dmg3} to damage * ({_dodatdmg} / 100) set damage to damage + {_dmg3} Gdy dodam np. linijke przerwy lub jakiś tekst przed "Srednie obrazenia: ...% " to damage nie zmienia się a powinien być o podany procent większy. Proszę o pomoc.
  14. Próbowałem z twoim kodem i dalej to samo.. zrobiłem też z replace ale dalej do nazwy się dodaje to [+1] Kod: if name of player's tool contains "&4[&c+1&4]" or "&4[&c+2&4]" or "&4[&c+3&4]" or "&4[&c+4&4]" or "&4[&c+5&4]" or "&4[&c+6&4]" or "&4[&c+7&4]" or "&4[&c+8&4]": if player have 8 diamond: replace all "&4[&c+1&4]" and "&4[&c+2&4]" and "&4[&c+3&4]" and "&4[&c+4&4]" and "&4[&c+5&4]" and "&4[&c+6&4]" and "&4[&c+7&4]" and "&4[&c+8&4]" with "" in name of player's tool set {ulepszenie::%player's tool%} to {ulepszenie::%player's tool%} parsed as an integer add 1 to {ulepszenie::%player's tool%} set name of player's tool to "%name of player's tool% &4[&c+{ulepszenie::%player's tool%}&4]" set {sharpness::%player%} to enchant level of sharpness of player's tool add 1 to {sharpness::%player%} send "&3[&bMagiczne Kowadlo&3] &fPomyslnie ulepszyles swoj miecz na &4[&c+%{ulepszenie::%player's tool%}%&4]&f!" to player execute console command "(((kowal))) %player% sharpness %{sharpness::%player%}%" remove 8 of diamond from player's inventory stop else: send "&3[&bMagiczne Kowadlo&3] &fNie posiadasz &a8 diamentow&f!" to player Gdy próbuje ulepszyć na +2 i wyżej na chatcie jest napisane, że ulepszono na +<none> może problem jest też w tej zmiennej {ulepszenie::%player's tool%} Skrypt nie wywala żadnych błędów
  15. Pierwsze ulepszenie działa tak jak chciałem. Teraz przy kolejnych ulepszeniach na chatcie pisze ulepszono przedmiot na +<none> oraz dochodzi kolejne [+1] i tak w kółko Kod: on inventory click: if "%inventory name of player's current inventory%" is "&8Menu: Magiczne Kowadlo": cancel event if clicked inventory is not player's inventory: if "%clicked slot%" is "10": if player's tool is {@miecze}: if name of player's tool does not contain uncolored "[+1]" or uncolored "[+2]" or uncolored "[+3]" or uncolored "[+4]" or uncolored "[+5]" or uncolored "[+6]" or uncolored "[+7]" or uncolored "[+8]": if player have 8 diamond: set {ulepszenie::%player's tool%} to 1 set name of player's tool to "%name of player's tool% &4[&c+%{ulepszenie::%player's tool%}%&4]" set {sharpness::%player%} to enchant level of sharpness of player's tool add 1 to {sharpness::%player%} send "&3[&bMagiczne Kowadlo&3] &fPomyslnie ulepszyles swoj miecz na &4[&c+%{ulepszenie::%player's tool%}%&4]&f!" to player execute console command "(((kowal))) %player% sharpness %{sharpness::%player%}%" remove 8 of diamond from player's inventory stop else: send "&3[&bMagiczne Kowadlo&3] &fNie posiadasz &a8 diamentow&f!" to player if name of player's tool contain uncoloured "[+1]" or uncoloured "[+2]" or uncoloured "[+3]" or uncoloured "[+4]" or uncoloured "[+5]" or uncoloured "[+6]" or uncoloured "[+7]" or uncoloured "[+8]": if player have 8 diamond: set {ulepszenie::%player's tool%} to {ulepszenie::%player's tool%} parsed as an integer add 1 to {ulepszenie::%player's tool%} set name of player's tool to "%name of player's tool% &4[&c+{ulepszenie::%player's tool%}&4]" set {sharpness::%player%} to enchant level of sharpness of player's tool add 1 to {sharpness::%player%} send "&3[&bMagiczne Kowadlo&3] &fPomyslnie ulepszyles swoj miecz na &4[&c+%{ulepszenie::%player's tool%}%&4]&f!" to player execute console command "(((kowal))) %player% sharpness %{sharpness::%player%}%" remove 8 of diamond from player's inventory stop
  16. on inventory click: if "%inventory name of player's current inventory%" is "&8Menu: Magiczne Kowadlo": cancel event if clicked inventory is not player's inventory: if "%clicked slot%" is "10": if player's tool is {@miecze}: if name of player's tool does not contain "[+1]" or "[+2]" or "[+3]" or "[+4]" or "[+5]" or "[+6]" or "[+7]" or "[+8]" or "[+9]": if player have 8 diamond: set {ulepszenie::%player's tool%} to 1 set name of player's tool to "%name of player's tool% &4[&c+{ulepszenie::%player's tool%}&4]" set {sharpness::%player%} to enchant level of sharpness of player's tool add 1 to {sharpness::%player%} send "&3[&bMagiczne Kowadlo&3] &fPomyslnie ulepszyles swoj miecz na &4[&c+1&4]&f!" to player execute console command "(((kowal))) %player% sharpness %{sharpness::%player%}%" remove 8 of diamond from player's inventory stop else: send "&3[&bMagiczne Kowadlo&3] &fNie posiadasz &a8 diamentow&f!" to player if name of player's tool contain "[+1]" or "[+2]" or "[+3]" or "[+4]" or "[+5]" or "[+6]" or "[+7]" or "[+8]": if player have 8 diamond: set name of player's tool to "%name of player's tool% &4[&c+({ulepszenie::%player's tool%} + 1)&4]" set {sharpness::%player%} to enchant level of sharpness of player's tool add 1 to {sharpness::%player%} send "&3[&bMagiczne Kowadlo&3] &fPomyslnie ulepszyles swoj miecz na &4[&c+{ulepszenie::%player's tool%}&4]&f!" to player execute console command "(((kowal))) %player% sharpness %{sharpness::%player%}%" remove 8 of diamond from player's inventory stop Jest ktoś w stanie mi pomóc? Chodzi o to, że po kliknięciu w dany slot osoba gdy trzyma wybrany miecz zmieni się jej nazwa na "nazwa itema [+1]" W moim przypadku gdy klikam nie nazwanym mieczem skrypt nie działa a gdy jest juz nazwany to miecz dostaje nazwę "nazwa itema +{ulepszenie::diamond_sword}" przy kolejnym kliknięciu nazwa się podwaja i tak w nieskończoność... Proszę szybko o pomoc jeżeli źle wytłumaczyłem to pisać postaram się lepiej objaśnić.
  17. @PanAnimek @TakiJakTy @notKubaaa Pokaże wam na przykładzie mojego skripta. on inventory click: if "%clicked slot%" is "1": loop all items in player's inventory: if loop-item's name contain "&6Diament &8[&7Zwyczajny&8]": if lore of loop-item contain "&8- &fZwieksza obrazenia o: &b%random number from 1 to 3%%%": if player have 3 of loop-item: remove 3 of loop-item from player's inventory set {_losowe} to random integer between 4 and 6 add 1 diamond named "&6Diament &2[&aRzadki&2]" with lore " ||&7Gdy w plecaku alchemicznym:||&8- &fZwieksza obrazenia o: &b%{_losowe}%%%|| " to the player's inventory broadcast "&c&lAlchemik &7Gracz &a%player% &7wytworzyl &6Diament &2[&aRzadki&2]" broadcast "&8- &fZwieksza obrazenia o: &b%{_losowe}%%%" stop Dajmy na to ze mam 3 diamenty i każdy ma inny lore, chciałbym żeby to lore tak jakby nie brało pod uwagę i brało graczowi po prostu 3 diamenty nazwane "&6Diament &8[&7Zwyczajny&8]" a lore musi być bo potrzebuje je do dalszego kodu. Wyższy kod nie wywala błędu, ale gdy mam 3 diamenty z innym lore to nic się nie dzieje, gdy mam 3 z takim samym to wtedy skrypt śmiga.
  18. Spróbuj tak: chance of 2%: send player title "&8[&9&lCase&8]" with subtitle "&7Wylosowales: &4Hop&0-&4Stick" for 2 seconds add 1 stick of knockback 7 named "&8&l[&4Hop&0-&4Stick&8&l]" to the player's inventory chance of 30%: send player title "&8[&9&lCase&8]" with subtitle "&7Wylosowales: &btrójząb" for 2 seconds add 1 trident of unbreaking 3 and loyalty and mending named "&bTrójząb" to the player's inventory
  19. Witam, czy wie ktoś może jak usunąć graczu 3 diamenty z ekwipunku przy czym każdy diament nazywa się tak samo, ale ma inne lore? Przykład: on rightclick with diamond: If player have 3 diamond named "test" with lore " Test: %random integer between 1 and 3% ": remove 3 diamond named "test" with lore " Test: %random integer between 1 and 3% " from player's inventory add 1 diamond named "elo" to the player's inventory stop Dajmy na to, że w ekwipunku mam 3 diamenty i każdy ma inną cyfrę w lore od 1 do 3. Po kliknięciu w diament powinno sprawdzić czy gracz ma te 3 diamenty z innym lore, zabrać je z inventory i dać diament nazwany "test". W skrypcie wywala błąd %random integer between 1 and 3% is not a valid item data Jeżeli ktoś czegoś nie rozumie to pisać spróbuje to jeszcze jakoś inaczej wytłumaczyć.
  20. variables: {sekundy::sklepikarz} = 60 {minuty::sklepikarz} = 59 {godziny::sklepikarz} = 23 command /sklepik: trigger: wait 2 tick open chest with 3 row named "&8Sklepik" to player wait 2 tick set player's current inventory's slot 9 to enchanted book named "&4Sklep 1h" with lore "||&fReset nastapi za:||&2%{minuty2::sklepikarz}% &amin. &2%{sekundy2::sklepikarz}% &asek.|| ||" set player's current inventory's slot 12 to clock named "&6Przedmioty Okolicznosciowe" with lore "&ePrzedmioty, ktore zmieniaja sie co 1h!" set player's current inventory's slot 14 to emerald named "&2Sklep 24h" with lore "&aPrzedmioty, ktore zmieniaja sie co 24h!" set player's current inventory's slot 17 to enchanted book named "&4Sklep Dzienny" with lore "||&fReset nastapi za:||&2%{godziny::sklepikarz}% &agodz. &2%{minuty::sklepikarz}% &amin. &2%{sekundy::sklepikarz}% &asek.|| ||" Do odliczania czasu używam every 1 sec, tylko gdy mam już to gui otwarte to musze je zamykać i otwierać znowu żeby zaktualizować zmienne.
  21. xXx_Skrypter_xXx

    Item

    command /test: trigger: if event-player is wearing diamond chestplate named "test": send "elo" to player else: send "nie posiadasz klaty" to player stop
  22. Witam, wie ktoś może jak zrobić, aby zmienna w gui refreshowała się np. co 5 sekund bez wychodzenia z gui?
  23. command /wymiana: trigger: if player have 2 emerald: remove 2 emerald from player's inventory add 100 to {coins.%player%} Powinno działać.
  24. command /alert [<player>] [<text>]: trigger: if arg-1 is set: if arg-2 is set: send arg-1 title "&4&lALERT" with subtitle "&6> &e%arg-2% &6<" for 5 second else: send "&cPodaj tresc wiadomosci!" to player else: send "&cPodaj nick gracza!" to player
  25. Juz to poprawilem. Sprawdz kod jeszcze raz.
×
×
  • Dodaj nową pozycję...