Advertisement
Guest User

mana

a guest
Sep 15th, 2015
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. # Mana skript
  2. # Sk by 6dayna6, scenario by burningT
  3. # Contact me on skype (dayne.o) for questions or concerns.
  4.  
  5. options:
  6. P: &6&l[&e&lMana&6&l]
  7.  
  8. variables:
  9. {mana}=false
  10.  
  11. command /mana <text>:
  12. usage: /mana help
  13. trigger:
  14. if arg 1 is not set:
  15. send "{@P} &b/mana on - &3Enables Mana scenario."
  16. send "{@P} &b/mana off - &3Disables Mana scenario."
  17. send "{@P} &b/mana help - &3Displays Mana commands."
  18. send "{@P} &b/mana buy <gold,book,haste,arrows,gapple,strength> - &3Purchase an item at a level cost."
  19. send "{@P} &b/mana prices - &3Displays prices for items and effects."
  20. if arg 1 is equal to "on" or "enable":
  21. if command sender has permission "skript.op":
  22. if {mana} is true:
  23. send "{@P} &bMana is already enabled!"
  24. else if {mana} is false:
  25. set {mana} to true
  26. broadcast "{@P} &bMana enabled!"
  27. else if command sender does not have permission "skript.op":
  28. send "{@P} &cYou do not have permission."
  29. if arg 1 is equal to "off" or "disable":
  30. if command sender has permission "skript.op":
  31. if {mana} is false:
  32. send "{@P} &bMana is already disabled!"
  33. else if {mana} is true:
  34. set {mana} to false
  35. broadcast "{@P} &bMana disabled!"
  36. loop all players:
  37. remove haste from loop-player
  38. remove strength from loop-player
  39. else if command sender does not have permission "skript.op":
  40. send "{@P} &cYou do not have permission."
  41. if arg 1 is equal to "help":
  42. send "{@P} &b/mana on - &3Enables Mana scenario."
  43. send "{@P} &b/mana off - &3Disables Mana scenario."
  44. send "{@P} &b/mana help - &3Displays Mana commands."
  45. send "{@P} &b/manabuy <gold,book,haste,arrows,gapple,strength> - &3Purchase an item at a level cost."
  46. send "{@P} &b/mana prices - &3Displays prices for items and effects."
  47. if arg 1 is equal to "prices":
  48. send "{@P} &e1 Gold Ingot &b- &33 levels"
  49. send "{@P} &f1 Book &b- &35 levels"
  50. send "{@P} &910 Min Haste II &b- &310 levels"
  51. send "{@P} &532 Arrows &b- &315 levels"
  52. send "{@P} &61 Golden Apple &b- &320 levels"
  53. send "{@P} &45 Min Strength I &b- &330 levels"
  54.  
  55. command /manabuy <text>:
  56. usage: &b/manabuy <gold,book,haste,arrows,gapple,strength>
  57. trigger:
  58. if arg 1 is equal to "gold":
  59. if the player's level is higher than 2:
  60. reduce the player's level by 3
  61. give player 1 gold ingot
  62. send "{@P} &bYou've been given a &eGold Ingot&b!"
  63. if arg 1 is equal to "book":
  64. if the player's level is higher than 4:
  65. reduce the player's level by 5
  66. give player 1 book
  67. send "{@P} &bYou've been given a &fBook&b!"
  68. if arg 1 is equal to "haste":
  69. if the player's level is higher than 9:
  70. reduce the player's level by 10
  71. apply haste 2 to the player for 10 minutes
  72. send "{@P} &bYou've been given &9Haste II&b!"
  73. if arg 1 is equal to "arrows":
  74. if the player's level is higher than 14:
  75. reduce the player's level by 15
  76. give player 32 arrows
  77. send "{@P} &bYou've been given &532 Arrows&b!"
  78. if arg 1 is equal to "gapple":
  79. if the player's level is higher than 19:
  80. reduce the player's level by 20
  81. give player 1 golden apple
  82. send "{@P} &bYou've been given a &6Golden Apple&b!"
  83. if arg 1 is equal to "strength":
  84. if the player's level is higher than 29:
  85. reduce the player's level by 30
  86. apply strength to the player for 5 minutes
  87. send "{@P} &bYou've been given &4Strength I&b!"
  88.  
  89. # The Catalyst
  90.  
  91. on death of player:
  92. if {mana} is true:
  93. attacker is a player
  94. increase the attacker's level by 4
  95. send "{@P} &bYour level has increased by 4!"
  96.  
  97. on damage of player:
  98. if {mana} is true:
  99. reduce the victim's level by 1
  100. send "{@P} &bYour level has been decreased by 1!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement