on chat:
if message contains {@zakazane}:
cancel event
send "&8-----------------&8[ &6&lANTY-REKLAMA &8]&8-----------------" to all players where [player input has permission "admin.chat"]
send "" to all players where [player input has permission "admin.chat"]
send " &7Nick: &6%player%" to all players where [player input has permission "admin.chat"]
send " &7Wiadomosc: &6%message%" to all players where [player input has permission "admin.chat"]
send " &7Kliknij aby zbanowac: <command:/ban %player% Reklama innego serwera><tooltip:&4&lUwaga: &6Po kliknieciu gracz automatycznie zostanie zbanowany.>&8[&c&lBANOWANIE&8]" to all player where [player input has permission "admin.chat"]
send "" to all players where [player input has permission "admin.chat"]
send "&8-----------------&8[ &6&lANTY-REKLAMA &8]&8-----------------" to all players where [player input has permission "admin.chat"]
command /wlacz [<text>]:
trigger:
set {actionbar::%player%} to true
while {actionbar::%player%} is true:
set action bar of player to "tekst"
wait second
command /wylacz [<text>]:
trigger:
set {actionbar::%player%} to false
every 10 seconds:
set {kod} to getCode("0,1,2,3,4,5,6,7,8,9,0....", 7, "")
broadcast "%{kod}%"
https://skript.pl/temat/35555-marudacode-skrypt-na-generowanie-losowych-ciągów-znaków/
on rightclick with stick:
if name of player's tool is "&cPatyk teleportacji":
teleport player above target block
remove stick named "&cPatyk teleportacji" from player
command /pattykgiveplssssxd:
trigger:
if {patyk.%player%} is true:
loop all players in world "skywars":
send "&4&l> &cPatyk: &7Wybrales mnie."
set {patyk.%player%} to false
give 1 stick named "&cPatyk teleportacji" to player
wait 300 second
set {patyk.%player%} to true
stop
send "&4&l> &cPatyk: &7Kolejny raz mozesz mnie odebrac po &65 minutach &cod uzycia."
variables:
{patyk.%player%} = true
on right click on stone button:
block behind is jukebox:
set {_x} to random integer from -1 to 700
set {_z} to random integer from -1 to 700
set {_xyz} to location at {_x}, 256, {_z} in world "Mapa"
while block at {_xyz} is air:
set {_xyz} to location of block under {_xyz}
if block at {_xyz} is water or lava:
set {_x} to random integer from -1 to 700
set {_z} to random integer from -1 to 700
set {_xyz} to location at {_x}, 256, {_z} in world "Mapa"
teleport player to {_xyz}
send player title "&6&lLOSOWE TP" with subtitle "&7Zostales przeteleportowany na koordynaty &c(x: %{_x}% | z: %{_z}%)&7." for 5 second
on craft of jukebox:
cancel event
send "&c&lHej! &7Ten crafting jest zablokowany."
on load:
createCooldown("luk", 3 seconds)
on left click:
if type of player's tool is bow:
if getCooldown(player, "luk"):
shoot arrow from player
setCooldown(player, "luk")
stop
send "&7Mozesz tego uzywac co 3 sekundy"
wymagany AxCooldown (moja sygnatura)
on death of player:
attacker is player
if "%victim's world%" is "SWIAT":
stop
if {czaszki::%victim%} is set:
add 100 to attacker's balance
send "&aGracz &a%attacker% &azabil &aagresywnego gracza &a%victim% &a- &anagroda &a100$" to all players
clear {czaszki::%victim%}
else:
set {czaszki::%attacker%} to 24*60
remove 100 from ("%attacker%" parsed as player)'s balance
send attacker title "&f☠" with subtitle "" for 6 seconds
send "&cGracz &c%attacker% &czabil &cpokojowego &cgracza &c%victim% &c- &ckara &c100$ &ci &cczaszka" to all players
every minute:
loop {czaszki::*}:
remove 1 from {czaszki::%loop-index%}
if {czaszki::%loop-index%} is 0:
clear {czaszki::%loop-index%}
on join:
while player is online:
if {czaszki::%player%} is more than 0:
set {czaszka::%player%} to "☠"
else:
set {czaszka::%player%} to "&f"
wait 10 second
every 1 second:
loop all players:
set {_mr} to 1000000
set {_lp} to loop-player
loop all players:
if {_lp} isn't loop-player-2:
if {sojusz.%{_lp}%.%loop-player-2%} is not set:
if loop-player-2's gamemode is survival or adventure:
loop all blocks in radius 10 of loop-player-2:
loop-block is cobblestone:
set compass target of {_lp} to loop-player-1's world's spawn
loop all items in {_lp}'s inventory:
loop-item is compass:
set name of loop-item to "&cBrak sygnalu"
else:
if distance between {_lp} and loop-player-2 is smaller than {_mr}:
set {_mr} to distance between {_lp} and loop-player-2
set {_dist} to location of loop-player-2
set compass target of {_lp} to {_dist}
loop all items in {_lp}'s inventory:
loop-item is compass:
{_lp}'s tool is compass:
set name of loop-item to "&3Najblizszy gracz&b: &9%{_mr}% &bkratek"
@Dabbix
function test18541(p: player):
if {_p} has 64 golden ingot:
add diamond leggings named "&d&kdas &6 Spodnie rycerza &d&kdas" to {_p}
send "&aWlasnie zakupiles &d&kdas &6 Spodnie rycerza &d&kdas &a!" to {_p}
remove 64 of golden ingot from {_p}
else:
send "&cNie masz 64 &6zlotych &csztabek!" to {_p}
command /test18541:
trigger:
test18541(player)
1.
set player's display name to "Nick"
2.
getCode("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,w,x,y,z,1,2,3,4,5,6,7,8,9,0,!,@,#,$,%,^,&,*,(,),-,=,_,+" 10, "")
https://skript.pl/temat/35555-marudacode-skrypt-na-generowanie-losowych-ciągów-znaków/