Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Mana skript
- # Sk by 6dayna6, scenario by burningT
- # Contact me on skype (dayne.o) for questions or concerns.
- options:
- P: &6&l[&e&lMana&6&l]
- variables:
- {mana}=false
- command /mana <text>:
- usage: /mana help
- trigger:
- if arg 1 is not set:
- send "{@P} &b/mana on - &3Enables Mana scenario."
- send "{@P} &b/mana off - &3Disables Mana scenario."
- send "{@P} &b/mana help - &3Displays Mana commands."
- send "{@P} &b/mana buy <gold,book,haste,arrows,gapple,strength> - &3Purchase an item at a level cost."
- send "{@P} &b/mana prices - &3Displays prices for items and effects."
- if arg 1 is equal to "on" or "enable":
- if command sender has permission "skript.op":
- if {mana} is true:
- send "{@P} &bMana is already enabled!"
- else if {mana} is false:
- set {mana} to true
- broadcast "{@P} &bMana enabled!"
- else if command sender does not have permission "skript.op":
- send "{@P} &cYou do not have permission."
- if arg 1 is equal to "off" or "disable":
- if command sender has permission "skript.op":
- if {mana} is false:
- send "{@P} &bMana is already disabled!"
- else if {mana} is true:
- set {mana} to false
- broadcast "{@P} &bMana disabled!"
- loop all players:
- remove haste from loop-player
- remove strength from loop-player
- else if command sender does not have permission "skript.op":
- send "{@P} &cYou do not have permission."
- if arg 1 is equal to "help":
- send "{@P} &b/mana on - &3Enables Mana scenario."
- send "{@P} &b/mana off - &3Disables Mana scenario."
- send "{@P} &b/mana help - &3Displays Mana commands."
- send "{@P} &b/manabuy <gold,book,haste,arrows,gapple,strength> - &3Purchase an item at a level cost."
- send "{@P} &b/mana prices - &3Displays prices for items and effects."
- if arg 1 is equal to "prices":
- send "{@P} &e1 Gold Ingot &b- &33 levels"
- send "{@P} &f1 Book &b- &35 levels"
- send "{@P} &910 Min Haste II &b- &310 levels"
- send "{@P} &532 Arrows &b- &315 levels"
- send "{@P} &61 Golden Apple &b- &320 levels"
- send "{@P} &45 Min Strength I &b- &330 levels"
- command /manabuy <text>:
- usage: &b/manabuy <gold,book,haste,arrows,gapple,strength>
- trigger:
- if arg 1 is equal to "gold":
- if the player's level is higher than 2:
- reduce the player's level by 3
- give player 1 gold ingot
- send "{@P} &bYou've been given a &eGold Ingot&b!"
- if arg 1 is equal to "book":
- if the player's level is higher than 4:
- reduce the player's level by 5
- give player 1 book
- send "{@P} &bYou've been given a &fBook&b!"
- if arg 1 is equal to "haste":
- if the player's level is higher than 9:
- reduce the player's level by 10
- apply haste 2 to the player for 10 minutes
- send "{@P} &bYou've been given &9Haste II&b!"
- if arg 1 is equal to "arrows":
- if the player's level is higher than 14:
- reduce the player's level by 15
- give player 32 arrows
- send "{@P} &bYou've been given &532 Arrows&b!"
- if arg 1 is equal to "gapple":
- if the player's level is higher than 19:
- reduce the player's level by 20
- give player 1 golden apple
- send "{@P} &bYou've been given a &6Golden Apple&b!"
- if arg 1 is equal to "strength":
- if the player's level is higher than 29:
- reduce the player's level by 30
- apply strength to the player for 5 minutes
- send "{@P} &bYou've been given &4Strength I&b!"
- # The Catalyst
- on death of player:
- if {mana} is true:
- attacker is a player
- increase the attacker's level by 4
- send "{@P} &bYour level has increased by 4!"
- on damage of player:
- if {mana} is true:
- reduce the victim's level by 1
- send "{@P} &bYour level has been decreased by 1!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement