# # Spis prac i permisje do nich # # Górnik - jobZ.gornik i jobZ.gornik.vip # Drwal - jobZ.drwal i jobZ.drwal.vip # Inżynnier - jobZ.inzynier i jobZ.inzynier.vip # Budowniczy - jobZ.budowniczy i jobZ.budowniczy.vip # Złodziej - jobZ.zlodziej # Policjant - jobZ.policjant i jobZ.policjant.vip # options: # Opcje Górnik Gornik: &a[&9Gornik&a]&r $.gornik.wegiel: 1 $.gornik.kamien: 0.5 $.gornik.zelazo: 1.5 $.gornik.zloto: 3.5 $.gornik.diament: 5.5 $.gornik.redstone: 2 $.gornik.10m: 0.5 # Opcje Drwal Gornik: &a[&9Drwal&a]&r $.drwal.deska: 0.5 $.drwal.kloda: 1 $.drwal.10m: 0.5 # Opcje Inżynnier Inzynier: &a[&9Inzynier&a]&r $.inz.blokzelazo: 1 $.inz.redstone: 2.5 $.inz.10m: 0.5 # Opcje Budowniczy Budowniczy: &a[&9Budowniczy&a]&r $.budo.all: 2.25 $.budo.10m: 0.5 # Opcje Złodziej Zlodziej: &a[&9Gracz&a]&r $.zlo.10m: 2 # Opcje Policjant Policjant: &a[&9Policjant&a]&r $.policjant.zlodziej: 7.5 $.policjant.10m: 1.5 # Inne opcje, na to nie patrz s: Black Stained Glass Pane variables: {jobs.praca::%player%} = 0 {jobs.praca.wykonywanie::%player%} = false command /praca [] []: trigger: if arg 1 is not set: if arg 2 is not set: open chest with 4 rows named "&9Menu prac" to player wait 1 second # Pierwszy rząd format slot 0 of player with 1 of {@s} named " " to be unstealable format slot 1 of player with 1 of {@s} named " " to be unstealable format slot 2 of player with 1 of {@s} named " " to be unstealable format slot 3 of player with 1 of {@s} named " " to be unstealable format slot 4 of player with 1 of {@s} named " " to be unstealable format slot 5 of player with 1 of {@s} named " " to be unstealable format slot 6 of player with 1 of {@s} named " " to be unstealable format slot 7 of player with 1 of {@s} named " " to be unstealable format slot 8 of player with 1 of {@s} named " " to be unstealable wait 10 ticks format slot 9 of player with 1 of {@s} named " " to be unstealable format slot 10 of player with 1 of stone pickaxe named "&8Gornik" with lore "&7Zabrabia na wydobywaniu||&7cennych mineralow, w tym||&7kamienia" to close then run "sudo %player% praca dolacz gornik" format slot 11 of player with 1 of diamond axe named "&8Drwal" with lore "&7Wystarczy, ze popracujesz||&7chwile na tartaku, a juz||&7zarobisz troche||&7pieniedzy" to close then run "sudo %player% praca dolacz drwal" format slot 12 of player with 1 of redstone named "&8Inzynier" with lore "&7Mechanizmy to dla Ciebie||&7nie problem? Uzyj||&7tej pracy aby troche||&7zarobic" to close then run "sudo %player% praca dolacz inzynier" format slot 13 of player with 1 of {@s} named " " to be unstealable format slot 14 of player with 1 of brick named "&8Budowniczy" with lore "&7Jestes uzdolnionym budowniczym?||&7A moze po prostu lubisz||&7budowac? Ta praca||&7jest idealna dla Ciebie" to close then run "sudo %player% praca dolacz budowniczy" format slot 15 of player with 1 of gold ingot named "&8Zlodziej" with lore "&7Bedac zlodziejem narazasz||&7sie na policje!||&7Jednak jesli chcesz..." to close then run "sudo %player% praca dolacz zlodziej" format slot 16 of player with 1 of stick named "&8Policjant" with lore "&7Lapiac zlodziei mozesz||&7zarobic niezla sumke||&7pieniedzy!" to close then run "sudo %player% praca dolacz policjant" format slot 17 of player with 1 of {@s} named " " to be unstealable wait 10 ticks format slot 18 of player with 1 of {@s} named " " to be unstealable format slot 19 of player with 1 of stone pickaxe named "&8Gornik &6VIP" with lore "&7+2%% dochodu" to be unstealable format slot 20 of player with 1 of diamond axe named "&8Drwal &6VIP" with lore "&7+2%% dochodu" to be unstealable format slot 21 of player with 1 of redstone named "&8Inzynier &6VIP" with lore "&7+2%% dochodu" to be unstealable format slot 22 of player with 1 of {@s} named " " to be unstealable format slot 23 of player with 1 of brick named "&8Budowniczy &6VIP" with lore "&7+2%% dochodu" to be unstealable format slot 24 of player with 1 of gold ingot named "&8Zlodziej" with lore "&7Zlodziej nie otrzymuje nic||&7ze wzgledu na zbyt||&7duze zainteresowanie||&7policja" to be unstealable format slot 25 of player with 1 of stick named "&8Policjant &6VIP" with lore "&7+2%% dochodu" to be unstealable format slot 26 of player with 1 of {@s} named " " to be unstealable wait 10 ticks format slot 27 of player with 1 of {@s} named " " to be unstealable format slot 28 of player with 1 of {@s} named " " to be unstealable format slot 29 of player with 1 of {@s} named " " to be unstealable format slot 30 of player with 1 of {@s} named " " to be unstealable format slot 31 of player with 1 of {@s} named " " to be unstealable format slot 32 of player with 1 of {@s} named " " to be unstealable format slot 33 of player with 1 of {@s} named " " to be unstealable format slot 34 of player with 1 of {@s} named " " to be unstealable format slot 35 of player with 1 of {@s} named " " to be unstealable stopter if arg 1 is "dolacz": if arg 2 is "gornik": if {jobs.praca::%player%} is "gornik": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "gornik" set {jobs.praca.wykonywanie::%player%} to true if arg 2 is "drwal": if {jobs.praca::%player%} is "drwal": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "drwal" set {jobs.praca.wykonywanie::%player%} to true if arg 2 is "inzynier": if {jobs.praca::%player%} is "inzynier": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "inzynier" set {jobs.praca.wykonywanie::%player%} to true if arg 2 is "budowniczy": if {jobs.praca::%player%} is "budowniczy": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "budowniczy" set {jobs.praca.wykonywanie::%player%} to true if arg 2 is "zlodziej": if {jobs.praca::%player%} is "zlodziej": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "zlodziej" set {jobs.praca.wykonywanie::%player%} to true if arg 2 is "policjant": if {jobs.praca::%player%} is "policjant": if {jobs.praca.wykonywanie::%player%} is true: send "&cJuz wykonujesz jakas prace!" else: set {jobs.praca::%player%} to "policjant" set {jobs.praca.wykonywanie::%player%} to true if arg 1 is "przeladuj": if player is op: execute console command "sk reload %script%" on mine of stone: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.kamien}" on mine of coal ore: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.wegiel}" on mine of iron ore: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.zelazo}" on mine of gold ore: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.zloto}" on mine of diamond ore: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.diament}" on mine of redstone ore: if {jobs.praca::%player%} is "gornik": chance of 50%: execute console command "eco give %player% {@$.gornik.redstone}" on mine of any log: if {jobs.praca::%player%} is "drwal": chance of 50%: execute console command "eco give %player% {@$.drwal.kloda}" on mine of any wood: if {jobs.praca::%player%} is "drwal": chance of 50%: execute console command "eco give %player% {@$.drwal.deska}" on place of redstone: if {jobs.praca::%player%} is "inzynier": chance of 50%: execute console command "eco give %player% {@$.inz.redstone}" on place of iron block: if {jobs.praca::%player%} is "inzynier": chance of 50%: execute console command "eco give %player% {@$.inz.blokzelazo}" on place: if {jobs.praca::%player%} is "budowniczy": chance of 50%: execute console command "eco give %player% {@$.budo.all}" on chat: if {jobs.praca::%player%} is "gornik": set {_czatsk} to "[Praca] [Gracz]: [Czat]" replace all "[Praca]" with "%{jobs.praca::%player%}%" in the message replace all "[Gracz]" with "%display name of player%" in the message replace all ":" with "&8:" in the message replace all "[Czat]" with "%message%" in the message