Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.87 KB | None | 0 0
  1. #- Scenario Skript -#
  2. #- Edited and Remade by Melonn -#
  3. #- Made for the DynastyPvP / DynastyUHC Server -#
  4.  
  5. options:
  6. Permission: skript.op
  7. PermissionDeny: &4You do not have permission to execute this command.
  8. P: &8[&aMoles&8]&7
  9.  
  10.  
  11.  
  12. command /scenario [<text>] [<text>] [<text>]:
  13. usage: /scenario (help) (list) (scenarioname)
  14. permission: {@Permission}
  15. permission message: {@PermissionDeny}
  16. executable by: players and console
  17. trigger:
  18.  
  19. #-----#
  20.  
  21. if arg-1 is "help":
  22. message " &a------------------=+=------------------" to player
  23. message " &7/Scenario List - (lists all the scenarios)" to player
  24. message " &7Example: /scenario list" to player
  25. message " &a------------------=+=------------------" to player
  26. message " &7/Scenario scenarioname_E/D - (E/D a scenario)" to player
  27. message " &7Example: /scenario cutclean_E/D" to player
  28. message " &a------------------=+=------------------" to player
  29. message " &7/scenario DisableAll - (disables all skripts)" to player
  30. message " &7Example: /scenario disableall" to player
  31. message " &a------------------=+=------------------" to player
  32. message " &7/ScenarioBar set scene - (sets scenario bossbar)" to player
  33. message " &7Example: /scenariobar set &aTo2 CutClean Rush!" to player
  34. message " &a------------------=+=------------------" to player
  35.  
  36. #-----#
  37.  
  38. if arg-1 is "list":
  39. message "&a&m>------------------<" to player
  40. message " &a&nScenario List" to player
  41. message " &aEnable all scenarios after scatter"
  42. message "" to player
  43. message " &aCutClean" to player
  44. message " &aBarebones &7(Start command /uhc barebones)" to player
  45. message " &aTimeBomb" to player
  46. message " &aGoToHell &7(Enable when you want damage to take effect)" to player
  47. message " &aBestPVE" to player
  48. message " &aPotential Hearts &2(phearts) &7(Enable after final heal)"
  49. message " &a&mAssassins"
  50. message " &aTripleOres &7(You dont need to enable CutClean)"
  51. message " &aBlood Diamonds"
  52. message " &aDiamondless"
  53. message " &aDragon Rush &7(Start command /uhc drush)"
  54. message "" to player
  55. message "&a&m>------------------<" to player
  56.  
  57. #-----#
  58.  
  59. if arg-1 is "disableall":
  60. make console execute "/cutclean disable"
  61. make console execute "/ptool disable barebones"
  62. make console execute "/timebomb disable"
  63. make console execute "/gotohell off"
  64. make console execute "/bStop"
  65. make console execute "/pothearts off"
  66. make console execute "/blooddiamonds disable"
  67. make console execute "/cutclean2 disable"
  68. make console execute "/diamondless disable"
  69. make console execute "/erush off"
  70. broadcast " &7Disabled all scenarios!"
  71.  
  72. #-----#
  73.  
  74. if arg-1 is "CutClean_E":
  75. make console execute "/cutclean enable"
  76. broadcast " &aCutClean Enabled"
  77.  
  78. if arg-1 is "barebones_e":
  79. make console execute "/ptool enable barebones"
  80. broadcast " &aBarebones Enabled"
  81.  
  82. if arg-1 is "timebomb_E":
  83. make console execute "/timebomb enable"
  84. make console execute "/setbombtimer"
  85. make console execute "/setexplosionforce"
  86. broadcast " &aTimeBomb Enabled"
  87.  
  88. if arg-1 is "gotohell_e":
  89. make console execute "/gotohell on"
  90. broadcast " &aGo To Hell Enabled"
  91.  
  92. if arg-1 is "bestpve_e":
  93. make console execute "/bstart"
  94.  
  95. if arg-1 is "phearts_e":
  96. make console execute "/pothearts on"
  97. broadcast " &aPotential Hearts Enabled"
  98.  
  99. if arg-1 is "tripleores_e":
  100. make console execute "/cutclean2 enable"
  101. broadcast " &aTripleOres Enabled"
  102.  
  103. if arg-1 is "blooddiamonds_e":
  104. make console execute "/blooddiamonds enable"
  105. broadcast " &aBlood Diamonds Enabled"
  106.  
  107. if arg-1 is "diamondless_e":
  108. make console execute "/diamondless enable"
  109. broadcast " &aDiamondless Enabled"
  110.  
  111. if arg-1 is "dragonrush_e":
  112. make console execute "/dragonrush on"
  113. broadcast " &DragonRush Enabled"
  114.  
  115. #-----#
  116.  
  117. if arg-1 is "CutClean_D":
  118. make console execute "/cutclean disable"
  119. broadcast " &aCutClean Disabled"
  120.  
  121. if arg-1 is "barebones_d":
  122. make console execute "/ptool disable barebones"
  123. broadcast " &aBarebones Disabled"
  124.  
  125. if arg-1 is "timebomb_D":
  126. make console execute "/timebomb disable"
  127. broadcast " &aTimeBomb Disabled"
  128.  
  129.  
  130. if arg-1 is "gotohell_D":
  131. make console execute "/gotohell disable"
  132. broadcast " &aGo To Hell Disabled"
  133.  
  134. if arg-1 is "bestpve_d":
  135. make console execute "/bstop"
  136.  
  137. if arg-1 is "phearts_D":
  138. make console execute "/pothearts off"
  139. broadcast " &aPotential Hearts Disabled"
  140.  
  141. if arg-1 is "tripleores_d":
  142. make console execute "/cutclean2 disable"
  143. broadcast " &aTripleOres Disabled"
  144.  
  145. if arg-1 is "blooddiamonds_d":
  146. make console execute "/blooddiamonds disable"
  147. broadcast " &aBlood Diamonds Disabled"
  148.  
  149. if arg-1 is "diamondless_d":
  150. make console execute "/diamondless disable"
  151. broadcast " &aDiamondless Disabled"
  152.  
  153. if arg-1 is "dragonrush_d":
  154. make console execute "/dragonrush off"
  155. broadcast " &aDragonRush Disabled"
  156.  
  157. #-----# CutClean #-----#
  158.  
  159. command /cutclean <text>:
  160. permission: {@Permission}
  161. permission message: {@PermissionDeny}
  162. executable by: players and console
  163. trigger:
  164. if arg 1 is "enable":
  165. set {cutclean} to true
  166. if arg 1 is "disable":
  167. set {cutclean} to false
  168.  
  169. #- Mining -#
  170.  
  171. on mine of gravel:
  172. if {cutclean} is true:
  173. set block to air
  174. chance of 100%
  175. drop 1 flint
  176. cancel the event
  177.  
  178.  
  179. on mine of iron ore:
  180. if {cutclean} is true:
  181. set block to air
  182. drop 1 iron ingot
  183. cancel the event
  184. drop 3 exp
  185.  
  186. on mine of gold ore:
  187. if {cutclean} is true:
  188. set block to air
  189. drop 1 gold ingot
  190. cancel the event
  191. drop 3 exp
  192.  
  193. on mine of diamond ore:
  194. if {cutclean} is true:
  195. if {diamondless} is not set:
  196. set block to air
  197. drop 1 diamond
  198. cancel the event
  199. drop 3 exp
  200.  
  201. on mine of coal ore:
  202. if {cutclean} is true:
  203. set block to air
  204. drop 1 coal
  205. cancel the event
  206. drop 3 exp
  207.  
  208. on death of a pig:
  209. if {cutclean} is true:
  210. clear drops
  211. drop 3 cooked porkchop at the pig
  212.  
  213. on death of a cow:
  214. if {cutclean} is true:
  215. clear drops
  216. drop 3 steak at the cow
  217. drop 1 leather at the cow
  218.  
  219. on death of a chicken:
  220. if {cutclean} is true:
  221. clear drops
  222. drop 1 cooked chicken at the chicken
  223. drop 2 feather at the chicken
  224.  
  225. on death of a villager:
  226. if {cutclean} is true:
  227. clear drops
  228. drop 1 book at the villager
  229.  
  230. on death of a sheep:
  231. if {cutclean} is true:
  232. clear drops
  233. drop 1 bread at the sheep
  234.  
  235. on death of a spider:
  236. if {cutclean} is true:
  237. clear drops
  238. drop 2 string at the spider
  239.  
  240.  
  241.  
  242. #-----# Barebones #-----#
  243.  
  244. variables:
  245. {barebones}=false
  246.  
  247. command /barebones <text>:
  248. permission: skript.op
  249. trigger:
  250. if arg 1 is "enable":
  251. if {barebones} is false:
  252. set {barebones} to true
  253. stop
  254. if {barebones} is true:
  255.  
  256. stop
  257. if arg 1 is "disable":
  258. if {barebones} is true:
  259. set {barebones} to false
  260.  
  261. stop
  262. if {barebones} is false:
  263.  
  264. stop
  265. if arg 1 is "toggle":
  266. if {barebones} is true:
  267. set {barebones} to false
  268.  
  269. stop
  270. if {barebones} is false:
  271. set {barebones} to true
  272.  
  273. stop
  274.  
  275. on mine of gold ore:
  276. if {barebones} is true:
  277. set the block to air
  278. cancel the event
  279. drop 1 iron ingot
  280.  
  281.  
  282. on mine of diamond ore:
  283. if {barebones} is true:
  284. set the block to air
  285. cancel the event
  286. drop 1 iron ingot
  287.  
  288.  
  289. on craft of enchantment table:
  290. if {barebones} is true:
  291. cancel the event
  292.  
  293. on craft of anvil:
  294. if {barebones} is true:
  295. cancel the event
  296.  
  297. on craft of golden apple:
  298. if {barebones} is true:
  299. cancel the event
  300.  
  301. on death of a player:
  302. if {barebones} is true:
  303. drop 1 golden apple at the player
  304. drop 1 diamond at the player
  305. drop 32 arrows at the player
  306. drop 2 string at the player
  307.  
  308.  
  309.  
  310.  
  311. #-----# Rush Kit #-----#
  312.  
  313. command /rushkit <player>:
  314. permission: skript.op
  315. trigger:
  316. give arg-1 stone sword named "&6Stone Sword"
  317. give arg-1 stone pickaxe named "&6Stone Pickaxe"
  318. give arg-1 stone shovel named "&6Stone Shovel"
  319. give arg-1 stone axe named "&6Stone Axe"
  320.  
  321.  
  322.  
  323. #-----# Time Bomb #-----#
  324.  
  325. command /timebomb <text="toggle">:
  326. description: Enable/Disable/Toggle Time Bomb
  327. usage: /timebomb [enable/disable/toggle] defaults to toggle
  328. permission: UHC.Admin
  329. trigger:
  330. if arg 1 is "disable":
  331. set {timebomb} to false
  332. execute console command "/gamerule keepInventory false"
  333. else if arg 1 is "enable":
  334. set {timebomb} to true
  335. execute console command "/gamerule keepInventory true"
  336.  
  337. command /setbombtimer <integer=30>:
  338. description: Set the length of time until the bomb goes off
  339. usage: /setbombtimer [time (s)] Defaults to 30s
  340. permission: UHC.Admin
  341. trigger:
  342. set {timer} to arg 1
  343.  
  344. command /setexplosionforce <integer=10>:
  345. description: Set the force of the time bomb explosion
  346. usage: /setexplosionforce [force (1-10)] Default force is 10
  347. permission: UHC.Admin
  348. trigger:
  349. set {explosionforce} to arg 1
  350. on death of player:
  351. if {timebomb} is true:
  352. set {_tempinventory} to the player's inventory
  353. set {_templocation} to the block below the player
  354. set block 1 meter north of {_templocation} to Chest
  355. set block at {_templocation} to Chest
  356. set the inventory of the block at {_templocation} to {_tempinventory}
  357. if {timer} is set:
  358. set {_bombcounter} to {timer}
  359. else:
  360. set {_bombcounter} to 30
  361. if {explosionforce} is not set:
  362. set {explosionforce} to 10
  363. while {_bombcounter} is greater than 0:
  364. set {_bombcounter} to ({_bombcounter} - 1)
  365. wait 1 second
  366. broadcast "&a&lDynasty&2&lUHC &8&l> &9%player%'s &bcorpse has exploded!"
  367. create an explosion of force {explosionforce} at {_templocation}
  368. strike lightning at {_templocation}
  369. wait 1 second
  370. strike lightning at {_templocation}
  371.  
  372. on player respawn:
  373. if {timebomb} is true:
  374. clear the player's inventory
  375.  
  376.  
  377.  
  378. #-----# Go To Hell #-----#
  379.  
  380. options:
  381. S: &8[&aGoToHell&8]
  382.  
  383. command /gotohell <text>:
  384. permission: skript.op
  385. description: Enables the scenario
  386. aliases: /gth
  387. trigger:
  388. if arg 1 is "enable" or "on":
  389. set {GoToHell} to true
  390. broadcast "&a&lDynasty&2&lUHC &8&l> &c&lYou must now enter the Nether"
  391.  
  392. else if arg 1 is "disable" or "off":
  393. if {GoToHell} is true:
  394. set {GoToHell} to false
  395.  
  396.  
  397. command /gotohellhelp:
  398. trigger:
  399. if {GoToHell} is true:
  400. message "&7---------------------------------------------" to command sender
  401. message " " to command sender
  402. message "{@S} &ais a scenario similar to SkyHigh!" to command sender
  403. message "&a You have 45 minutes to gear up before you &a&lmust &aenter the &4&lNether" to command sender
  404. message "&a If you are not in the Nether after the 45 minute mark you will take 0.5 hearts of damage every 30 seconds!" to command sender
  405. message "&4&lHint: &aLava Buckets are very useful to have!" to command sender
  406. message " " to command sender
  407. message "&7---------------------------------------------" to command sender
  408.  
  409. every 30 seconds:
  410. loop all players:
  411. {GoToHell} is true
  412. biome at loop-player is not hell:
  413. damage the loop-player by 0.5 hearts
  414.  
  415. #-----# Pot Hearts #-----#
  416.  
  417. command /pothearts [<text>]:
  418. permission: skript.op
  419. permission message: Unknown command! Type /help.
  420. trigger:
  421. if arg-1 is "on" or "enable":
  422. set {pothearts} to true
  423. loop all players:
  424. set the loop-player's max health to 20
  425.  
  426. if arg-1 is "off" or "disable":
  427. set {pothearts} to false
  428. loop all players:
  429. set loop-player's max health to 10
  430.  
  431. on death of player:
  432. if {pothearts} is true:
  433. set the player's max health to 10
  434.  
  435. command /addpothearts [<text>]:
  436. usage: /addpothearts <player>
  437. permission: skript.op
  438. trigger:
  439. set the max health of the player to 20
  440.  
  441. command /removepothearts [<text>]:
  442. usage: /removepothearts <player>
  443. permission: skript.op
  444. trigger:
  445. set max health of the player to 10
  446.  
  447. #-----# Best PvE #-----#
  448. options:
  449. P: &8[&9Best PvE&8]
  450. H: &c
  451. C: &b
  452. waittime: 10 #minutes
  453.  
  454. command /bStart:
  455. permission: bestpve.start
  456. aliases: /bestpvestart
  457. trigger:
  458. set {bestpve} to true
  459. set {bestpve.time} to {@waittime}
  460. loop all players:
  461. set {bestpve::%loop-player%} to "%loop-player%"
  462. broadcast "&aBestPvE Enabled"
  463.  
  464. command /bStop:
  465. aliases: /bestpvestop
  466. permission: bestpve.stop
  467. trigger:
  468. if {bestpve} is not set:
  469. send "&cBestPvE Not Enabled!"
  470. stop
  471. delete {bestpve}
  472. delete {bestpve::*}
  473. delete {bestpve.time}
  474. loop all players:
  475. set loop-player's max health to 10
  476. broadcast "&aBestPvE Disabled"
  477.  
  478. command /bList:
  479. aliases: /bestpvelist
  480. trigger:
  481. if {bestpve} is not set:
  482. send "&cBestPvE Not Enabled!"
  483. else:
  484. if {bestpve::*} is not set:
  485. send "&cNobody on the list!"
  486. else:
  487. send "&b%{bestpve::*}%"
  488.  
  489. command /bAdd <player>:
  490. aliases: /bestpveadd
  491. permission: bestpve.add
  492. trigger:
  493. if {bestpve} is not set:
  494. send "{@C} Not Enabled!"
  495. stop
  496. if {bestpve::%arg-1%} is set:
  497. send "&c%arg-1% is already on the list!"
  498. else:
  499. broadcast "&a%arg-1% added to the list."
  500. set {bestpve::%arg-1%} to "%arg-1%"
  501.  
  502. command /bRemove <player>:
  503. aliases: /bestpveremove
  504. permission: bestpve.remove
  505. trigger:
  506. if {bestpve} is not set:
  507. send "&cBestPvE Not Enabled!"
  508. stop
  509. if {bestpve::%arg-1%} is not set:
  510. send "&c%arg-1% is not on the list!"
  511. else:
  512. broadcast "&c%arg-1% removed from the list."
  513. delete {bestpve::%arg-1%}
  514.  
  515. every minute:
  516. {bestpve} is true
  517. remove 1 from {bestpve.time}
  518. if {bestpve.time} is less than or equal to 0:
  519. loop {bestpve::*}:
  520. set {_player} to ("%loop-index%" parsed as offlineplayer)
  521. add 1 to {_player}'s max health
  522. add 1 to {_player}'s health
  523. send "&aYou have been rewarded for your PvE Skills!" to {_player}
  524. set {bestpve.time} to {@waittime}
  525.  
  526. on death of a player:
  527. {bestpve} is true
  528. {bestpve::%attacker%} is not set
  529. set victim's max health to 10
  530. wait 1 second
  531. broadcast "&a%attacker% is added back to the list!"
  532. set {bestpve::%attacker%} to "%attacker%"
  533.  
  534. on damage of a player:
  535. {bestpve} is true
  536. {bestpve::%victim%} is set
  537. broadcast "&c%victim% took damage!"
  538. delete {bestpve::%victim%}
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566. command /cutclean2 <text>:
  567. permission: {@Permission}
  568. permission message: {@PermissionDeny}
  569. executable by: players and console
  570. trigger:
  571. if arg 1 is "enable":
  572. set {cutclean2} to true
  573. if arg 1 is "disable":
  574. set {cutclean2} to false
  575.  
  576. #===================#
  577. #= CutClean Mining =#
  578. #===================#
  579. on mine of gravel:
  580. if {cutclean2} is true:
  581. set block to air
  582. chance of 100%
  583. drop 1 flint
  584. cancel the event
  585.  
  586.  
  587.  
  588. on mine of iron ore:
  589. if {cutclean2} is true:
  590. set block to air
  591. drop 3 iron ingot
  592. drop 3 exp
  593. cancel the event
  594.  
  595. on mine of gold ore:
  596. if {cutclean2} is true:
  597. set block to air
  598. drop 3 gold ingot
  599. drop 3 exp
  600. cancel the event
  601.  
  602. on mine of diamond ore:
  603. if {cutclean2} is true:
  604. set block to air
  605. drop 3 diamond
  606. drop 3 exp
  607. cancel the event
  608.  
  609. on mine of coal ore:
  610. if {cutclean2} is true:
  611. set block to air
  612. drop 3 coal
  613. drop 3 exp
  614. cancel the event
  615.  
  616. on death of a pig:
  617. if {cutclean2} is true:
  618. clear drops
  619. drop 3 cooked porkchop at the pig
  620.  
  621. on death of a cow:
  622. if {cutclean2} is true:
  623. clear drops
  624. drop 3 steak at the cow
  625. drop 1 leather at the cow
  626.  
  627. on death of a chicken:
  628. if {cutclean2} is true:
  629. clear drops
  630. drop 3 cooked chicken at the chicken
  631. drop 2 feather at the chicken
  632.  
  633. on death of a villager:
  634. if {cutclean2} is true:
  635. clear drops
  636. drop 1 book at the villager
  637.  
  638. on death of a sheep:
  639. if {cutclean2} is true:
  640. clear drops
  641. drop 1 bread at the sheep
  642.  
  643. on death of a spider:
  644. if {cutclean2} is true:
  645. clear drops
  646. drop 2 string at the spider
  647.  
  648.  
  649.  
  650.  
  651.  
  652. command /blooddiamonds <text>:
  653. usage: /blooddiamonds <enable:disable>
  654. permission: skript.op
  655. trigger:
  656. if arg-1 is "enable":
  657. set {blooddiamonds} to true
  658.  
  659. if arg-1 is "disable":
  660. delete {blooddiamonds}
  661.  
  662. on mine of diamond ore:
  663. if {blooddiamonds} is set:
  664. damage the player by 0.5 hearts
  665.  
  666.  
  667.  
  668. command /diamondless <text>:
  669. usage: /diamondless <enable:disable>
  670. permission: skript.op
  671. trigger:
  672. if arg-1 is "enable":
  673. set {diamondless} to true
  674.  
  675. if arg-1 is "disable":
  676. delete {diamondless}
  677.  
  678. on break of diamond ore:
  679. if {diamondless} is set:
  680. cancel the event
  681. set block to air
  682.  
  683.  
  684.  
  685. on death of a player:
  686. if {diamondless} is true:
  687. drop 1 diamond at the player
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707. command /erush <text>:
  708. permission: skript.op
  709. permission message: No permission!
  710. trigger:
  711. if arg-1 is "on" or "enable":
  712. set {enderdragon} to true
  713.  
  714. if arg-1 is "off" or "disable":
  715. set {enderdragon} to false
  716. set {epearl} to 0
  717.  
  718. on death of ender dragon:
  719. if {enderdragon} is true
  720. broadcast "&a&lDynasty&2&lUHC &8&l> &aThe Ender Dragon was killed by &c%attacker%!"
  721.  
  722. on rightclick on 120 with eye of ender:
  723. if {enderdragon} is true
  724. add 1 to {epearl}
  725. broadcast "&a&lDynasty&2&lUHC &8&l> &a%{epearl}% out of 3 ender eyes have been placed!"
  726. wait 1 second
  727. if {epearl} is 3:
  728. broadcast "&a&lDynasty&2&lUHC &8&l> &aThe End Portal has been made!"
  729. set {epearl} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement