Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- victim is a player:
- if attacker is holding an diamond sword:
- if {infight.%victim%} is false:
- if {infight.%attacker%} is false:
- cancel event
- if {request.from.%victim%.to.%attacker%} is false:
- if {request.from.%attacker%.to.%victim%} is true:
- send "&cThis player has no requests from you anymore." to attacker
- set {request.from.%attacker%.to.%victim%} to false
- else:
- send "&8You got a fighting request from &l%attacker%&r&8." to victim
- set {request.from.%attacker%.to.%victim%} to true
- send "&8Hit the player of interest or execute /accept %attacker%." to victim
- send "&aYou challenged %victim%." to attacker
- wait 20 seconds
- set {request.from.%attacker%.to.%victim%} to false
- else if {request.from.%victim%.to.%attacker%} is true:
- set {infight.%attacker%} to true
- set {infight.%victim%} to true
- set {operated.%attacker%%victim%} to false
- set {arenasearch.%attacker%} to 1
- wait 5 seconds
- if {operated.%attacker%%victim%} is false:
- set {operated.%attacker%%victim%} to true
- send "&cAt this time all arenas are full." to victim and attacker
- send "&6Try again later or buy Premium on [URL]." to victim and attacker
- while {operated.%attacker%%victim%} is false:
- if {free.arena%{arenasearch.%attacker%}%} is true:
- set {p.%{arenasearch.%attacker%}%.1} to attacker
- set {p.%{arenasearch.%victim%}%.2} to victim
- set {operated.%attacker%%victim%} to true
- set {free.arena%{arenasearch.%attacker%}%} to false
- teleport attacker to {arenaspawn.%{arenasearch.%attacker%}%.attacker}
- teleport victim to {arenaspawn.%{arenasearch.%attacker%}%.victim}
- clear inventory of victim
- clear inventory of attacker
- set gamemode of victim to survival
- set gamemode of attacker to survival
- set action bar of victim to "&4Fight starts in:"
- set action bar of attacker to "&4Fight starts in:"
- wait 0.5 seconds
- set level of attacker to 60
- set level of victim to 60
- wait 1 second
- while level of attacker is higher than 0:
- reduce level of attacker by 1
- wait 1 second
- while level of victim is higher than 0:
- reduce level of victim by 1
- wait 1 second
- wait 5 seconds
- set action bar of attacker to "&aChoose your kit!"
- set action bar of victim to "&aChoose your kit!"
- give attacker 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- give victim 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- wait 54 seconds
- clear inventory of attacker
- clear inventory of victim
- set {fighting.%attacker%} to true
- set {fighting.%victim%} to true
- set slot 0 of victim to iron sword
- set slot 0 of attacker to iron sword
- set chestplate slot of attacker to iron chestplate
- set chestplate slot of victim to iron chestplate
- set {fight.kills.%attacker%} to 0
- set {fight.kills.%victim%} to 0
- set {fight.fights.%attacker%} to 0
- set {fight.fights.%victim%} to 0
- else:
- increase {arenasearch.&%attacker%} by 1
- wait 0.1 seconds
- else:
- if {fighting.%victim%} is false:
- cancel event
- on rightclick holding chest:
- if {infight.%player%} is true:
- if {fighting.%player%} is false:
- clear inventory of player
- set slot 0 of player to iron sword
- on place of a chest:
- if {infight.%player%} is true:
- if {fighting.%player%} is false:
- cancel event
- command /challenge [<player>]:
- trigger:
- if arg 1 is a player:
- if arg 1 is player:
- send "&cYou cannot challenge yourself."
- else:
- if {infight.%arg 1%} is false:
- if {infight.%player%} is false:
- if {request.from.%arg 1%.to.%player%} is false:
- if {request.from.%player%.to.%arg 1%} is true:
- send "&cThis player has no requests from you anymore." to player
- set {request.from.%player%.to.%arg 1%} to false
- else:
- send "&8You got a fighting request from &l%player%&r&8." to arg 1
- set {request.from.%player%.to.%arg 1%} to true
- send "&8Hit the player of interest or execute /accept %player%." to arg 1
- send "&aYou challenged %arg 1%." to player
- wait 20 seconds
- set {request.from.%player%.to.%arg 1%} to false
- else if {request.from.%arg 1%.to.%player%} is true:
- set {infight.%player%} to true
- set {infight.%arg 1%} to true
- set {operated.%player%%arg 1%} to false
- set {arenasearch.%player%} to 1
- wait 5 seconds
- if {operated.%player%%arg 1%} is false:
- set {operated.%player%%arg 1%} to true
- send "&cAt this time all arenas are full." to arg 1 and player
- send "&6Try again later or buy Premium on [URL]." to arg 1 and player
- while {operated.%player%%arg 1%} is false:
- if {free.arena%{arenasearch.%player%}%} is true:
- set {operated.%player%%arg 1%} to true
- set {p.%{arenasearch.%player%}%.1} to player
- set {p.%{arenasearch.%arg 1%}%.2} to arg 1
- set {free.arena%{arenasearch.%player%}%} to false
- teleport player to {arenaspawn.%{arenasearch.%player%}%attacker}
- teleport arg 1 to {arenaspawn.%{arenasearch.%player%}%victim}
- clear inventory of arg 1
- clear inventory of player
- set gamemode of arg 1 to survival
- set gamemode of player to survival
- set action bar of arg 1 to "&4Fight starts in:"
- set action bar of player to "&4Fight starts in:"
- wait 0.5 seconds
- set level of player to 60
- set level of arg 1 to 60
- wait 1 second
- while level of player is higher than 0:
- reduce level of player by 1
- wait 1 second
- while level of arg 1 is higher than 0:
- reduce level of arg 1 by 1
- wait 1 second
- wait 5 seconds
- set action bar of player to "&aChoose your kit!"
- set action bar of arg 1 to "&aChoose your kit!"
- set {arg1} to arg 1
- give player 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- give {arg1} 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- wait 54 seconds
- clear inventory of player
- clear inventory of arg 1
- set {fighting.%player%} to true
- set {fighting.%arg 1%} to true
- set slot 0 of arg 1 to iron sword
- set slot 0 of player to iron sword
- set chestplate slot of player to iron chestplate
- set chestplate slot of arg 1 to iron chestplate
- set {fight.kills.%player%} to 0
- set {fight.kills.%arg 1%} to 0
- set {fight.fights.%player%} to 0
- set {fight.fights.%arg 1%} to 0
- else:
- increase {arenasearch.&%player%} by 1
- wait 0.1 seconds
- else:
- send "&cYou are currently fighting." to player
- else:
- send "&cPlayer is currently fighting." to player
- command /reset [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cWhat do you want to reset?"
- else if arg 1 is "all":
- send "&cSuccesfully resetted everything."
- loop all players:
- set {fight.fights.%loop-player%} to 0
- set {fight.kills.%loop-player%} to 0
- set {infight.%loop-player%} to false
- set {resetted.arenas} to false
- set {resetted.arenas.number} to 1
- while {resetted.arenas} is false:
- if {free.arena%{resetted.arenas.number}%} is false:
- set {free.arena%{resetted.arenas.number}%} to true
- increase {resetted.arenas.number} by 1
- else:
- increase {resetted.arenas.number} by 1
- else:
- send "&cCan't reset this."
- command /accept [<player>]:
- trigger:
- if arg 1 is a player:
- if arg 1 is player:
- send "&cYou cannot challenge yourself."
- else:
- if {infight.%arg 1%} is false:
- if {infight.%player%} is false:
- if {request.from.%arg 1%.to.%player%} is false:
- send "&cThis player didn't send you a request."
- else if {request.from.%arg 1%.to.%player%} is true:
- set {infight.%player%} to true
- set {infight.%arg 1%} to true
- set {operated.%player%%arg 1%} to false
- set {arenasearch.%player%} to 1
- wait 5 seconds
- if {operated.%player%%arg 1%} is false:
- set {operated.%player%%arg 1%} to true
- send "&cAt this time all arenas are full." to arg 1 and player
- send "&6Try again later or buy Premium on [URL]." to arg 1 and player
- while {operated.%player%%arg 1%} is false:
- if {free.arena%{arenasearch.%player%}%} is true:
- set {p.%{arenasearch.%player%}%.1} to player
- set {p.%{arenasearch.%arg 1%}%.2} to arg 1
- set {operated.%player%%arg 1%} to true
- set {free.arena%{arenasearch.%player%}%} to false
- teleport player to {arenaspawn.%{arenasearch.%player%}%attacker}
- teleport arg 1 to {arenaspawn.%{arenasearch.%player%}%victim}
- clear inventory of arg 1
- clear inventory of player
- set gamemode of arg 1 to survival
- set gamemode of player to survival
- set action bar of arg 1 to "&4Fight starts in:"
- set action bar of player to "&4Fight starts in:"
- wait 0.5 seconds
- set level of player to 60
- set level of arg 1 to 60
- wait 1 second
- while level of player is higher than 0:
- reduce level of player by 1
- wait 1 second
- while level of arg 1 is higher than 0:
- reduce level of arg 1 by 1
- wait 1 second
- wait 5 seconds
- set action bar of player to "&aChoose your kit!"
- set action bar of arg 1 to "&aChoose your kit!"
- set {arg1} to arg 1
- give player 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- give {arg1} 1 chest named "&8Kits" with lore "&7Rightclick to choose."
- wait 54 seconds
- clear inventory of player
- clear inventory of arg 1
- set {fighting.%player%} to true
- set {fighting.%arg 1%} to true
- set slot 0 of arg 1 to iron sword
- set slot 0 of player to iron sword
- set chestplate slot of player to iron chestplate
- set chestplate slot of arg 1 to iron chestplate
- set {fight.kills.%player%} to 0
- set {fight.kills.%arg 1%} to 0
- set {fight.fights.%player%} to 0
- set {fight.fights.%arg 1%} to 0
- else:
- increase {arenasearch.&%player%} by 1
- wait 0.1 seconds
- on death:
- clear drops
- set {findplayer2} to false
- set {player2number} to 1
- while {findplayer2} is false:
- if player is {p.%{player2number}%.1}:
- set {p1} to {p.%{player2number}%.1}
- set {p2} to {p.%{player2number}%.2}
- set {findplayer2} to true
- else if player is {p.%{player2number}%.2}:
- set {p1} to {p.%{player2number}%.2}
- set {p2} to {p.%{player2number}%.1}
- set {findplayer2} to true
- else:
- increase {player2number} by 1
- if {infight.%player%} is false:
- teleport player to {spawn.%{rank.%player%}%}
- clear inventory of player
- give player 1 diamond sword
- set gamemode of player to survival
- heal player
- else:
- if {fight.fights.%player%} < 9:
- increase {fight.fights.%{p1}%} by 1
- increase {fight.fights.%{p2}%} by 1
- increase {fight.kills.%{p2}%} by 1
- heal {p2}
- teleport {p2} to {arenaspawn.%{playernumber}%attacker}
- give 1 iron sword to {p2}
- else:
- if {fight.kills.%{p1}%} > {fight.kills.%{p2}%}:
- send "&aYou won!" to {p1}
- send "&4%{p1}% won!" to {p2}
- increase {kills.%{p2}%} by 1
- increase {deaths.%{p1}%} by 1
- increase {fights.%{p1}%} by 1
- increase {fights.%{p2}%} by 1
- increase {wins.%{p1}%} by 1
- increase {loses.%{p2}%} by 1
- teleport player to {spawn.%{rank.%player%}%}
- clear inventory of player
- give player 1 diamond sword
- set gamemode of player to survival
- heal player
- teleport {p2} to {spawn.%{rank.%{p2}%}%}
- clear inventory of {p2}
- give {p2} 1 diamond sword
- set gamemode of {p2} to survival
- heal {p2}
- set {infight.%{p1}%} to false
- set {infight.%{p2}%} to false
- set {fighting.%{p1}%} to false
- set {fighting.%{p2}%} to false
- else:
- send "&aYou won!" to {p2}
- send "&4%{p2}% won!" to {p2}
- increase {kills.%{p2}%} by 1
- increase {deaths.%{p1}%} by 1
- increase {fights.%{p1}%} by 1
- increase {fights.%{p2}%} by 1
- increase {wins.%{p2}%} by 1
- increase {loses.%{p1}%} by 1
- teleport player to {spawn.%{rank.%player%}%}
- clear inventory of player
- give player 1 diamond sword
- set gamemode of player to survival
- heal player
- teleport {p2} to {spawn.%{rank.%{p2}%}%}
- clear inventory of {p2}
- give {p2} 1 diamond sword
- set gamemode of {p2} to survival
- heal {p2}
- set {infight.%{p1}%} to false
- set {infight.%{p2}%} to false
- set {fighting.%{p1}%} to false
- set {fighting.%{p2}%} to false
- on respawn:
- set {playernumber3} to 1
- while {findplayer3} is false:
- if player is {p.%{playernumber3}%.1}:
- set {findplayer2} to true
- else if player is {p.%{playernumber3}%.2}:
- set {findplayer2} to true
- else:
- increase {playernumber3} by 1
- if {infight.%player%} is true:
- teleport player to {arenaspawn.%{playernumber3}%}
- give 1 iron sword to player
- else:
- teleport player to {spawn.%{rank.%player%}%}
- clear inventory of player
- give player 1 diamond sword
- set gamemode of player to survival
- heal player
- command /hub:
- aliases: /l, /lobby, /leave
- trigger:
- if {infight.%player%} is false:
- teleport player to {spawn.%{rank.%player%}%}
- clear inventory of player
- give player 1 diamond sword
- set gamemode of player to survival
- heal player
- else:
- set {find.%player%} to false
- set {playernumber} to 1
- while {find.%player%} is false:
- if player is {p.%{playernumber}%.1}:
- set {find.%player%} to true
- set {free.arena%{playernumber}%} to true
- teleport {p.%{playernumber}%.1} to {spawn.%{rank.%player%}%}
- teleport {p.%{playernumber}%.2} to {spawn.%{rank.%{p.%{playernumber}%.2}%}%}
- clear inventory of player
- clear inventory of {p.%{playernumber}%.2}
- give 1 diamond sword to {p.%{playernumber}%.2}
- give 1 diamond sword to player
- set gamemode of {p.%{playernumber}%.2} to survival
- set gamemode of player to survival
- heal player
- heal {p.%{playernumber}%.2}
- add 1 to {loses.%player%}
- add 1 to {wins.%{p.%{playernumber}%.2}%}
- add 1 to {fights.%{p.%{playernumber}%.2}%}
- add 1 to {fights.%player%}
- else:
- if player is {p.%{playernumber}%.2}:
- set {find.%player%} to true
- set {free.arena%{playernumber}%} to true
- teleport {p.%{playernumber}%.2} to {spawn.%{rank.%player%}%}
- teleport {p.%{playernumber}%.1} to {spawn.%{rank.%{p.%{playernumber}%.1}%}%}
- clear inventory of player
- clear inventory of {p.%{playernumber}%.1}
- give 1 diamond sword to {p.%{playernumber}%.1}
- give 1 diamond sword to player
- set gamemode of {p.%{playernumber}%.1} to survival
- set gamemode of player to survival
- heal player
- heal {p.%{playernumber}%.1}
- add 1 to {loses.%player%}
- add 1 to {wins.%{p.%{playernumber}%.1}%}
- add 1 to {fights.%{p.%{playernumber}%.1}%}
- add 1 to {fights.%player%}
- else:
- increase {playernumber} by 1
- command /setarenaspawn [<text>] [<text>]:
- aliases: /sas [<text>] [<text>]
- trigger:
- set {arenaspawn.%arg 1%.%arg 2%} to player's location
- send "&aSpawn of arena %arg 1% for %arg 2% set."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement