Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {levels::%player%} = 0
- {mutechat} = true
- command /mutechat:
- permission: mod
- permission message: &e&l* &7You must be &e&lMOD &7or higher to use this command!
- trigger:
- if {mutechat} is true:
- set {mutechat} to false
- broadcast " "
- broadcast "&c&lCowNetwork &8:: &e%player% &7muted the chat"
- broadcast " "
- else:
- set {mutechat} to true
- broadcast " "
- broadcast "&c&lCowNetwork &8:: &e%player% &7unmuted the chat"
- broadcast " "
- on chat:
- cancel event
- if {mutechat} is false:
- if player does not have permission "mod":
- send "&e&l* &7Chat is muted!"
- else:
- broadcast "&8[&cLvl&0.&c%{levels::%player's uuid%}%&8] &7%player's display name% &6» &7%message%"
- if {mutechat} is true:
- broadcast "&8[&cLvl&0.&c%{levels::%player's uuid%}%&8] &7%player's display name% &6» &7%message%"
- every tick in "CowClicks":
- loop all players:
- if {levels::%loop-player's uuid%} is not set:
- set {levels::%loop-player's uuid%} to 0
- command /toplevel:
- aliases: /levels
- trigger:
- loop {Levels::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- set {_i} to 0
- send "&7&m-----------&8< &6Top10 &8>&7&m-----------"
- loop {_high.to.low.list::*}:
- add 1 to {_topnumber}
- set {_player} to "%loop-value%" parsed as offlineplayer
- send "&7%{_topnumber}% - &c%{_player}% &8» &7Level %{Levels::%loop-value%}%"
- add 1 to {_i}
- if {_topnumber} > 9: #this is top 10 you can change it
- stop
- send "&7&m------------------------------"
- command /levelup:
- trigger:
- if {levels::%player's uuid%} <= 9:
- if player's balance is greater than or equal to 1000000:
- remove 1000000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1M"
- else:
- set {_amount} to 1000000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 10:
- if {levels::%player's uuid%} <= 19:
- if player's balance is greater than or equal to 1200000:
- remove 1200000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1.2M"
- else:
- set {_amount} to 1200000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 20:
- if {levels::%player's uuid%} <= 29:
- if player's balance is greater than or equal to 1400000:
- remove 1400000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1.4M"
- else:
- set {_amount} to 1400000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 30:
- if {levels::%player's uuid%} <= 39:
- if player's balance is greater than or equal to 1600000:
- remove 1600000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1.4M"
- else:
- set {_amount} to 1600000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 30:
- if {levels::%player's uuid%} <= 39:
- if player's balance is greater than or equal to 1600000:
- remove 1600000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1.6M"
- else:
- set {_amount} to 1600000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 40:
- if {levels::%player's uuid%} <= 49:
- if player's balance is greater than or equal to 1800000:
- remove 1800000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$1.8M"
- else:
- set {_amount} to 1800000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 50:
- if {levels::%player's uuid%} <= 59:
- if player's balance is greater than or equal to 2000000:
- remove 2000000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$2M"
- else:
- set {_amount} to 2000000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- if {levels::%player's uuid%} >= 60:
- if {levels::%player's uuid%} <= 69:
- if player's balance is greater than or equal to 2200000:
- remove 2200000 from player's balance
- add 1 to {levels::%player's uuid%}
- add 1 to {totallvl::%player's uuid%}
- send "&7You bought 1 Level for &a&l$2.2M"
- else:
- set {_amount} to 2200000 - player's balance
- send ""
- send "&7You need &c%{_amount}% &7More &a$$$ &7To levelup"
- send ""
- stop
- command /setlevel [<offlineplayer>] [<number>]:
- permission: staff.lollol
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {levels::%arg-1's uuid%} to arg-2
- send "&7You set &c%arg-1%'s levels to &c%arg-2%"
- if arg-1 is not set:
- send "&c/setlevel <player> <number>"
Advertisement
Add Comment
Please, Sign In to add comment