Warning: Undefined variable $http_response_header in /var/www/html/new/skunity/library/skUnity/Util/HTTP.php on line 95

UHCRun.sk

Created by Unknown

Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.

options:
	bordure: 3000
	p: &3[&bUHCRun&3]

command /uhc [<text>]:
	permission: "game.admin"
	permission message: &cYou must be an OP for use this command !
	trigger:
		if arg is "setup":
			make player execute command "/tppos 0 250 0"
			wait 1 second
			make player execute command "//pos1 0,0,0"
			make player execute command "//pos2 0,0,0"
			wait 1 second
			make player execute command "//expand {@bordure} N "
			wait 5 ticks
			make player execute command "//expand {@bordure} S "
			wait 5 ticks
			make player execute command "//expand {@bordure} E "
			wait 5 ticks
			make player execute command "//expand {@bordure} W "
			wait 5 ticks
			make player execute command "//expand vert"
			wait 1 second
			make player execute command "//walls 95"
		if arg is "start":
			broadcast "{@p} "&eGame starts in  &c6 &eseconds !"
			wait 2 seconds
			broadcast "{@p} "&eGame starts in  &c5 &eseconds !"
			wait 1 second
			broadcast "{@p} "&eGame starts in  &c4 &eseconds !"
			wait 1 second
			broadcast "{@p} "&eGame starts in  &c3 &eseconds !"
			wait 1 second
			broadcast "{@p} "&eGame starts in  &c2 &eseconds !"
			wait 1 second
			broadcast "{@p} "&eGame starts in  &c1 &esecond !"
			wait 1 second
			broadcast "{@p} "&aSending all players to the world...
			wait 1 second
			broadcast "{@p} "&eThe Game as started ! good luck !. &aSending you to the world..."
			wait 1 second
			broadcast "{@p} "&aThe Limit of the map as been created ! to +3000 -3000"
			wait 1 second
			broadcast "{@p} "&7The damage is enabled in 1 minute"
			wait 1 second
			broadcast "{@p} "&eRules : &e&lMake your stuff for pvp ! and kills the others players."
			wait 3 second
			broadcast "{@p} "&cWARNING ! The regeneration automaticle is DISABLED ! be careful !!!!"
			wait 1 second
			broadcast "{@p} "&aWave Fun !"
			execute console command "/gamerule naturalRegeneration false"
			set {degat} to true
			wait 5 seconds
			execute console command "/uhc setup"
			wait 1 tick
			loop all players:
				run loop-player command "/uhc rt" as op
			wait 10 seconds
			broadcast "{@p}  "&c&lThe damage is enabled in 50 seconds !"
			wait 10 seconds
			broadcast "{@p}  "&c&lThe damage is enabled in 40 seconds !"
			wait 10 seconds
			broadcast  "{@p} "&c&lThe damage is enabled in 30 seconds !"
			wait 10 seconds
			broadcast "{@p}  "&c&lThe damage is enabled in 20 seconds !"
			wait 10 seconds
			broadcast "{@p}  "&c&lThe damage is enabled in 10 seconds !
			wait 10 seconds
			set {degat} to false
			set {ep} to 1
			wait 0 second
			broadcast "{@p} " "&c&lThe Damage is enabled ! BE CAREFUL !!!!"
		if arg is "rt":
			add 50 to {uhc.coo}
			set {_uhc.e} to location {uhc.coo}, 100, 0
			set block at {_uhc.e} to glass
			set {_uhc.point} to block 2 above {_uhc.e}
			teleport player to {_uhc.point}
			
					
on damage of a player:
	if {degat} is true:
		cancel event
	
on death of player:					
	ban the victim due to "{@p} &4You are dead ! :o"
	wait 0 second
	broadcast "{@p} "&4 1 player has left a game or is dead ! :o"
	strike lightning effect at the victim
	remove 1 from {v}
	

# MINAGE
on mine of wood:
	loop blocks upwards:
		if loop-block is wood:
			drop the loop-block-1 at event-block
			set the loop-block-1 to air
	loop blocks downwards :
		if loop-block is wood:
			drop the loop-block-1 at event-block
			set the loop-block-1 to air
		loop blocks in radius 4 around loop-block:
			if loop-block-2 is leaves:
				set the loop-block-2 to air
	chance of 75%:
		drop 1 apple at event-block
	chance of 50%:
		drop 2 apples
	chance of 25%:
		drop 3 apples	

on mine of iron ore:
	set block to air
	drop 2 iron ingot
	cancel event
	
on mine of gravel:
	set block to air
	drop 2 arrow
	cancel event

on mine of gold ore:
	set block to air
	drop 3 gold blocks
	cancel event
	
       
on mine of diamond ore:
	set block to air
	drop 6 diamond blocks
	cancel event
        
on mine of coal ore:
	set block to air
	drop 2 coal
	cancel event
        
on death of a pig:
	clear drops
	drop 3 cooked porkchop at the pig
on death of a cow:
	clear drops
	drop 3 cooked porkchop at the cow
	drop 1 leather at the cow
	drop 6 steak at the cow

on death of a chicken:
	clear drops
	drop 3 cooked chicken at the chicken
	drop 2 arrow at the chicken
on death of a spider:
	clear drops
	drop 1 spider eye at the spider
	drop 2 string at the spider
on death of a skeleton:
    clear drops
    drop 3 arrows at the skeleton
	drop 1 bow at the skeleton


on death of a player:
	drop 1 golden apple at the player
	drop 26 diamonds blocks at the player

on craft of wooden sword:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is wooden shovel
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a stone hoe to player
on craft of wooden axe:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is wooden shovel
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a stone hoe to player
on craft of wooden shovel:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is wooden shovel
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a stone hoe to player
on craft of wooden hoe:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is wooden hoe
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a stone hoe to player
on craft of wooden pickaxe:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is wooden shovel
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a stone hoe to player
on craft of stone sword:
	wait 1 tick
	loop all items in the player's inventory:
		loop-item is stoneen shovel
		remove loop-item from the player
		add 1 to {_no}
	loop {_no} times:
		give a iron sword to player