Facebook
From sosnax1, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 745
  1. command /praca [<text>] [<text>] [<text>]:
  2.         trigger:
  3.                 if arg 1 is not set:
  4.                         Send "Dzialy pomocy skryptu:"
  5.                         Send "/firma help"
  6.                         Send "/kurs help"
  7. command /firma [<text>] [<text>] [<text>]:
  8.         trigger:
  9.                 if arg 1 is "dodaj":
  10.                         Set {praca.firmy.kat::%arg 2%} to true
  11.                         Send "kategoria firm dodana"
  12.                 if arg 1 is "ranga":
  13.                         Set {praca.pracuje.stanowisko::%arg 2%} to arg 3
  14.                         Send "Awansowano pracownika!"
  15.                 if arg 1 is "stworz":
  16.                         if {praca.firmy.kat::%arg 3%} is true:
  17.                                 Set {praca.czasowe.firmy.graczy.nazwa::%player%} to arg 2
  18.                                 Set {praca.czasowe.firmy.graczy.typ::%arg 2%} to arg 3
  19.                                 Send "Chcesz stworzyc firme o  nazwie %arg 2% w kategori %arg 3%"
  20.                 if arg 1 is "podanie":
  21.                         Set {praca.podanie::%player%} to arg 2
  22.                         Send "Zlozyles podanie do %arg 2%"
  23.                 if arg 1 is "zwolnij":
  24.                         if {praca.pracuje::%arg 2%} is {praca.pracuje::%player%}:
  25.                                 Delete {praca.pracuje::%arg 2%}
  26.                                 Delete {praca.pracuje.stanowisko::%arg 2%}
  27.                                 Send "Wylano gracza"
  28.                         else:
  29.                                 Send "Gracz %arg 2% nigdy tu nie pracowal lub zostal wczesniej zwolniony"
  30.                 if arg 1 is "zatrudnij":
  31.                         if {praca.podanie::%arg 2%} is {praca.pracuje::%player%}:
  32.                                 Delete {praca.podanie::%arg 2%}
  33.                                 Set {praca.pracuje::%arg 2%} to {praca.pracuje::%player%}
  34.                                 Set {praca.pracuje.stanowisko::%arg 2%} to "Rekrut"
  35.                                 Send "Podanie rozpatrzone"
  36.                         else:
  37.                                 Send "Gracz %arg 2% nie zlozyl lub zrezygnowal z podniania o prace."
  38.                         #Set {praca.pracuje::%arg 2%} to {praca.firmy.graczy.nazwa::%player%}
  39.                 if arg 1 is "sprawdz":
  40.                         if {praca.pracuje::%arg 2%} is set:
  41.                                 Set {arg 2} to {praca.pracuje::%arg 2%}
  42.                                 Send "Prezes:%{praca.firmy.graczy.prezes::%{arg 2}%}%"
  43.                                 Send "Nazwa %{arg 2}%"
  44.                                 Send "Typ:%{praca.firmy.graczy.typ::%{arg 2}%}%"
  45.                                 Send "Stanowisko:%{praca.pracuje.stanowisko::%arg 2%}%"
  46.                         else:
  47.                                 Send "Gracz %arg 2% nigdzie nie pracuje.%{praca.pracuje::%arg 2%}%"
  48. on rightclick on a sign:
  49.         if line 1 is "&1[Firma]":
  50.                 Set {line.2} to uncoloured line 2
  51.                 Set {line.3} to uncoloured line 3
  52.                 Set {line.4} to uncoloured line 4
  53.                 If {praca.pracuje::%player%} is set:
  54.                         If {praca.pracuje.stanowisko::%player%} is "Prezes":
  55.                                 Send "Masz juz firme"
  56.                         else:
  57.                                 Send "Pracujesz jescze w innej firmie."
  58.                         stop
  59.                         If {praca.czasowe.firmy.graczy.nazwa::%player%} is not set:
  60.                                 Send "Uzupelnij dane firmy"
  61.                                 stop
  62.                 if line 2 is "&aStworz":
  63.                         Set {praca.firmy.graczy.nazwa::%player%} to {praca.czasowe.firmy.graczy.nazwa::%player%}
  64.                         Set {arg 2} to {praca.firmy.graczy.nazwa::%player%}
  65.                         Set {praca.firmy.graczy.prezes::%{arg 2}%} to player
  66.                         Set {praca.firmy.graczy.typ::%{arg 2}%} to {praca.czasowe.firmy.graczy.typ::%{arg 2}%}
  67.                         Set {praca.firmy.graczy.level::%{arg 2}%} to 1
  68.                         Set {praca.pracuje::%player%} to {arg 2}
  69.                         Set {praca.pracuje.stanowisko::%player%} to "Prezes"
  70.                         Send "Pracujesz teraz jako... w %{praca.pracuje::%{player}%}%"
  71.                         Delete {praca.czasowe.firmy.graczy.nazwa::%player%}
  72.                         Delete {praca.czasowe.firmy.graczy.typ::%{arg 2}%}
  73.                         Send "&aStworzyles firme."
  74.                         Send "Prezes:%{praca.firmy.graczy.prezes::%{arg 2}%}%"
  75.                         Send "Nazwa %{arg 2}%"
  76.                         Send "Typ:%{praca.firmy.graczy.typ::%{arg 2}%}%"
  77.                         Send "/////"
  78.                 Send "Zostales przyjety!"
  79. on rightclick on a sign:
  80.         if line 1 is "&1[Praca]":
  81.                 Set {line.2} to uncoloured line 2
  82.                 Set {line.3} to uncoloured line 3
  83.                 Set {line.4} to uncoloured line 4
  84.                 if {praca.kurs.%{line.3}%::%player%} is not set:
  85.                         Send "&anie spelniasz wymogów: &c%{line.3}%"
  86.                         stop
  87.                 if {praca.kurs.%{line.4}%::%player%} is not set:
  88.                         Send "&anie spelniasz wymogów: &c%{line.4}%"
  89.                         stop
  90.                 Send "Zostales przyjety!"
  91. on rightclick on a sign:
  92.         if line 1 is "&1[Szkola]":
  93.                 Set {line.2} to uncoloured line 2
  94.                 If line 2 is "&aZakoncz":
  95.                         if {praca.kurs.%player%} is set:
  96.                                 {praca.kurs.%player%.lastick} was less than 1 seconds ago:
  97.                                         message "Please wait 5 minute between uses of this command."
  98.                                         stop
  99.                                 Add 1 to {praca.kurs.%player%.tick}
  100.                                 Send "%{praca.kurs.%player%.tick}% z %{praca.tick::%{praca.kurs.%player%}%}% dni"
  101.                                 set {praca.kurs.%player%.lastick} to now
  102.                                 if {praca.kurs.%player%.tick} = {praca.tick::%{praca.kurs.%player%}%}:
  103.                                         Send "Zakonczyles kurs na %{praca.kurs.%player%}%"
  104.                                         Set {praca.kurs.%{praca.kurs.%player%}%::%player%} to true
  105.                                         Delete {praca.kurs.%player%}
  106.                                         Delete {praca.kurs.%player%.lastick}
  107.                                         Delete {praca.kurs.%player%.tick}
  108.                         else:
  109.                                 Send "Nie wykonujesz zadnych kursów!"
  110.                 else if {praca.tick::%{line.2}%} is set:
  111.                         send "&6&o Studia >> &ANazwa:&c%{line.2}%."
  112.                         send "&6&o Studia >> &bCena: %{praca.cena::%{line.2}%}%"
  113.                         send "&6&o Studia >> &2Dni: %{praca.tick::%{line.2}%}% (*5 minut)"
  114.                         if {praca.warunek::%{line.2}%} is set:
  115.                                 send "&6&o Studia >> &aWymagania: &c%{praca.warunek::%{line.2}%} %"
  116.                         else:
  117.                                 send "&6&o Studia >> &aWymagania: &cBrak"
  118.                         Set {praca.szkola.%player%} to {line.2}
  119.                         send "&6&o Studia >> Wpisz /Podejmuje ,aby rozpoczac nauke"
  120. On Sign Change:
  121.         If line 1 is "[praca]" or "&1[praca]":
  122.                 Set {line.2} to uncoloured line 2
  123.                 Set line 1 to "&1[Praca]"
  124.                 Set line 2 to "&a%line 2%"
  125.                 Set line 3 to "&6%line 3%"
  126.                 Set line 4 to "&6%line 4%"
  127.                 send "&6&o >> &Stworzyles punkt pracy!."
  128. On Sign Change:
  129.         If line 1 is "[szkola]" or "&1[szkola]":
  130.                 If line 2 is not empty:
  131.                         if {praca.tick::%line 2%} is set:
  132.                                 Set {line.2} to uncoloured line 2
  133.                                 Set line 1 to "&1[Szkola]"
  134.                                 Set line 2 to "&a%line 2%"
  135.                                 Set line 3 to "&a%{praca.tick::%{line.2}%}%"
  136.                                 Set line 4 to "&A$%{praca.cena::%{line.2}%}%"
  137.                                 send "&6&o >> &AStworzyles szkole!."
  138.                         else:
  139.                                 Set line 1 to "&1[Szkola]"
  140.                                 Set line 2 to "&4%line 2%"
  141.                                 send "&6&o >> &4Nie ma takiego kierunku..."
  142.                 else:
  143.                         Set line 1 to "&1[Szkola]"
  144.                         Set line 2 to "&aZakoncz"
  145.                         Set line 3 to "&aPodbij"
  146.                         Set line 4 to "&aKurs"
  147. command /kurscheck [<text>] [<text>]:
  148.         trigger:
  149.                 If {praca.kurs.%arg 2%::%arg 1%} is true:
  150.                         Send "Gracz ukonczyl kurs na %arg 2%"
  151.                 else:
  152.                         Send "Gracz nie ukonczyl kurs na %arg 2%"
  153. command /kursinfo:
  154.         trigger:
  155.                 Send "Kurs: %{praca.kurs.%player%}%"
  156.                 Send "Czas: %difference between {praca.kurs.tick.%player%} and now%"
  157. command /podejmuje:
  158.         trigger:
  159.                 if {praca.kurs.%{praca.szkola.%player%}%::%player%} is true:
  160.                         Send "Ukonczyles juz ten kurs..."
  161.                         stop
  162.                 If {praca.kurs.%player%} is set:
  163.                         Send "&4Rozpoczoles juz kurs..."
  164.                         stop
  165.                 If {praca.szkola.%player%} is set:
  166.                         if {praca.warunek::%{praca.szkola.%player%}%} is set:
  167.                                 Send "Warunek"
  168.                                 If {praca.kurs.%{praca.warunek::%{praca.szkola.%player%}%}%::%player%} is true:
  169.                                         Send "Spelniasz kwalifikacje"
  170.                                 else:
  171.                                         Send "Nie spelniasz kwalifikacji"
  172.                                         stop
  173.                         if player's balance > {praca.cena::%{praca.szkola.%player%}%}:
  174.                                 Send "tak"
  175.                         if player's balance > {praca.cena::%{praca.szkola.%player%}%}:
  176.                                 Set {praca.kurs.%player%} to {praca.szkola.%player%}
  177.                                 Set {praca.kurs.%player%.tick} to 0
  178.                                 Send "Podjoles kurs na: %{praca.szkola.%player%}%"
  179.                                 remove {praca.cena::%{praca.szkola.%player%}%} from player's account
  180.                         else:
  181.                                 send "&6&o >> %player's balance%&4Nie stac cie na kurs!(Cena:%{praca.cena::%{praca.szkola.%player%}%}%)"
  182.                 else:
  183.                         send "&6&o >> &4Nie wybrales kursu!"
  184. command /godzina:
  185.         trigger:
  186.                 Send "Czas to:%now%"
  187. command /pracaclear:
  188.         trigger:
  189.                 Send "usunieto wszystkie prace"
  190.                 Delete {praca.cena::*}
  191.                 Delete {praca.tick::*}
  192.                 Delete {praca.warunek::*}
  193. command /zapomnij [<text>] [<text>]:
  194.         trigger:
  195.                 Send "usunieto kurs dla gracza: %arg 2%"
  196.                 Delete {praca.kurs.%arg 1%::%arg 2%}
  197. command /kurs [<text>] [<text>] [<text>] [<text>] [<text>]:
  198.         trigger:
  199.                 If arg 1 is set:
  200.                         If arg 1 is "dodaj":
  201.                                 If arg 4 is set:
  202.                                         if arg 5 is set:
  203.                                                 if {praca.tick::%arg 5%} is not set:
  204.                                                         Send "Podany warunek nie istnieje"
  205.                                                         stop
  206.                                                 set {praca.warunek::%arg 2%} to arg 5
  207.                                         set {praca.cena::%arg 2%} to arg 3 parsed as number
  208.                                         set {praca.tick::%arg 2%} to arg 4 parsed as number
  209.                                         Send " Podales arg"
  210.                         else if arg 1 is "czysc":
  211.                                 Delete {praca.kurs.%arg 2%}
  212.                                 Delete {praca.kurs.%arg 2%.lastick}
  213.                                 Delete {praca.kurs.%arg 2%.tick}
  214.                                 Send "Usunieto kurs gracza %arg 2%"
  215.                         else:
  216.                                 Send "&4 Prawidlowe uzycie /kurs dodaj nazwa cena ilosc_dni"
  217.                 else:
  218.                         Send " Nie podales"