Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
- # Stworzone przez: 4MaticPL #
- # Wersja: 1.0 #
- # #
- # Mozecie robic z tym skryptem #
- # co chcecie jednak prosze aby #
- # nie usuwac autora #
- # #
- #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
- options:
- sk: &3[WarSkript]&f
- #---------------------------------------------------------------------------------------------------------------------------------------------
- command /warskript [<text>] [<text>] [<text>] [<text>]:
- aliases: ws
- trigger:
- if arg 1 is not set:
- send "{@sk} &eWpisz: &6/ws help &eaby uzyskac pomoc"
- stop
- if arg 2 is not set:
- send "{@sk} &eWpisz: &6/ws help &eaby uzyskac pomoc"
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "help":
- send "&e-=-=-=-=-=-=-=-=-&6WarSkript &2Pomoc&e-=-=-=-=-=-=-=-=-=-=-"
- send "&9/ws help - &epokazuje liste dostepnych komend"
- send "&9/ws checkdata - &epokazuje co nalezy jeszcze skonfigurowac"
- send "&9/ws user delete - &eusuwa konfiguracje gracza"
- send "&9/ws setspawn - &eustawia lokalizacje spawnu mapy"
- send "&9/ws setspawn [lobby;wilki;owce] - &eustawia lokalizacje spawnow"
- send "&9/ws start - &estartuje rozgrywke"
- send "&9/ws stop - &ekonczy runde"
- send "&9/ws eq - &edaje ekwipunek dla graczy"
- send "&9/ws list [death,living,admin] - &epokazuje liste umarlych/zywych graczy"
- send "&9/ws team - &epokazuje w jakiej druzynie jest dany gracz"
- send "&9/ws change team [nick] - &ezmienia druzyne gracza"
- send "&e-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
- #----------------------------------------------------------------------------------------------------------------------------------------------
- if player is op:
- if arg 1 is "checkdata":
- send "{@sk} &eSprawdzanie spawnow..."
- if {lobby.pos} is not set:
- send "{@sk} &eBrak lokalizacji lobby!"
- stop
- if {wilki.pos} is not set:
- send "{@sk} &eBrak lokalizacji wilki!"
- stop
- if {owce.pos} is not set:
- send "{@sk} &eBrak lokalizacji owce!"
- stop
- send "{@sk} &aWszystko jest ok!"
- wait 5 second
- send "{@sk} &eSprawdzanie zmiennych..."
- wait 5 second
- if {allocate.team} is not set:
- send "{@sk} &cWykryto brak zmiennej!"
- set {allocate.team} to 0
- wait 2 tick
- send "{@sk} &aZmienna zostala uzupelniona"
- if {start.game} is not set:
- send "{@sk} &cWykryto brak zmiennej!"
- set {start.game} to 0
- wait 2 tick
- send "{@sk} &aZmienna zostala uzupelniona"
- if {death.msg} is not set:
- send "{@sk} &cWykryto brak zmiennej!"
- set {death.msg} to 0
- wait 2 tick
- send "{@sk} &aZmienna zostala uzupelniona"
- stop
- if {block} is not set:
- send "{@sk} &cWykryto brak zmiennej!"
- set {block} to 0
- wait 2 tick
- send "{@sk} &aZmienna zostala uzupelniona"
- stop
- send "{@sk} &aWszystko jest ok!"
- #----------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "user":
- if arg 2 is "delete":
- clear {dryzuna.%arg 3%}
- clear {druzyna.%arg 3%}
- send "{@sk} &eGracz &2%arg 3% &ezostal usuniety"
- stop
- else:
- send "{@sk} &eWpisz &6/ws user delete"
- stop
- if arg 1 is "reload":
- if arg 2 is "all":
- execute player command "sk reload War"
- execute player command "sk reload Chat"
- wait 5 tick
- send "{@sk} &eSkrypt zostal przeladowany"
- stop
- if arg 2 is "chat":
- execute player command "sk reload Chat"
- wait 5 tick
- send "{@sk} &eSkrypt zostal przeladowany"
- stop
- if arg 2 is "war":
- execute player command "sk reload War"
- wait 5 tick
- send "{@sk} &eSkrypt zostal przeladowany"
- stop
- execute player command "sk reload War"
- wait 5 tick
- send "{@sk} &eSkrypt zostal przeladowany"
- stop
- #---------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "setspawn":
- if arg 2 is not set:
- set spawn point of "world" to location of player
- send "{@sk} &eZmieniono lokalizacje spawnu mapy!"
- else:
- if arg 2 is "lobby":
- set {lobby.pos} to location of player
- send "{@sk} &eUstawiono lokalizacje spawnu lobby!"
- stop
- if arg 2 is "wilki":
- set {wilki.pos} to location of player
- send "{@sk} &eUstawiono lokalizacje spawnu wilkow!"
- stop
- if arg 2 is "owce":
- set {owce.pos} to location of player
- send "{@sk} &eUstawiono lokalizacje spawnu owce!"
- stop
- #---------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "change":
- if arg 2 is "team":
- if arg 3 is "owce" or "wilki":
- if arg 4 is not empty:
- set {druzyna.%arg 3%} to arg 4
- send "{@sk} &eGracz &3%arg 3% &ezostal przeniesiony do druzyny &3%arg 4%"
- stop
- else:
- send "{@sk} &eWpisz:&6 /ws change team [<nick>] [<nazwa_druzyny>]"
- stop
- else:
- send "{@sk} &eWpisz:&6 /ws change team [<nick>] [<nazwa_druzyny>]"
- stop
- else:
- send "{@sk} &eWpisz:&6 /ws change team [<nick>] [<nazwa_druzyny>]"
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "list":
- loop {death.wilki.list::*}:
- set {1} to loop-index
- loop {death.owce.list::*}:
- set {2} to loop-index
- loop {living.wilki.list::*}:
- set {3} to loop-index
- loop {living.owce.list::*}:
- set {4} to loop-index
- if arg 2 is "death":
- send "&e-=-=-=-=-=-=-=-=&6WarSkript &2DEATH List&e-=-=-=-=-=-=-=-=-=-"
- send "&2(%{1}%\%{3}%)&4&lWILKI : &r%{death.wilki.list::*}%"
- send "&2(%{2}%\%{4}%)&1&lOWCE : &r%{death.owce.list::*}%"
- send "&e-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=--=-=-=-=-"
- stop
- if arg 2 is "living":
- send "&e-=-=-=-=-=-=-=-=&6WarSkript &2LIVING List&e-=-=-=-=-=-=-=-=-=-"
- send "&2(%{3}%\%{1}%)&4&lWILKI : &r%{living.wilki.list::*}%"
- send "&2(%{4}%\%{2}%)&1&lOWCE : &r%{living.owce.list::*}%"
- send "&e-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=--=-=-=-=-"
- stop
- if arg 2 is "admin":
- send "&e-=-=-=-=-=-=-=-=&6WarSkript &4ADMIN List&e-=-=-=-=-=-=-=-=-=-"
- send "&6&lAdmins : &r%{admin.list::*}%"
- send "&e-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=--=-=-=-=-"
- stop
- #---------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "start":
- if {start.game} is 0:
- set {start.game} to 1
- set {death.msg} to 0
- set {block} to 0
- clear {living.wilki.list::*}
- clear {living.owce.list::*}
- clear {death.wilki.list::*}
- clear {death.owce.list::*}
- loop all players:
- if loop-player is not op:
- if {druzyna.%loop-player%} is "owce":
- add loop-player to {living.owce.list::*}
- if {druzyna.%loop-player%} is "wilki":
- add loop-player to {living.wilki.list::*}
- set {odliczanie} to 10
- loop 10 times:
- broadcast "{@sk} &eNastepna runda rozpocznie sie za &4&l%{odliczanie}%&4..."
- remove 1 from {odliczanie}
- wait a second
- loop 73 times:
- broadcast ""
- loop all players:
- if loop-player is not op:
- if {druzyna.%loop-player%} is "owce":
- teleport loop-player to {owce.pos}
- set the loop-player's tablist name to "&1%loop-player%"
- send "{@sk} &eZostales przeniesiony na spawn Owiec" to loop-player
- else if {druzyna.%loop-player%} is "wilki":
- teleport loop-player to {wilki.pos}
- set the loop-player's tablist name to "&4%loop-player%"
- send "{@sk} &eZostales przeniesiony na spawn Wilkow" to loop-player
- execute player command "rg flag town -w world pvp allow"
- execute player command "ws eq"
- execute player command "rg select wall"
- execute player command "//regen"
- execute console command "rg flag town -w world build allow"
- broadcast "{@sk} &eGracze otrzymali swoje eq!"
- broadcast "{@sk} &eMur został zniesiony!"
- broadcast "{@sk} &eNiszczenie jest juz dozwolone!"
- broadcast "{@sk} &eCreate by 4MaticPL &2crystalcraft.com.pl"
- else:
- send "{@sk} &eNajpierw musisz zatrzymac rozgrywke!"
- if arg 1 is "stop":
- if {start.game} is 1:
- set {block} to 1
- teleport {living.wilki.list::*} and {living.owce.list::*} to {lobby.pos}
- set {start.game} to 0
- clear {living.wilki.list::*}
- clear {living.owce.list::*}
- clear {death.wilki.list::*}
- clear {death.owce.list::*}
- execute player command "rg flag town -w world pvp deny"
- execute console command "scoreboard players reset %loop-player%"
- execute player command "rg select wall"
- execute player command "//set bedrock"
- execute player command "rg select wall_line"
- execute player command "//set wool:black"
- execute player command "rg flag town -w world build deny"
- broadcast "{@sk} &eRunda zostala zakonczona!"
- broadcast "{@sk} &eMur zostal postawiony!"
- broadcast "{@sk} &eNiszczenie zostalo zablokowane!"
- broadcast "{@sk} &eCreate by 4MaticPL &2crystalcraft.com.pl"
- stop
- else:
- send "{@sk} &eNie ma obecnie zadnej gry!"
- #----------------------------------------------------------------------------------------------------------------------------------------------
- if arg 1 is "eq":
- loop all players:
- if loop-player is not op:
- clear the loop-player's inventory
- give iron sword to loop-player
- give bow to loop-player
- give map:13 named "Mapa Vernom" to loop-player
- give 10 golden apple:1 to loop-player
- give 10 tnt to loop-player
- add 32 cooked porkchop to loop-player
- equip loop-player with a chain helmet of protection 3
- equip loop-player with a leather tunic of protection 3
- equip loop-player with a iron leggings of protection 3
- equip loop-player with a iron boots of protection 3
- give flint and steel to loop-player
- give 64 arrow to loop-player
- if {druzyna.%loop-player%} is "owce":
- colour the loop-player's chestplate blue
- give 128 cobblestone to loop-player
- if {druzyna.%loop-player%} is "wilki":
- colour the loop-player's chestplate red
- send "{@sk} &eOtrzymales ekwipunek!" to loop-player
- #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- on join:
- if player is op:
- remove player from {admin.list::*}
- add player to {admin.list::*}
- if player is not op:
- wait 5 tick
- loop 73 times:
- send ""
- if {druzyna.%player%} is not set:
- if {allocate.team} is 0:
- set {allocate.team} to 1
- set {druzyna.%player%} to "wilki"
- teleport player to {lobby.pos}
- remove player from {team.wilki::*}
- add player to {team.wilki::*}
- send "{@sk} &eZostales przydzielony do drużyny &4wilki!"
- else if {allocate.team} is 1:
- set {allocate.team} to 0
- set {druzyna.%player%} to "owce"
- teleport player to {lobby.pos}
- remove player from {team.owce::*}
- add player to {team.owce::*}
- send "{@sk} &eZostales przydzielony do drużyny &1owce!"
- else if {druzyna.%player%} is "wilki":
- send "{@sk} &eJestes w druzynie &2wilki"
- remove player from {team.wilki::*}
- add player to {team.wilki::*}
- stop
- else if {druzyna.%player%} is "owce":
- send "{@sk} &eJestes w druzynie &2owce"
- remove player from {team.owce::*}
- add player to {team.owce::*}
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on join:
- set join message to ""
- on quit:
- set leave message to ""
- on death:
- set death message to ""
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on quit:
- if player is op:
- remove player from {admin.list::*}
- if player is not op:
- if {druzyna.%player%} is "wilki":
- remove player from {living.wilki.list::*}
- remove player from {death.wilki.list::*}
- if {druzyna.%player%} is "owce":
- remove player from {living.owce.list::*}
- remove player from {death.owce.list::*}
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on drop:
- if player is not op:
- send "{@sk} &eNie mozesz wyrzucac itemow!"
- cancel event
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on damage:
- if player is not op:
- if {druzyna.%attacker%} is {druzyna.%victim%}:
- send "{@sk} &eNie mozesz atakowac sojusznikow!" to attacker
- cancel event
- stop
- else:
- send "{@sk} &ePojebało cie? Jesteś adminem!"
- cancel event
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on respawn:
- wait 2 tick
- teleport player to {lobby.pos}
- send "{@sk} &ePoniosles smierc.Zostajesz przeniesiony do lobby"
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on death:
- if victim is player:
- clear drops
- if {druzyna.%player%} is "wilki":
- remove player from {living.wilki.list::*}
- add player to {death.wilki.list::*}
- else if {druzyna.%player%} is "owce":
- remove player from {living.owce.list::*}
- add player to {death.owce.list::*}
- send "{@sk} &eZabiles gracza &4 %victim% &ez druzyny &4 %{druzyna.%victim%}%" to attacker
- send "{@sk} &eZostales zabity przez gracza &4 %attacker% &ez druzyny &4 %{druzyna.%victim%}%" to victim
- stop
- #----------------------------------------------------------------------------------------------------------------------------------------------
- on command:
- if player is not op:
- send "{@sk}&eWszystkie komendy sa zablokowane ;)"
- cancel event
- stop
- every 5 second:
- if {start.game} is 1:
- if {death.msg} is 0:
- size of {living.wilki.list::*} is 0:
- wait 10 second
- broadcast "{@sk} &eWszystkie wilki zostaly zabite!!"
- broadcast "{@sk} &eGratulacje dla owiec!!"
- set {death.msg} to 1
- loop all players:
- if loop-player is op:
- execute loop-player command "ws stop"
- stop
- size of {living.owce.list::*} is 0:
- wait 10 second
- broadcast "{@sk} &eWszystkie owce zostaly zabite!!"
- broadcast "{@sk} &eGratulacje dla wilkow!!"
- set {death.msg} to 1
- loop all players:
- if loop-player is op:
- execute loop-player command "ws stop"
- stop
- on walking on water:
- if {druzyna.%player%} is "wilki":
- apply slowness 2 to player for 2 tick
- on explosion:
- if {block} is 1:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment