Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #UHC skript
  2. #edited by Rainbowslasher
  3.  
  4. options:
  5.     #- Main Options -#
  6.     P : &7[&9Paragon &3UHC&7]&f
  7.     C : &f
  8.     H : &9
  9.    
  10.     #- Other Options -#
  11.     Error : &8[&4ERROR&8]&f
  12.     Killboard : &7[&9Paragon &3UHC&7]&f "
  13.     KillboardName: &9Paragon &3UHC
  14.    
  15.     #- Skript Options -#
  16.     Permission: skript.op
  17.     PermissionDeny: &cYou don't have the required permission.
  18.    
  19. command /uhc [<text>] [<integer>] [<integer>]:
  20.     permission: {@Permission}
  21.     permission message: {@PermissionDeny}
  22.     trigger:
  23.         if arg-1 is not set:
  24.             message "{@Error} Invalid syntax."
  25.         else:
  26.             if arg-1 is "start":
  27.                 if {UHC.Started} is not set:
  28.                
  29.                     #- Timer Check -#
  30.                     if arg-2 is less than 0:
  31.                         message "{@Error} Must enter positive integer!"
  32.                         message "{@Error} You entered [{@H}%arg-2%]{@C}!"
  33.                         message "{@Error} Set [{@H}%arg-2%]{@C}to a positive number!"
  34.                     if arg-3 is less than 0:
  35.                         message "{@Error} Must enter positive integer!"
  36.                         message "{@Error} You entered [{@H}%arg-3%]{@C}!"
  37.                         message "{@Error} Set [{@H}%arg-3%] {@C}to a positive number!"
  38.            
  39.                     #- Variable Declarations -#
  40.                     set {UHC.Started} to true
  41.                     set {UHC.Countdown} to true
  42.                     delete {PermaDay}
  43.                    
  44.                     #- Essentials -#
  45.                     make console execute command "/heal *"
  46.                     make console execute command "/feed *"
  47.                     loop all players:
  48.                         set loop-player's hunger to 20
  49.                         set loop-player's max health to 10
  50.                         clear loop-player's inventory
  51.                    
  52.                     #- Resetting/Commands -#
  53.                     set time to 6:00
  54.                     loop all players:
  55.                         execute console command "xp -25000L %loop-player%"
  56.                         loop-player's gamemode is not survival:
  57.                             set loop-player's gamemode to survival
  58.  
  59.                     #- PreGame Commands -#
  60.                     command sender command "/killboard off"
  61.                     command sender command "/killboard on"
  62.                     command sender command "/region flag __global__ pvp deny"
  63.                     command sender command "/specinfo reset"
  64.                     command sender command "/boxremove %world of command sender%"
  65.                    
  66.                     #- Countdown(!) -#
  67.                    
  68.                     command "/title @p title {text:""Game starting in:"",color:""gold"",bold:true}"
  69.                     wait 2 seconds
  70.                    
  71.                     command "/title @p title {text:""5"",color:""dark_red"",bold:true}"
  72.                     command "/playsound note.pling @a 0 56 0 1000 0"
  73.                     wait 1 second
  74.                    
  75.                     command "/title @p title {text:""4"",color:""yellow"",bold:true}"
  76.                     command "/playsound note.pling @a 0 56 0 1000 0"
  77.                     wait 1 second
  78.                    
  79.                     command "/title @p title {text:""3"",color:""gold"",bold:true}"
  80.                     command "/playsound note.pling @a 0 56 0 1000 0"
  81.                     wait 1 second
  82.                    
  83.                     command "/title @p title {text:""2"",color:""aqua"",bold:true}"
  84.                     command "/playsound note.pling @a 0 56 0 1000 0"
  85.                     wait 1 second
  86.                    
  87.                     command "/title @p title {text:""1"",color:""dark_purple"",bold:true}"
  88.                     command "/playsound note.pling @a 0 56 0 1000 0"
  89.                     wait 1.5 seconds
  90.                    
  91.                     command "/title @p title {text:""GO!"",color:""white"",bold:true}"
  92.                     command "/playsound note.pling @a 0 56 0 1000 1.5"
  93.                     command "/playsound note.pling @a 0 56 0 1000 1.8"
  94.  
  95.                    
  96.                     #- UnFreeze -#
  97.                     command "/freeze"
  98.                     loop all players:
  99.                         execute console command "effect %loop-player% clear"                   
  100.                            
  101.                     #- Cleanup/Final Things -#
  102.                     wait 15 seconds
  103.                     make console execute command "/heal *"
  104.                     make console execute command "/feed *"
  105.                     command "/title @p title {text:""Final Heal Given"",color:""white"",bold:false}"
  106.                     set {FirstDamage} to true
  107.                    
  108.                    
  109.                     #- Timer -#
  110.                     set {_pvpseconds} to arg 3*60
  111.                     set {_meetup} to arg 2*60
  112.                     execute console command "/timer %{_pvpseconds}% &bPvP In:"
  113.                    
  114.                    
  115.                     loop ({_pvpseconds}+1)*20 times:
  116.                         wait 1 tick
  117.                     command "/title @p title {text:""PvP Enabled"",color:""aqua"",bold:true}"
  118.                     execute console command "/aps mob.wither.shoot 2"
  119.                     make command sender execute command "/region flag __global__ pvp allow"
  120.                        
  121.                     if arg 2 is not 0:
  122.                         execute console command "/timer cancel"
  123.                         execute console command "/timer 60 &b Meetup is in:"
  124.                         loop ({_meetup}+1)*20 times:
  125.                             wait 1 tick
  126.                         command "/title @p title {text:""Meetup is now!"",color:""aqua"",bold:true}"
  127.                         execute console command "/aps mob.wither.shoot 2"
  128.                         stop trigger
  129.                        
  130.                 else:
  131.                     message "{@P} Game already in progress!"
  132.            
  133.             else if arg-1 is "end":
  134.                 if {UHC.Started} is set:
  135.                    
  136.                     #- Variable Declarations -#
  137.                     delete {UHC.Started}
  138.                     delete {UHC.Countdown}
  139.                     delete {PermaDay}
  140.                     delete {MuteAll}
  141.                    
  142.                     #- Essentials -#
  143.                     make console execute command "/heal *"
  144.                     make console execute command "/feed *"
  145.                     make console execute command "/team reset"
  146.                     loop all players:
  147.                         clear loop-player's inventory
  148.                        
  149.                     #- Reset/Commands -#
  150.                     command sender command "/timer cancel"
  151.                     loop all players:
  152.                         execute console command "xp-25000L %loop-player%"
  153.                         execute console command "effect %loop-player% clear"
  154.                
  155.                 else:
  156.                     message "{@P} There isn't a game in progress!"
  157.                    
  158. #- Game Commands -#
  159.  
  160. command /megabutcher:
  161.     permission: {@Permission}
  162.     permission message: {@PermissionDeny}
  163.     trigger:
  164.         loop 10 times:
  165.             make command sender execute command "/butcher"
  166.             wait 1 second
  167.         wait 3 seconds
  168.         make command sender execute command "/butcher"
  169.        
  170. command /killboard <text>:
  171.     permission: {@Permission}
  172.     permission message: {@PermissionDeny}
  173.     trigger:
  174.         if arg 1 is "on":
  175.             execute console command "/scoreboard objectives add kills playerKillCount {@KillboardName}"
  176.             execute console command "/scoreboard objectives setdisplay sidebar kills"
  177.             message "{@P} Killboard enabled!"
  178.         else if arg 1 is "off":
  179.             execute console command "/scoreboard objectives remove kills"
  180.             message "{@P} Killboard disabled!"     
  181.            
  182.        
  183. # Events #
  184.  
  185. #- UHC Events -#
  186.  
  187. on death of player:
  188.     if {UHC.Started} is true:
  189.         if victim is op:
  190.             make victim execute command "/specinfo on"
  191.             make victim execute command "/van"
  192.             make victim execute command "/vanflag +chat"
  193.         else:
  194.             execute console command "/whitelist remove %victim%"
  195.         execute console command "/spawn %victim%"
  196.         execute console command "/scoreboard players reset %victim%"
  197.         message "{@P} Sorry to see you have died! Please leave after saying your goodbyes." to victim
  198.         wait 30 seconds
  199.         execute console command "kick %event-player% GG, we hope to see you soon! o/"
  200.        
  201. on death of player:
  202.     attacker is a player:
  203.         stop trigger
  204.     else:
  205.         execute console command "scoreboard players add &c&lPvE {@KillboardName} 1"
  206.        
  207.        
  208. on damage of player:
  209.     {FirstDamage} is true
  210.     set {FirstDamage} to false
  211.     command "/say {@P}{@H} %victim% {@C}took the first damage!"    
  212.        
  213. on join:
  214.     set join message to "&7[&a&l>&7] &8%event-player% joined"
  215.  
  216. on quit:
  217.     set quit message to "&7[&c&l<&7] &8%event-player% left"
  218.    
  219. on player respawn:
  220.    {UHC.Started} is true
  221.    wait 3 ticks
  222.    execute console command "mvtp %event-player% lobby"
  223.  
  224. # wait 1 second
  225.                             #command "/title @p title {text:""Go to 0,0! Only stop for a fight!"",color:""dark_aqua"",bold:true}"
  226. #muting
  227.  
  228. on join:
  229.    set player's gamemode to survival
  230.    
  231. command /aps [<text>] [<number>]:
  232.     permission: skript.fleftscatter
  233.     trigger:
  234.         if arg-2 is not set:
  235.             set {_pitch} to 1
  236.         if arg-2 is set:
  237.             set {_pitch} to arg-2
  238.         loop all players:
  239.             execute console command "/playsound %arg-1% %loop-player% ~ ~ ~ 1 %{_pitch}% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement