-
Ilość zawartości
999 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
23
Treść opublikowana przez Shooterowy
-
Skrypt lub plugin na odbieranie kluczy co 3 dni.
Shooterowy odpowiedział(a) na NAWTER pytanie w Zlecenia
Jakieś szczegóły? Błędy? -
Skrypt lub plugin na odbieranie kluczy co 3 dni.
Shooterowy odpowiedział(a) na NAWTER pytanie w Zlecenia
command /klucz: cooldown: 3 days cooldown message: Klucz możesz odebrać co 3 dni. trigger: execute console command "crates givekey %player% landchest 1" -
Niemożliwe, u mnie można tylko raz. Są 4 opcje: 1. Konflikt zmiennych 2. Nie skopiowałeś całego mojego skryptu 3. Połączyłeś mój i swój skrypt. 4. Mamy różne wersje pluginu/ów
-
command /glosowanie [<text>] [<text>]: trigger: if arg 1 is not set: if player doesn't have permission "glosowanie.glosuj" or "glosowanie.*": send "&cNie masz uprawnień do brania udziału w głosowaniach." stop if {Glosowanie::status} is not set: send "&cAktualnie nie trwa żadne głosowanie." stop send "&7» &aGracz &e%{Glosowanie::tworca}% &awywołał głosowanie." send "&7» &aTreść: &e%{Glosowanie::tresc}%" send "&7» &aCzas na oddanie głosu: &e%{Glosowanie::czas}% &asekund" send "&7»" send " <tooltip:&eKliknij tu aby zagłosować na &aTAK!><run command:/glosuj tak>&e[&aTAK&e] <tooltip:&eKliknij tu aby zagłosować na &cNIE!><run command:/glosuj nie>&e[&cNIE&e]" stop if player doesn't have permission "glosowanie.stworz" or "glosowanie.*": send "&cNie masz uprawnien do stworzenia głosowania." stop if arg 1 is not "anuluj": if arg 1 parsed as integer is not set: send "&cBłąd: &7Poprawne użycie: /glosowanie <czas w sekundach> <treść>" stop else: if {Glosowanie::status} is not set: send "&cAktualnie nie trwa żadne głosowanie." stop send "&cGłosowanie zostało anulowane." to all players clear {Glosowanie::*} execute console command "chat on" stop if arg 2 is not set: send "&cBłąd: &7Poprawne użycie: /glosowanie <czas w sekundach> <treść>" stop if {Glosowanie::status} is set: send "&cPoczekaj na zakończenie poprzedniego głosowania." stop execute console command "chat off" set {Glosowanie::status} to true set {Glosowanie::tresc} to arg 2 set {Glosowanie::tworca} to name of player set {Glosowanie::glosy::tak} to 0 set {Glosowanie::glosy::nie} to 0 set {Glosowanie::czas} to arg 1 parsed as integer send "&7» &aGracz &e%player% &awywołał głosowanie." to all players send "&7» &aTreść: &e%arg 2%" to all players send "&7» &aCzas na oddanie głosu: &e%arg 1% &asekund" to all players send "&7»" send " <tooltip:&eKliknij tu aby zagłosować na &aTAK!><run command:/glosuj tak>&e[&aTAK&e] <tooltip:&eKliknij tu aby zagłosować na &cNIE!><run command:/glosuj nie>&e[&cNIE&e]" to all players while {Glosowanie::status} is true: wait a second remove 1 from {Glosowanie::czas} if {Glosowanie::czas} is 0: send "&8» &7Głosowanie zakończone!" to all players send "&7» &aTreść: &e%arg 2%" to all players if {Glosowanie::glosy::tak} is more than {Glosowanie::glosy::nie}: send "&eZagłosowano na &aTAK!" to all players else if {Glosowanie::glosy::tak} is less than {Glosowanie::glosy::nie}: send "&eZagłosowano na &cNIE!" to all players else: send "&eGłosowanie zakończyło się remisem." to all players send "&eLiczba głosów na tak: %{Glosowanie::glosy::tak}%" to all players send "&eLiczba głosów na nie: %{Glosowanie::glosy::nie}%" to all players send "&eLiczba wszystkich głosujących: %{Glosowanie::glosy::tak}+{Glosowanie::glosy::nie}%" to all players clear {Glosowanie::*} execute console command "chat on" on script unload: if {Glosowanie::status} is true: send "&cGłosowanie zostało anulowane." to all players clear {Glosowanie::*} execute console command "chat on" stop command /glosuj [<text>]: trigger: if player doesn't have permission "glosowanie.glosuj" or "glosowanie.*": send "&cNie masz uprawnień do brania udziału w głosowaniach." stop if arg is not "tak" or "nie": send "&cBłąd: &7Poprawne użycie: /glosuj <tak|nie>" stop if {Glosowanie::status} is not set: send "&cAktualnie nie trwa żadne głosowanie." stop if {Glosowanie::glos::%player%} is set: send "&cOddałeś już swój głos w tym głosowaniu." stop set {Glosowanie::glos::%player%} to true if arg is "tak": send "&eZagłosowałeś na &aTAK&e." add 1 to {Glosowanie::glosy::tak} stop else: send "&eZagłosowałeś na &cNIE&e." add 1 to {Glosowanie::glosy::nie} stop Napisałem od podstaw, może Ci się przyda. Komendy: /glosowanie <czas w sekundach> <treść> (permisja glosowanie.stworz lub glosowanie.*) /glosowanie anuluj (permisja glosowanie.stworz lub glosowanie.*) /glosuj tak / nie (permisja glosowanie.glosuj lub glosowanie.*) - Ta komenda jest wykonywana podczas klikania [TAK] [NIE] na czacie (Głos można oddać tylko raz podczas jednego głosowania i nie można go zmienić) Przeładowanie skryptu powoduje anulowanie trwającego głasowania. //EDIT Jeśli gracz ma uprawnienia do głosowania to może zobaczyć aktualnie trwające głosowanie komendą /glosowanie
-
Coś takiego? command /dw [<text>]: trigger: if {darkweb.%player%} is true: if {cooldawn.%player%} is false: if arg 1 is set: loop all players: send "&7&m--------------------&r" to loop-player if loop-player has permission "admin.see": send "&8[&4Anonim&8] %player%: &4%arg 1%" to loop-player else: send "&8[&4Anonim&8] &4%arg 1%" to loop-player send "&7&m--------------------&r" to loop-player set {cooldawn.%player%} to true wait 5 seconds set {cooldawn.%player%} to false
-
command /test2: trigger: set {_name} to name of player's tool if name of player's tool contains "+1": replace "+1" with "" in {_name} Ale ma usuwać z nazwy przedmiotu czy ze zmiennej? Jeśli z nazwy przedmiotu to command /test2: trigger: set {_name} to name of player's tool if {_name} contains "+1": replace "+1" with "" in {_name} set name of player's tool to "%{_name}%"
-
command /test2: trigger: set {_name} to name of player's tool if name of player's tool contains "+1": replace "+1" with "" in {_name}
-
set {_ilosceme} to rounded down ({_iloscemeprzysobie} / 9) albo set {_ilosceme} to floor({_iloscemeprzysobie} / 9)
-
command /alert [<text>]: permission: alert.use permission message: You cant use this command cooldown: 5 seconds cooldown message: Please wait 5 seconds before using this command again. trigger: if arg-1 is set: broadcast "&4ALERT &8» &c%arg-1% " else: message "Please select a message!" Przykład ze strony spigotmc.org Jeśli chodzi o dodanie cooldownu do już istniejącej komendy to można zrobić to tak: on command "/home": if difference between {cooldown::%player%} and now is smaller than 5 seconds: cancel event send "Ta komenda może być używana co 5 sekund." stop set {cooldown::%player%} to now
-
on enchant: if lore of event-item contains "&cNie można zenchantować": send "&cNie możesz zenchantować tego przedmiotu." cancel event command /kilof: trigger: add diamond pickaxe of efficiency 3 and unbreaking 2 named "&aStartowy kilof" with lore "&cNie można zenchantować" to player on inventory click: if type of clicked inventory is anvil inventory: if index of clicked slot is 2: if lore of slot 0 of current inventory contains "&cNie można zenchantować": if slot 1 of current inventory is diamond pickaxe: if enchantments of slot 1 of current inventory is set: send "&cNie możesz zenchantować tego przedmiotu." cancel event else if slot 1 of current inventory is enchanted book: send "&cNie możesz zenchantować tego przedmiotu." cancel event else if lore of slot 1 of current inventory contains "&cNie można zenchantować": if slot 0 of current inventory is diamond pickaxe: if enchantments of slot 0 of current inventory is set: send "&cNie możesz zenchantować tego przedmiotu." cancel event else: set lore of slot 2 of current inventory to "&cNie można zenchantować"
-
variables: {pickaxe_id} = 0 command /testowa6 [<text>]: trigger: add 1 to {pickaxe_id} give 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&cKilof Górnika" with lore "" and "&cId: &7##&f%{pickaxe_id}%" and "&cDrop: &f50&c%%" and "" and "&4Magiczny Kilof Pradawnego Gornika" to player command /faketestowa6 [<text>]: trigger: give player 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 command /testulepsz [<text>]: trigger: if name of player's tool is not "&cKilof Górnika": send "&cZły kilof" stop if lore of player's tool is not set: send "&cZły kilof" stop set {_drop} to uncoloured line 3 of lore of player's tool replace "Drop: " and "%%" with "" in {_drop} set {_drop} to {_drop} parsed as integer if {_drop} is 110: send "&cMaksymalny poziom." stop if {_drop} is 50: add 5 to {_drop} send "&a100%%" else if {_drop} is more than 50: chance of 50%: add 5 to {_drop} send "&aUlepszyło" else: remove 5 from {_drop} send "&cSpaliło" set line 3 of lore of player's tool to "&cDrop: &f%{_drop}%&c%%"
-
Dodawanie nowej linijki lore
Shooterowy odpowiedział(a) na Karol123123123 pytanie w Pytania i problemy
set line 2 of player's tool lore to "&cKolejne Lore" -
command /v: trigger: execute player command "/vanish" if {vanish::%player%} is not set: set {vanish::%player%} to true send "&cZostałeś odjęty z liczby graczy." else: clear {vanish::%player%} send "&aZostałeś dodany do liczby graczy." command /gracze: trigger: send "&7>> &cGraczy online &7<<" send " &d%number of online players-size of {vanish::*}%" send "&7>> &cGraczy online &7<<"
-
Co ten skrypt ma robić? Dlaczego chcesz z nazwy przedmiotu zrobić liczbę? Jeśli chcesz sprawdzić czy zmienna jest liczbą to: if {sprawdz1::%player%} parsed as number is set:
-
Skryptna dodawanie pieniędzy za granie na serverze (Vault)
Shooterowy odpowiedział(a) na JailowyPL pytanie w Zlecenia
on join: while player is online: wait 5 minutes add 15 to player's money send "&aOtrzymałeś &6$15 &aza spędzenie 5 minut na serwerze." -
Dwa sposoby: 1. on form: if event-block is snow: if block below event-block is gray wool: cancel event 2. Dodanie pozycji położonego bloku wełny do listy i sprawdzanie co 10 sekund czy blok nad wełną to śnieg. on place: if event-block is gray wool: add event-location to {road::*} on break: if event-block is gray wool: if {road::*} contains event-location: remove event-location from {road::*} every 10 seconds: loop {road::*}: if block at loop-value is gray wool: if block above loop-value is snow: delete block above loop-value else: remove loop-value from {road::*}
-
variables: {menu::%player%} = true on join: if {menu::%player%} is true: wait a tick if slot 8 of player is not end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu.": set {_slot} to slot 8 of player set slot 8 of player to end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu." if {_slot} is not air: if player can hold {_slot}: add {_slot} to player else: drop {_slot} at player on drop: if event-item is end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu.": cancel event on inventory click: if clicked slot is 8: if clicked slot is end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu.": cancel event on click: if player's tool is end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu.": execute player command "/menu" on death: if drops contains end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu.": remove end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu." from drops on respawn: if {menu::%player%} is true: wait a tick set slot 8 of player to end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu." command /menus: trigger: if {menu::%player%} is true: set {menu::%player%} to false remove end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu." from player send "&c[Menu] zostało wyłączone. Wpisz komendę /menu aby otworzyć menu." else: set {menu::%player%} to true set {_slot} to slot 8 of player set slot 8 of player to end crystal named "&a&lMenu" with lore "&7Kliknij, aby otworzyć menu." if {_slot} is not air: if player can hold {_slot}: add {_slot} to player else: drop {_slot} at player send "&2[Menu] zostało włączone."
-
Jak zrobić spacje w gui ? gdy najezdzamy na item?
Shooterowy odpowiedział(a) na JaTrollek pytanie w Zlecenia
set slot 0 of current inventory of player to diamond named "&bDiament" with lore "&eCenny", "&cLśniący" and "&dPożądany" -
command /mute [<text>] [<text>]: trigger: set {_gracz} to arg 1 parsed as player set {_split::*} to split arg 2 at "-r " set {_czas} to {_split::1} parsed as timespan set {_powod} to {_split::2} if {_gracz} is not set: send "&6&lMUTE &b> &cPodaj nick gracza, ktorego chcesz zmutowac!" stop if {_czas} is not set: send "&6&lMUTE &b> &cPodaj czas! &8(&fx seconds&8/&fminutes&8/&fdays&8/&fmonths&8)" stop if arg 2 doesn't contain "-r": send "&6&lMUTE &b> &cPodaj powod!" stop broadcast "" broadcast "&6&lMUTE &b> &8%{_gracz}% &czostal zmutowany na &8%{_czas}% &cprzez &8%player% &cza &8%{_powod}%&c!" broadcast "" set {zmutowanie.set::%{_gracz}%} to {_zmutowany} set {zmutowanie.now::%{_gracz}%} to now Przed powodem dopisz -r np. /mute Steve 10 minutes -r Spam
-
options: distance: 3 #Maksymalna odległość od gracza. delay: 5 minutes #Co jaki czas można okradać tego samego gracza. time: 3 #Ile czasu trwa kradzież (w sekundach) loot: 50%% #Ile pieniędzy złodziej może ukraść (Jeśli ilość ma być stała wpisz wartość bez procentów) command /okradnij [<text>]: trigger: if arg is not set: send "&cPoprawne użycie: &7/okradnij <nick>" stop if arg parsed as player is not set: send "&cBłąd: &7Nie ma takiego gracza." stop if arg parsed as player is player: send "&cBłąd: &7Nie możesz okraść samego siebie." stop if distance between player and arg parsed as player is more than {@distance}: send "&cBłąd: Jesteś za daleko." stop if difference between {Theft::%player%::%arg parsed as player%} and now is less than {@delay}: send "&cBłąd: &7Niedawno okradałeś tego gracza. Spróbuj później." stop set {Theft::%player%::%arg parsed as player%} to now send subtitle "&2Okradasz gracza &6%arg%&2." to player send title "&cJesteś okradany!" with subtitle "&9Kucnij, aby się obronić." to arg parsed as player loop {@time}*5 times: wait 4 ticks if arg parsed as player is sneaking: send subtitle "&cKradzież nieudana." to player send subtitle "&aUniknąłeś kradzieży." to arg parsed as player stop set {_money} to money of arg parsed as player replace "$" with "" in {_money} set {_money} to {_money} parsed as number if "{@loot}" contains "%%": set {_perc} to "{@loot}" replace "%%" with "" in {_perc} set {_perc} to {_perc} parsed as number set {_loot} to {_money}*{_perc}/100 else: set {_loot} to "{@loot}" parsed as number if {_money} is less than {_loot}: set {_loot} to {_money} add {_loot} to player's money remove {_loot} from money of arg parsed as player send subtitle "&aKradzież udana." to player send subtitle "&cOkradziono Cię." to arg parsed as player
-
on pick up: if event-player is op: stop if event-player has permission "*": stop if {pickup::%event-player%} is not set: set {pickup::%event-player%} to now add 3 seconds to {pickup::%event-player%} set {_i} to "%type of event-item%" replace all " " with "_" in {_i} if event-player has permission "blacklist.%{_i}%": cancel event if difference between {pickup::%event-player%} and now is more than or equal to 3 seconds: send "&cNie możesz podnieść tego przedmiotu." to event-player set {pickup::%event-player%} to now on tool change: if player is op: stop if player has permission "*": stop set {_i} to "%type of new tool%" replace all " " with "_" in {_i} if player has permission "blacklist.%{_i}%": drop player's tool above player set player's tool to air send "&cNie możesz uzywać tego przedmiotu." command /bl: trigger: set {_i} to "%type of player's tool%" replace all " " with "_" in {_i} send "blacklist.%{_i}%" Komenda /bl sprawdzasz jakie uprawnienie musisz dać graczowi żeby zablokować przedmiot (musisz trzymać go w ręku)
-
on death: if attacker is a player: if victim is a player: add 300 to attacker's money else: add 10 to attacker's money
-
Spróbuj tak: set block at location at 2435.5, 73.0, 1761.0 in world "world" to stone slab
