- command /praca [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- Send "Dzialy pomocy skryptu:"
- Send "/firma help"
- Send "/kurs help"
- command /firma [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is "dodaj":
- Set {praca.firmy.kat::%arg 2%} to true
- Send "kategoria firm dodana"
- if arg 1 is "ranga":
- Set {praca.pracuje.stanowisko::%arg 2%} to arg 3
- Send "Awansowano pracownika!"
- if arg 1 is "stworz":
- if {praca.firmy.kat::%arg 3%} is true:
- Set {praca.czasowe.firmy.graczy.nazwa::%player%} to arg 2
- Set {praca.czasowe.firmy.graczy.typ::%arg 2%} to arg 3
- Send "Chcesz stworzyc firme o nazwie %arg 2% w kategori %arg 3%"
- if arg 1 is "podanie":
- Set {praca.podanie::%player%} to arg 2
- Send "Zlozyles podanie do %arg 2%"
- if arg 1 is "zwolnij":
- if {praca.pracuje::%arg 2%} is {praca.pracuje::%player%}:
- Delete {praca.pracuje::%arg 2%}
- Delete {praca.pracuje.stanowisko::%arg 2%}
- Send "Wylano gracza"
- else:
- Send "Gracz %arg 2% nigdy tu nie pracowal lub zostal wczesniej zwolniony"
- if arg 1 is "zatrudnij":
- if {praca.podanie::%arg 2%} is {praca.pracuje::%player%}:
- Delete {praca.podanie::%arg 2%}
- Set {praca.pracuje::%arg 2%} to {praca.pracuje::%player%}
- Set {praca.pracuje.stanowisko::%arg 2%} to "Rekrut"
- Send "Podanie rozpatrzone"
- else:
- Send "Gracz %arg 2% nie zlozyl lub zrezygnowal z podniania o prace."
- #Set {praca.pracuje::%arg 2%} to {praca.firmy.graczy.nazwa::%player%}
- if arg 1 is "sprawdz":
- if {praca.pracuje::%arg 2%} is set:
- Set {arg 2} to {praca.pracuje::%arg 2%}
- Send "Prezes:%{praca.firmy.graczy.prezes::%{arg 2}%}%"
- Send "Nazwa %{arg 2}%"
- Send "Typ:%{praca.firmy.graczy.typ::%{arg 2}%}%"
- Send "Stanowisko:%{praca.pracuje.stanowisko::%arg 2%}%"
- else:
- Send "Gracz %arg 2% nigdzie nie pracuje.%{praca.pracuje::%arg 2%}%"
- on rightclick on a sign:
- if line 1 is "&1[Firma]":
- Set {line.2} to uncoloured line 2
- Set {line.3} to uncoloured line 3
- Set {line.4} to uncoloured line 4
- If {praca.pracuje::%player%} is set:
- If {praca.pracuje.stanowisko::%player%} is "Prezes":
- Send "Masz juz firme"
- else:
- Send "Pracujesz jescze w innej firmie."
- stop
- If {praca.czasowe.firmy.graczy.nazwa::%player%} is not set:
- Send "Uzupelnij dane firmy"
- stop
- if line 2 is "&aStworz":
- Set {praca.firmy.graczy.nazwa::%player%} to {praca.czasowe.firmy.graczy.nazwa::%player%}
- Set {arg 2} to {praca.firmy.graczy.nazwa::%player%}
- Set {praca.firmy.graczy.prezes::%{arg 2}%} to player
- Set {praca.firmy.graczy.typ::%{arg 2}%} to {praca.czasowe.firmy.graczy.typ::%{arg 2}%}
- Set {praca.firmy.graczy.level::%{arg 2}%} to 1
- Set {praca.pracuje::%player%} to {arg 2}
- Set {praca.pracuje.stanowisko::%player%} to "Prezes"
- Send "Pracujesz teraz jako... w %{praca.pracuje::%{player}%}%"
- Delete {praca.czasowe.firmy.graczy.nazwa::%player%}
- Delete {praca.czasowe.firmy.graczy.typ::%{arg 2}%}
- Send "&aStworzyles firme."
- Send "Prezes:%{praca.firmy.graczy.prezes::%{arg 2}%}%"
- Send "Nazwa %{arg 2}%"
- Send "Typ:%{praca.firmy.graczy.typ::%{arg 2}%}%"
- Send "/////"
- Send "Zostales przyjety!"
- on rightclick on a sign:
- if line 1 is "&1[Praca]":
- Set {line.2} to uncoloured line 2
- Set {line.3} to uncoloured line 3
- Set {line.4} to uncoloured line 4
- if {praca.kurs.%{line.3}%::%player%} is not set:
- Send "&anie spelniasz wymogów: &c%{line.3}%"
- stop
- if {praca.kurs.%{line.4}%::%player%} is not set:
- Send "&anie spelniasz wymogów: &c%{line.4}%"
- stop
- Send "Zostales przyjety!"
- on rightclick on a sign:
- if line 1 is "&1[Szkola]":
- Set {line.2} to uncoloured line 2
- If line 2 is "&aZakoncz":
- if {praca.kurs.%player%} is set:
- {praca.kurs.%player%.lastick} was less than 1 seconds ago:
- message "Please wait 5 minute between uses of this command."
- stop
- Add 1 to {praca.kurs.%player%.tick}
- Send "%{praca.kurs.%player%.tick}% z %{praca.tick::%{praca.kurs.%player%}%}% dni"
- set {praca.kurs.%player%.lastick} to now
- if {praca.kurs.%player%.tick} = {praca.tick::%{praca.kurs.%player%}%}:
- Send "Zakonczyles kurs na %{praca.kurs.%player%}%"
- Set {praca.kurs.%{praca.kurs.%player%}%::%player%} to true
- Delete {praca.kurs.%player%}
- Delete {praca.kurs.%player%.lastick}
- Delete {praca.kurs.%player%.tick}
- else:
- Send "Nie wykonujesz zadnych kursów!"
- else if {praca.tick::%{line.2}%} is set:
- send "&6&o Studia >> &ANazwa:&c%{line.2}%."
- send "&6&o Studia >> &bCena: %{praca.cena::%{line.2}%}%"
- send "&6&o Studia >> &2Dni: %{praca.tick::%{line.2}%}% (*5 minut)"
- if {praca.warunek::%{line.2}%} is set:
- send "&6&o Studia >> &aWymagania: &c%{praca.warunek::%{line.2}%} %"
- else:
- send "&6&o Studia >> &aWymagania: &cBrak"
- Set {praca.szkola.%player%} to {line.2}
- send "&6&o Studia >> Wpisz /Podejmuje ,aby rozpoczac nauke"
- On Sign Change:
- If line 1 is "[praca]" or "&1[praca]":
- Set {line.2} to uncoloured line 2
- Set line 1 to "&1[Praca]"
- Set line 2 to "&a%line 2%"
- Set line 3 to "&6%line 3%"
- Set line 4 to "&6%line 4%"
- send "&6&o >> &Stworzyles punkt pracy!."
- On Sign Change:
- If line 1 is "[szkola]" or "&1[szkola]":
- If line 2 is not empty:
- if {praca.tick::%line 2%} is set:
- Set {line.2} to uncoloured line 2
- Set line 1 to "&1[Szkola]"
- Set line 2 to "&a%line 2%"
- Set line 3 to "&a%{praca.tick::%{line.2}%}%"
- Set line 4 to "&A$%{praca.cena::%{line.2}%}%"
- send "&6&o >> &AStworzyles szkole!."
- else:
- Set line 1 to "&1[Szkola]"
- Set line 2 to "&4%line 2%"
- send "&6&o >> &4Nie ma takiego kierunku..."
- else:
- Set line 1 to "&1[Szkola]"
- Set line 2 to "&aZakoncz"
- Set line 3 to "&aPodbij"
- Set line 4 to "&aKurs"
- command /kurscheck [<text>] [<text>]:
- trigger:
- If {praca.kurs.%arg 2%::%arg 1%} is true:
- Send "Gracz ukonczyl kurs na %arg 2%"
- else:
- Send "Gracz nie ukonczyl kurs na %arg 2%"
- command /kursinfo:
- trigger:
- Send "Kurs: %{praca.kurs.%player%}%"
- Send "Czas: %difference between {praca.kurs.tick.%player%} and now%"
- command /podejmuje:
- trigger:
- if {praca.kurs.%{praca.szkola.%player%}%::%player%} is true:
- Send "Ukonczyles juz ten kurs..."
- stop
- If {praca.kurs.%player%} is set:
- Send "&4Rozpoczoles juz kurs..."
- stop
- If {praca.szkola.%player%} is set:
- if {praca.warunek::%{praca.szkola.%player%}%} is set:
- Send "Warunek"
- If {praca.kurs.%{praca.warunek::%{praca.szkola.%player%}%}%::%player%} is true:
- Send "Spelniasz kwalifikacje"
- else:
- Send "Nie spelniasz kwalifikacji"
- stop
- if player's balance > {praca.cena::%{praca.szkola.%player%}%}:
- Send "tak"
- if player's balance > {praca.cena::%{praca.szkola.%player%}%}:
- Set {praca.kurs.%player%} to {praca.szkola.%player%}
- Set {praca.kurs.%player%.tick} to 0
- Send "Podjoles kurs na: %{praca.szkola.%player%}%"
- remove {praca.cena::%{praca.szkola.%player%}%} from player's account
- else:
- send "&6&o >> %player's balance%&4Nie stac cie na kurs!(Cena:%{praca.cena::%{praca.szkola.%player%}%}%)"
- else:
- send "&6&o >> &4Nie wybrales kursu!"
- command /godzina:
- trigger:
- Send "Czas to:%now%"
- command /pracaclear:
- trigger:
- Send "usunieto wszystkie prace"
- Delete {praca.cena::*}
- Delete {praca.tick::*}
- Delete {praca.warunek::*}
- command /zapomnij [<text>] [<text>]:
- trigger:
- Send "usunieto kurs dla gracza: %arg 2%"
- Delete {praca.kurs.%arg 1%::%arg 2%}
- command /kurs [<text>] [<text>] [<text>] [<text>] [<text>]:
- trigger:
- If arg 1 is set:
- If arg 1 is "dodaj":
- If arg 4 is set:
- if arg 5 is set:
- if {praca.tick::%arg 5%} is not set:
- Send "Podany warunek nie istnieje"
- stop
- set {praca.warunek::%arg 2%} to arg 5
- set {praca.cena::%arg 2%} to arg 3 parsed as number
- set {praca.tick::%arg 2%} to arg 4 parsed as number
- Send " Podales arg"
- else if arg 1 is "czysc":
- Delete {praca.kurs.%arg 2%}
- Delete {praca.kurs.%arg 2%.lastick}
- Delete {praca.kurs.%arg 2%.tick}
- Send "Usunieto kurs gracza %arg 2%"
- else:
- Send "&4 Prawidlowe uzycie /kurs dodaj nazwa cena ilosc_dni"
- else:
- Send " Nie podales"