Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------->
- #>Autor: andrzex
- #>Wersja: v1.1
- #--------------------------------------->
- #<><><><><><><><>Licencja<><><><><><><>#
- #>> Nie pozwalam podszywać się pod autora
- #>> Nie pozwalam usuwać INFORMACJI o autorze i licencji
- #>> Pozwalam edytować kod na swoje potrzeby
- #--------------------------------------->
- on join:
- {LVL:%player%} is not set:
- set {LVL:%player%} to 1
- {PUNKTY:%player%} is not set:
- set {PUNKTY:%player%} to 0
- {MaxPUNKTY:%player%} is not set:
- set {MaxPUNKTY:%player%} to 160
- {MINUTY:%player%} is not set:
- set {MINUTY:%player%} to 0
- options:
- czat:&8[&7{LVL}&8] {DISPLAY}&6-> &f{MESSAGE}
- stonexp: 2
- # <--- Procent na DROP ze STONA ---> [EDYTUJ]
- procentdiament: 0.5
- procentemerald: 1.7
- procentzloto: 2.0
- procentzelazo: 3.4
- procentredstone: 4.1
- procentwegiel: 4.6
- # <--- Procent na EXP z SUROWCÓW ---> [EDYTUJ]
- diamondxp: 1
- emeraldxp: 1
- zlotoxp: 1
- zelazoxp: 1
- redstonexp: 1
- wegielxp: 1
- # <--- Procent na EXP z SUROWCÓW z FORTUNE 1 ---> [EDYTUJ]
- diamondxpFortune1: 1
- emeraldxpFortune1: 1
- zlotoxpFortune1: 1
- zelazoxpFortune1: 1
- redstonexpFortune1: 1
- wegielxpFortune1: 1
- # <--- Procent na EXP z SUROWCÓW z FORTUNE 2 ---> [EDYTUJ]
- diamondxpFortune2: 1
- emeraldxpFortune2: 1
- zlotoxpFortune2: 1
- zelazoxpFortune2: 1
- redstonexpFortune2: 1
- wegielxpFortune2: 1
- # <--- Procent na EXP z SUROWCÓW z FORTUNE 3 ---> [EDYTUJ]
- diamondxpFortune3: 1
- emeraldxpFortune3: 1
- zlotoxpFortune3: 1
- zelazoxpFortune3: 1
- redstonexpFortune3: 1
- wegielxpFortune3: 1
- # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW ze STONA ---> [EDYTUJ]
- pktDiament: 1
- pktEmerald: 1
- pktZloto: 1
- pktZelazo: 1
- pktRedstone: 1
- pktWegiel: 1
- # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 1 ze STONA ---> [EDYTUJ]
- pktDiamentFortune1: 1
- pktEmeraldFortune1: 1
- pktZlotoFortune1: 1
- pktZelazoFortune1: 1
- pktRedstoneFortune1: 1
- pktWegielFortune1: 1
- # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 2 ze STONA ---> [EDYTUJ]
- pktDiamentFortune2: 1
- pktEmeraldFortune2: 1
- pktZlotoFortune2: 1
- pktZelazoFortune2: 1
- pktRedstoneFortune2: 1
- pktWegielFortune2: 1
- # <--- Punkty jakie dostaniemy po wykopaniu SUROWCÓW Z FORTUNA 3 ze STONA ---> [EDYTUJ]
- pktDiamentFortune3: 1
- pktEmeraldFortune3: 1
- pktZlotoFortune3: 1
- pktZelazoFortune3: 1
- pktRedstoneFortune3: 1
- pktWegielFortune3: 1
- command /pkt:
- trigger:
- send "&7---------------------------------------"
- send "&7> &3Lvl: &7%{LVL:%player%}%"
- send "&7> &3Masz &7%{PUNKTY:%player%}%&3 na &7%{MaxPUNKTY:%player%}%&3 Punktow"
- send "&7> &3Czas gry: &7%{MINUTY:%player%}% &3Minut"
- send "&7---------------------------------------"
- on mine of stone:
- chance of 100%:
- give {@stonexp} xp to the player
- add 1 to {PUNKTY:%player%}
- chance of {@procentdiament}%:
- give 1 diamond to the player
- give {@diamondxp} xp to the player
- add {@pktDiament} to {PUNKTY:%player%}
- send "&3Wykopales: &bDiament!"
- chance of {@procentemerald}%:
- give 1 emerald to the player
- give {@emeraldxp} xp to the player
- add {@pktEmerald} to {PUNKTY:%player%}
- send "&3Wykopales: &aEmerald!"
- chance of {@procentzloto}%:
- give 1 gold ore to the player
- give {@zlotoxp} xp to the player
- add {@pktZloto} to {PUNKTY:%player%}
- send "&3Wykopales: &6Zloto!"
- chance of {@procentzelazo}%:
- give 1 iron ore to the player
- give {@zelazoxp} xp to the player
- add {@pktZelazo} to {PUNKTY:%player%}
- send "&3Wykopales: &7Zelazo!"
- chance of {@procentredstone}%:
- give 1 redstone to the player
- give {@redstonexp} xp to the player
- add {@pktRedstone} to {PUNKTY:%player%}
- send "&3Wykopales: &4Redstone!"
- chance of {@procentwegiel}%:
- give 1 coal to the player
- give {@wegielxp} xp to the player
- add {@pktWegiel} to {PUNKTY:%player%}
- send "&3Wykopales: &0Wegiel!"
- if player's tool is pickaxe of fortune 1:
- chance of {@procentdiament}%:
- give a random number between 1 and 2 of diamond to the player
- give {@diamondxpFortune1} xp to the player
- add {@pktDiamentFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &bDiamenty!"
- chance of {@procentemerald}%:
- give a random number between 1 and 2 of emerald to the player
- give {@emeraldxpFortune1} xp to the player
- add {@pktEmeraldFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &aEmeraldy!"
- chance of {@procentzloto}%:
- give a random number between 1 and 2 of gold ore to the player
- give {@zlotoxpFortune1} xp to the player
- add {@pktZlotoFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &6Zloto!"
- chance of {@procentzelazo}%:
- give a random number between 1 and 2 of iron ore to the player
- give {@zelazoxpFortune1} xp to the player
- add {@pktZelazoFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &7Zelazo!"
- chance of {@procentredstone}%:
- give a random number between 1 and 2 of redstone to the player
- give {@redstonexpFortune1} xp to the player
- add {@pktRedstoneFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &4Redstone!"
- chance of {@procentwegiel}%:
- give a random number between 1 and 2 of coal to the player
- give {@wegielxpFortune1} xp to the player
- add {@pktWegielFortune1} to {PUNKTY:%player%}
- send "&3Wykopales: &0Wegiel!"
- if player's tool is pickaxe of fortune 2:
- chance of {@procentdiament}%:
- give a random number between 1 and 3 of diamond to the player
- give {@diamondxpFortune2} xp to the player
- add {@pktDiamentFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &bDiamenty!"
- chance of {@procentemerald}%:
- give a random number between 1 and 3 of emerald to the player
- give {@emeraldxpFortune2} xp to the player
- add {@pktEmeraldFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &aEmeraldy!"
- chance of {@procentzloto}%:
- give a random number between 1 and 3 of gold ore to the player
- give {@zlotoxpFortune2} xp to the player
- add {@pktZlotoFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &6Zloto!"
- chance of {@procentzelazo}%:
- give a random number between 1 and 3 of iron ore to the player
- give {@zelazoxpFortune2} xp to the player
- add {@pktZelazoFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &7Zelazo!"
- chance of {@procentredstone}%:
- give a random number between 1 and 3 of redstone to the player
- give {@redstonexpFortune2} xp to the player
- add {@pktRedstoneFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &4Redstone!"
- chance of {@procentwegiel}%:
- give a random number between 1 and 3 of coal to the player
- give {@wegielxpFortune2} xp to the player
- add {@pktWegielFortune2} to {PUNKTY:%player%}
- send "&3Wykopales: &0Wegiel!"
- if player's tool is pickaxe of fortune 3:
- chance of {@procentdiament}%:
- give a random number between 1 and 4 of diamond to the player
- give {@diamondxpFortune3} xp to the player
- add {@pktDiamentFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &bDiamenty!"
- chance of {@procentemerald}%:
- give a random number between 1 and 4 of emerald to the player
- give {@emeraldxpFortune3} xp to the player
- add {@pktEmeraldFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &aEmeraldy!"
- chance of {@procentzloto}%:
- give a random number between 1 and 4 of gold ore to the player
- give {@zlotoxpFortune3} xp to the player
- add {@pktZlotoFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &6Zloto!"
- chance of {@procentzelazo}%:
- give a random number between 1 and 4 of iron ore to the player
- give {@zelazoxpFortune3} xp to the player
- add {@pktZelazoFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &7Zelazo!"
- chance of {@procentredstone}%:
- give a random number between 1 and 4 of redstone to the player
- give {@redstonexpFortune3} xp to the player
- add {@pktRedstoneFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &4Redstone!"
- chance of {@procentwegiel}%:
- give a random number between 1 and 4 of coal to the player
- give {@wegielxpFortune3} xp to the player
- add {@pktWegielFortune3} to {PUNKTY:%player%}
- send "&3Wykopales: &0Wegiel!"
- if {PUNKTY:%player%} is larger than 160:
- if {LVL:%player%} is less than 2:
- set {LVL:%player%} to 2
- set {MaxPUNKTY:%player%} to 220
- send "&6» &7Awansowales na: &32 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 220:
- if {LVL:%player%} is less than 3:
- set {LVL:%player%} to 3
- set {MaxPUNKTY:%player%} to 280
- send "&6» &7Awansowales na: &33 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 280:
- if {LVL:%player%} is less than 4:
- set {LVL:%player%} to 4
- set {MaxPUNKTY:%player%} to 340
- send "&6» &7Awansowales na: &34 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 340:
- if {LVL:%player%} is less than 5:
- set {LVL:%player%} to 5
- set {MaxPUNKTY:%player%} to 420
- send "&6» &7Awansowales na: &35 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 420:
- if {LVL:%player%} is less than 6:
- set {LVL:%player%} to 6
- set {MaxPUNKTY:%player%} to 560
- send "&6» &7Awansowales na: &36 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 560:
- if {LVL:%player%} is less than 7:
- set {LVL:%player%} to 7
- set {MaxPUNKTY:%player%} to 680
- send "&6» &7Awansowales na: &37 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 680:
- if {LVL:%player%} is less than 8:
- set {LVL:%player%} to 8
- set {MaxPUNKTY:%player%} to 860
- send "&6» &7Awansowales na: &38 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 860:
- if {LVL:%player%} is less than 9:
- set {LVL:%player%} to 9
- set {MaxPUNKTY:%player%} to 1060
- send "&6» &7Awansowales na: &39 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 1060:
- if {LVL:%player%} is less than 10:
- set {LVL:%player%} to 10
- set {MaxPUNKTY:%player%} to 1270
- broadcast "&3» &7Gracz &3%player% &7awansowal na &310 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 1270:
- if {LVL:%player%} is less than 11:
- set {LVL:%player%} to 11
- set {MaxPUNKTY:%player%} to 1558
- send "&6» &7Awansowales na: &311 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 1558:
- if {LVL:%player%} is less than 12:
- set {LVL:%player%} to 12
- set {MaxPUNKTY:%player%} to 1898
- send "&6» &7Awansowales na: &312 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 1898:
- if {LVL:%player%} is less than 13:
- set {LVL:%player%} to 13
- set {MaxPUNKTY:%player%} to 2208
- send "&6» &7Awansowales na: &313 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 2208:
- if {LVL:%player%} is less than 14:
- set {LVL:%player%} to 14
- set {MaxPUNKTY:%player%} to 2475
- send "&6» &7Awansowales na: &314 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 2475:
- if {LVL:%player%} is less than 15:
- set {LVL:%player%} to 15
- set {MaxPUNKTY:%player%} to 2745
- send "&6» &7Awansowales na: &315 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 2745:
- if {LVL:%player%} is less than 16:
- set {LVL:%player%} to 16
- set {MaxPUNKTY:%player%} to 3006
- send "&6» &7Awansowales na: &316 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 3006:
- if {LVL:%player%} is less than 17:
- set {LVL:%player%} to 17
- set {MaxPUNKTY:%player%} to 3365
- send "&6» &7Awansowales na: &317 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 3365:
- if {LVL:%player%} is less than 18:
- set {LVL:%player%} to 18
- set {MaxPUNKTY:%player%} to 3587
- send "&6» &7Awansowales na: &318 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 3587:
- if {LVL:%player%} is less than 19:
- set {LVL:%player%} to 19
- set {MaxPUNKTY:%player%} to 3858
- send "&6» &7Awansowales na: &319 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 3858:
- if {LVL:%player%} is less than 20:
- set {LVL:%player%} to 20
- set {MaxPUNKTY:%player%} to 4487
- broadcast "&3» &7Gracz &3%player% &7awansowal na &320 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 4487:
- if {LVL:%player%} is less than 21:
- set {LVL:%player%} to 21
- set {MaxPUNKTY:%player%} to 4487
- send "&6» &7Awansowales na: &321 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 4487:
- if {LVL:%player%} is less than 22:
- set {LVL:%player%} to 22
- set {MaxPUNKTY:%player%} to 4487
- send "&6» &7Awansowales na: &322 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 4897:
- if {LVL:%player%} is less than 23:
- set {LVL:%player%} to 23
- set {MaxPUNKTY:%player%} to 5307
- send "&6» &7Awansowales na: &323 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 5307:
- if {LVL:%player%} is less than 24:
- set {LVL:%player%} to 24
- set {MaxPUNKTY:%player%} to 5787
- send "&6» &7Awansowales na: &324 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 5787:
- if {LVL:%player%} is less than 25:
- set {LVL:%player%} to 25
- set {MaxPUNKTY:%player%} to 6100
- send "&6» &7Awansowales na: &325 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 6100:
- if {LVL:%player%} is less than 26:
- set {LVL:%player%} to 26
- set {MaxPUNKTY:%player%} to 6456
- send "&6» &7Awansowales na: &326 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 6456:
- if {LVL:%player%} is less than 27:
- set {LVL:%player%} to 27
- set {MaxPUNKTY:%player%} to 6943
- send "&6» &7Awansowales na: &327 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 6943:
- if {LVL:%player%} is less than 28:
- set {LVL:%player%} to 28
- set {MaxPUNKTY:%player%} to 5307
- send "&6» &7Awansowales na: &328 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 7469:
- if {LVL:%player%} is less than 29:
- set {LVL:%player%} to 29
- set {MaxPUNKTY:%player%} to 8000
- send "&6» &7Awansowales na: &329 Poziom&7!"
- stop
- if {PUNKTY:%player%} is larger than 8000:
- if {LVL:%player%} is less than 30:
- set {LVL:%player%} to 30
- set {MaxPUNKTY:%player%} to 0
- broadcast "&3» &7Gracz &3%player% &7awansowal na &330 Poziom&7!"
- stop
- on mine of any ore:
- cancel event
- set block to stone
- send "&7Wszystko wypada z kamienia &3/stone"
- every 1 minutes:
- loop all players:
- add 1 to {minuty:%loop-player%}
- command /stone:
- trigger:
- send "&7--------------------&3Drop&7--------------------"
- send "&8>> &bDiament: &3{@procentdiament}"
- send "&8>> &aEmerald: &3{@procentemerald}"
- send "&8>> &6Zloto: &3{@procentzloto}"
- send "&8>> &7Zelazo: &3{@procentzelazo}"
- send "&8>> &4Redstone: &3{@procentredstone}"
- send "&8>> &0Wegiel: &3{@procentwegiel}"
- send "&7--------------------&3Drop&7--------------------"
- on chat:
- set {_chat} to "{@czat}"
- replace all "{LVL}" with "%{LVL:%player%}%" in {_chat}
- replace all "{PLAYER}" with "%player%" in {_chat}
- replace all "{DISPLAY}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "%message%" in {_chat}
- send "%{_chat}%" to all players
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment