Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pvparena <text>:
- permission: skript.uhcbasic
- usage: /pvparena <on:off>
- trigger:
- if arg 1 is "on":
- set {PvPArena} to true
- execute console command "/pvp global on"
- if arg 1 is "off":
- set {PvPArena} to false
- execute console command "/pvp global off"
- command /arena:
- usage: /arena
- trigger:
- player is in "FleftSpawn":
- {PvPArena} is true:
- heal the player
- execute console command "/ci %player%"
- execute console command "/gms %player%"
- remove night vision from the player
- set {pvpgear.%player%} to a random integer between 1 and 15
- set {pvpgold.%player%} to a random integer between 1 and 4
- set {pvparrow.%player%} to a random integer between 16 and 64
- set {pvppot.%player%} to a random integer between 1 and 100
- set {pvpchest.%player%} to a random integer between 1 and 50
- if {pvpgear.%player%} is 1:
- equip player with iron helmet of protection 1
- equip player with iron chestplate of protection 1
- equip player with iron leggings of protection 1
- equip player with iron boots of protection 1
- give player diamond sword of sharpness 1
- give player bow of power 1
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 2:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with iron boots
- give player diamond sword
- give player bow
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- if {pvpgear.%player%} is 3:
- equip player with iron helmet of protection 2
- equip player with diamond chestplate of projectile protection 1
- equip player with iron leggings of protection 1
- equip player with iron boots of protection 1
- give player diamond sword of sharpness 2
- give player bow of power 2
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 4:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with diamond boots
- give player iron sword
- give player bow
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 5:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with diamond boots
- give player diamond sword
- give player bow
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 6:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with iron boots
- give player iron sword
- give player 1 ender pearl
- give player 4 golden apples
- if {pvpgear.%player%} is 7:
- equip player with iron helmet of projectile protection 1
- equip player with iron chestplate of projectile protection 1
- equip player with iron leggings of projectile protection 1
- equip player with iron boots of projectile protection 1
- give player diamond sword of sharpness 2
- give player bow of power 3
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 8:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with iron boots
- give player diamond sword
- give player bow of power 4
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 9:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with iron boots
- give player diamond sword of sharpness 4
- give player bow
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 10:
- equip player with iron helmet of protection 1
- equip player with diamond chestplate of protection 2
- equip player with iron leggings of protection 1
- equip player with diamond boots of projectile protection 1
- give player diamond sword of sharpness 2
- give player bow of power 2
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 11:
- equip player with iron helmet of projectile protection 2
- equip player with iron chestplate of protection 2
- equip player with iron leggings of protection 1
- equip player with iron boots of protection 2
- give player diamond sword of sharpness 2
- give player bow of power 2
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 12:
- equip player with iron helmet
- equip player with iron chestplate of protection 4
- equip player with iron leggings
- equip player with iron boots
- give player diamond sword
- give player bow
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 13:
- equip player with diamond helmet of projectile protection 1
- equip player with diamond chestplate of projectile protection 2
- equip player with iron leggings of protection 1
- equip player with iron boots of projectile protection
- give player diamond sword of sharpness 3
- give player bow of power 2
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- if {pvpgear.%player%} is 14:
- equip player with diamond helmet of protection 1
- equip player with diamond chestplate of protection 1
- equip player with iron leggings of protection 1
- equip player with iron boots of protection 1
- give player diamond sword of sharpness 1 and knockback 1
- give player bow of power 1
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- if {pvpgear.%player%} is 15:
- equip player with iron helmet
- equip player with iron chestplate
- equip player with iron leggings
- equip player with iron boots
- give player diamond sword
- give player bow of punch 2
- execute console command "/give %player% arrow %{pvparrow.%player%}%"
- execute console command "/give %player% 322 %{pvpgold.%player%}%"
- set {pvpwarp.%player%} to a random integer between 1 and 10
- wait 0.1 seconds
- execute console command "/warp pvp%{pvpwarp.%player%}% %player%"
- if {pvppot.%player%} is 17:
- give 1 unextended health potion II item to the player
- give 1 unextended health potion II item to the player
- give 1 unextended health potion II item to the player
- if {pvppot.%player%} is 42:
- give 1 unextended strength potion I item to the player
- give 1 unextended strength potion I item to the player
- give 1 unextended strength potion I item to the player
- if {pvpchest.%player%} is 5:
- enchant the player's chestplate with protection 3
- message "&7&l[&9Favonius&7&l]&e /longshot !"
- command /autopvp <text>:
- usage: /autopvp <on:off>
- trigger:
- if arg 1 is "on":
- set {AutoPVP.%player%} to true
- message "&7&l[&9Favonius&7&l]&r&e AutoPVP on!" to the player
- if arg 1 is "off":
- set {AutoPVP.%player%} to false
- message "&7&l[&9Favonius&7&l]&r&e AutoPVP off!" to the player
- on projectile hit:
- {PVPArena} is true
- delete the arrow
- command /arenaleave:
- usage: /arenaleave
- trigger:
- execute console command "/spawn %player%"
- execute console command "/ci %player%"
- execute console command "/scoreboard teams leave %player%"
- heal the player
- player is op:
- execute console command "/scoreboard teams join UHC15 %player%"
- command /longshot:
- trigger:
- message "&7&l[&9Favonius&7&l]&e Your longest shot is &3%{BestLongshot.%player%}%&e blocks!" to the player
- on login:
- if {BestLongshot.%player%} is not set:
- set {BestLongshot.%player%} to 0
- if {kills.%player%} is not set:
- set {kills.%player%} to 0
- if {deaths.%player%} is not set:
- set {deaths.%player%} to 0
- if {bestkillstreak.%player%} is not set:
- set {killstreak.%player%} to 0
- if {bestkillstreak.%player%} is not set:
- set {bestkillstreak.%player%} to 0
- on death of player:
- {PvPArena} is true
- player is in world "arena":
- set {pvpgold.%attacker%} to a random integer between 1 and 3
- execute console command "/give %attacker% 322 %{pvpgold.%attacker%}%"
- {PvPArena} is true
- player is in world "arena":
- set {pvparrow.%attacker%} to a random integer between 5 and 20
- execute console command "/give %attacker% arrow %{pvparrow.%attacker%}%"
- wait 0.5 seconds
- message "&a&lYou killed %victim%!" to the attacker
- message "&c&lYou were killed by %attacker%!" to the victim
- on player respawning:
- wait 1 second
- {PVPArena} is true
- {AutoPVP.%player%} is true
- make player execute command "/arena"
- on damage of player:
- {PVPArena} is true
- damage was caused by projectile:
- set {_loc.%attacker%} to the location at the attacker
- set {_loc.%victim%} to the location at the victim
- set {LastShotDistance.%attacker%} to a round distance between {_loc.%attacker%} and {_loc.%victim%}
- if {LastShotDistance.%attacker%} is greater than 50:
- broadcast "&7&l[&r&9Favonius&7&l]&r &c&l%attacker% &r&egot a longshot of &3&l%{LastShotDistance.%attacker%}%&e blocks!"
- {LastShotDistance.%attacker%} is greater than {BestLongshot.%attacker%}:
- set {BestLongshot.%attacker%} to {LastShotDistance.%attacker%}
- on drop:
- {PVPArena} is true:
- player is in "arena" or "FleftSpawn":
- player is not op
- cancel the event
- on death:
- {PVPArena} is true
- victim is player
- add 1 to {killstreak.%attacker%}
- add 1 to {kills.%attacker%}
- add 1 to {deaths.%victim%}
- if {killstreak.%attacker%} is less than 5:
- message "&7&l[&9Favonius&7&l]&e You are on a &3%{killstreak.%attacker%}%&e killstreak!" to the attacker
- wait 0.1 second
- if {killstreak.%attacker%} is greater than 4:
- broadcast "&7&l[&9Favonius&7&l]&e %attacker% is on a &3%{killstreak.%attacker%}%&e killstreak!"
- if {killstreak.%victim%} is greater than 4:
- broadcast "&7&l[&9Favonius&7&l]&e %victim% was shut down by &3%attacker%!"
- if {killstreak.%attacker%} is greater than {bestkillstreak.%player%}:
- set {bestkillstreak.%player%} to {killstreak.%attacker%}
- command /stats:
- trigger:
- message "&a&l------------------------------" to the player
- message "&c&lKills:&r %{kills.%player%}%" to the player
- message "&7&lDeaths:&r %{deaths.%player%}%" to the player
- message "&6&lKDR:&R %{kills.%player%}%/%{deaths.%player%}%" to the player
- message "&3&lLongshot:&R %{BestLongshot.%player%}%" to the player
- message "&9&lKillstreak:&r %{bestkillstreak.%player%}%" to the player
- message "&a&l------------------------------" to the player
- on death:
- {PVPArena} is true
- wait 0.5 seconds
- set {killstreak.%victim%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement