Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendMessage(gracz: player, m: text):
- set {_message} to yaml value "%{_m}%" from file "plugins/RPG/messages.yml"
- send "%sendConfig(""tag"")% %{_message}%" to {_gracz}
- command /sendMessage [<text>]:
- trigger:
- sendMessage(player, "%arg 1%")
- function sendVersion(name: text) :: text:
- set {_ver} to yaml value "%{_name}%" from file "plugins/RPG/versions.yml"
- return "%{_ver}%"
- function sendConfig(name: text) :: text:
- set {_config} to yaml value "%{_name}%" from file "plugins/RPG/config.yml"
- return "%{_config}%"
- # Tworzenie postaci i jej wgrywanie.
- options:
- filemessages: plugins/RPG/messages.yml
- fileconfig: plugins/RPG/config.yml
- filefolder: plugins/RPG
- filefolderplayers: plugins/RPG/players
- # FUNKCJE
- function useRasa(gracz: player):
- set {_opis-rasa-czlowiek} to single value "opis-czlowiek" get of "{@filemessages}"
- set {_opis-rasa-krasnal} to single value "opis-rasa-krasnal" get of "{@filemessages}"
- set {_opis-rasa-elf} to single value "opis-rasa-elf" get of "{@filemessages}"
- open chest with 1 row named "» Wybierz rase" to {_gracz}
- set {inv::%{_gracz}%} to "useRasa"
- wait 1 tick
- add 0 and 1 and 3 and 5 and 7 and 8 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 2 of {_gracz} with 1 of Cyan Stained Glass Pane named "&8Czlowiek" with lore "%{_opis-rasa-czlowiek}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xtawrasa czlowiek"]
- format slot 6 of {_gracz} with 1 of Brown Stained Glass Pane named "&9Krasnal" with lore "%{_opis-rasa-krasnal}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xtawrasa krasnal"]
- format slot 4 of {_gracz} with 1 of Green Stained Glass Pane named "&3Elf" with lore "%{_opis-rasa-elf}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xtawrasa elf"]
- function useKlasy(gracz: player):
- set {_opis-klasa-rycerz} to single value "opis-klasa-rycerz" get of "{@filemessages}"
- set {_opis-klasa-mag} to single value "opis-klasa-mag" get of "{@filemessages}"
- set {_opis-klasa-druid} to single value "opis-klasa-druid" get of "{@filemessages}"
- set {_opis-klasa-paladyn} to single value "opis-klasa-paladyn" get of "{@filemessages}"
- set {_opis-klasa-lotrzyk} to single value "opis-klasa-lotrzyk" get of "{@filemessages}"
- set {_opis-klasa-straznik} to single value "opis-klasa-straznik" get of "{@filemessages}"
- open chest with 3 rows named "» Wybierz klase" to {_gracz}
- set {inv::%{_gracz}%} to "useKlasy"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 5 and 6 and 7 and 8 and 9 and 10 and 13 and 16 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 4 of {_gracz} with 1 of shield named "&8Rycerz Zakonu Smoka" with lore "%{_opis-klasa-rycerz}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 rycerz"]
- format slot 22 of {_gracz} with 1 of gold hoe named "&8Mag Ognia" with lore "%{_opis-klasa-mag}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 mag"]
- format slot 11 of {_gracz} with 1 of wooden hoe named "&8Druid Lasu Valiam" with lore "%{_opis-klasa-druid}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 druid"]
- format slot 12 of {_gracz} with 1 of iron shovel named "&8Zaprzysiezony Paladyn" with lore "%{_opis-klasa-paladyn}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 paladyn"]
- format slot 14 of {_gracz} with 1 of iron sword named "&8Lotrzyk Oszust" with lore "%{_opis-klasa-lotrzyk}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 lotrzyk"]
- format slot 15 of {_gracz} with 1 of bow named "&8Straznik Lasu Valiam" with lore "%{_opis-klasa-straznik}%" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "ykl9as2 straznik"]
- function usePostacie(gracz: player):
- open chest with 3 rows named "» Wybierz postac" to {_gracz}
- set {inv::%{_gracz}%} to "usePostacie"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 13 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- if {postac1::postac::%{_gracz}%} is set:
- format slot 10 of {_gracz} with 1 of skull of {_gracz} named "&aPostac 1" with lore "&ePlec: %{postac1::plec::%{_gracz}%}%||&eRasa: &2%{postac1::rasa::%{_gracz}%}%||&eKlasa: &2%{postac1::klasa::%{_gracz}%}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtff1"]
- else:
- format slot 10 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
- if {postac2::postac::%{_gracz}%} is set:
- format slot 11 of {_gracz} with 1 of skull of {_gracz} named "&aPostac 2" with lore "&ePlec: %{postac2::plec::%{_gracz}%}%||&eRasa: &2%{postac2::rasa::%{_gracz}%}%||&eKlasa: &2%{postac2::klasa::%{_gracz}%}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtff2"]
- else:
- format slot 11 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
- if {postac3::postac::%{_gracz}%} is set:
- format slot 12 of {_gracz} with 1 of skull of {_gracz} named "&aPostac 3" with lore "&ePlec: %{postac3::plec::%{_gracz}%}%||&eRasa: &2%{postac3::rasa::%{_gracz}%}%||&eKlasa: &2%{postac3::klasa::%{_gracz}%}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtff3"]
- else:
- format slot 12 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
- if {postac4::postac::%{_gracz}%} is set:
- format slot 14 of {_gracz} with 1 of skull of {_gracz} named "&aPostac 4" with lore "&ePlec: %{postac4::plec::%{_gracz}%}%||&eRasa: &2%{postac4::rasa::%{_gracz}%}%||&eKlasa: &2%{postac4::klasa::%{_gracz}%}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtff4"]
- if {dodatkowa::postac1::%{_gracz}%} is set:
- format slot 14 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
- else:
- format slot 14 of {_gracz} with 1 of skull of zombie named "&cZablokowane" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xdodatkowap9sta2"]
- if {postac5::postac::%{_gracz}%} is set:
- format slot 15 of {_gracz} with 1 of skull of {_gracz} named "&aPostac 5" with lore "&ePlec: %{postac5::plec::%{_gracz}%}%||&eRasa: &2%{postac5::rasa::%{_gracz}%}%||&eKlasa: &2%{postac5::klasa::%{_gracz}%}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtff5"]
- if {dodatkowa::postac1::%{_gracz}%} is set:
- format slot 15 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
- else:
- format slot 15 of {_gracz} with 1 of skull of zombie named "&cZablokowane" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xdodatkowap9sta2"]
- function usePotwiedzTworzenie(gracz: player):
- open chest with 3 rows named "» Stworzyc postac?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzTworzenie"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function usePotwiedzUsuniecie(gracz: player):
- open chest with 3 rows named "» Usunac postac 1?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzUsuniecie"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xus4npos3ac 1"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function usePotwiedzUsuniecie2(gracz: player):
- open chest with 3 rows named "» Usunac postac 2?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzUsuniecie2"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xus4npos3ac 2"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function usePotwiedzUsuniecie3(gracz: player):
- open chest with 3 rows named "» Usunac postac 3?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzUsuniecie3"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xus4npos3ac 3"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function usePotwiedzUsuniecie4(gracz: player):
- open chest with 3 rows named "» Usunac postac 4?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzUsuniecie4"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xus4npos3ac 4"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function usePotwiedzUsuniecie5(gracz: player):
- open chest with 3 rows named "» Usunac postac 5?" to {_gracz}
- set {inv::%{_gracz}%} to "usePotwiedzUsuniecie5"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 13 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xus4npos3ac 5"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cNIE" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385odrzuc2"]
- function useWyborPostac1(gracz: player):
- open chest with 3 rows named "» Co zrobic z postac 1?" to {_gracz}
- set {inv::%{_gracz}%} to "useWyborPostac1"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 13 of {_gracz} with 1 of Blue Stained Glass Pane named "&2Postac 1:" with lore "&ePlec: %{postac1::plec::%{_gracz}%}%||&eRasa: &2%{postac1::rasa::%{_gracz}%}%||&eKlasa: &2%{postac1::klasa::%{_gracz}%}%" to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aWejdz do swiata" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cUsun postac" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusun34pot 1"]
- function useWyborPostac2(gracz: player):
- open chest with 3 rows named "» Co zrobic z postac 2?" to {_gracz}
- set {inv::%{_gracz}%} to "useWyborPostac2"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 13 of {_gracz} with 1 of Blue Stained Glass Pane named "&2Postac 2:" with lore "&ePlec: %{postac2::plec::%{_gracz}%}%||&eRasa: &2%{postac2::rasa::%{_gracz}%}%||&eKlasa: &2%{postac2::klasa::%{_gracz}%}%" to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aWejdz do swiata" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cUsun postac" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusun34pot 2"]
- function useWyborPostac3(gracz: player):
- open chest with 3 rows named "» Co zrobic z postac 3?" to {_gracz}
- set {inv::%{_gracz}%} to "useWyborPostac3"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 13 of {_gracz} with 1 of Blue Stained Glass Pane named "&2Postac 3:" with lore "&ePlec: %{postac3::plec::%{_gracz}%}%||&eRasa: &2%{postac3::rasa::%{_gracz}%}%||&eKlasa: &2%{postac3::klasa::%{_gracz}%}%" to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aWejdz do swiata" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cUsun postac" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusun34pot 3"]
- function useWyborPostac4(gracz: player):
- open chest with 3 rows named "» Co zrobic z postac 4?" to {_gracz}
- set {inv::%{_gracz}%} to "useWyborPostac4"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 13 of {_gracz} with 1 of Blue Stained Glass Pane named "&2Postac 4:" with lore "&ePlec: %{postac4::plec::%{_gracz}%}%||&eRasa: &2%{postac4::rasa::%{_gracz}%}%||&eKlasa: &2%{postac4::klasa::%{_gracz}%}%" to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aWejdz do swiata" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cUsun postac" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusun34pot 4"]
- function useWyborPostac5(gracz: player):
- open chest with 3 rows named "» Co zrobic z postac 5?" to {_gracz}
- set {inv::%{_gracz}%} to "useWyborPostac5"
- wait 1 tick
- add 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 13 of {_gracz} with 1 of Blue Stained Glass Pane named "&2Postac 5:" with lore "&ePlec: %{postac5::plec::%{_gracz}%}%||&eRasa: &2%{postac5::rasa::%{_gracz}%}%||&eKlasa: &2%{postac5::klasa::%{_gracz}%}%" to be unstealable
- format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aWejdz do swiata" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
- format slot 14 of {_gracz} with 1 of Red Stained Glass Pane named "&cUsun postac" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusun34pot 5"]
- function useFirstJoin(gracz: player):
- set {_opis-kobieta} to single value "opis-kobieta" get of "{@filemessages}"
- set {_opis-mezczyzna} to single value "opis-mezczyzna" get of "{@filemessages}"
- open chest with 1 row named "» Wybierz plec" to {_gracz}
- set {inv::%{_gracz}%} to "useFirstJoin"
- wait 1 tick
- add 0 and 1 and 2 and 4 and 6 and 7 and 8 to {_glass::*}
- loop {_glass::*}:
- format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
- format slot 5 of {_gracz} with 1 of Pink Stained Glass Pane named "&dKobieta" with lore "%{_opis-kobieta}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusta4wplec kobieta"]
- format slot 3 of {_gracz} with 1 of Blue Stained Glass Pane named "&3Mezczyzna" with lore "%{_opis-mezczyzna}%" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qusta4wplec mezczyzna"]
- on inventory close:
- if inventory name of player's current inventory contains "»":
- if {inv::%player%} is set:
- wait 2 tick
- #set {inv::%{_gracz}%} to "useWyborPostac"
- set {_p} to player
- evaluate "%{inv::%player%}%({_p})"
- send "%{inv::%player%}%(%player%)"
- #open {_x} to player
- command /qusta4wplec [<text>]:
- trigger:
- if {postac1::plec::%player%} is not set:
- if arg-1 is "kobieta":
- set {postac1::plec::%player%} to "&dKobieta"
- set "plec" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- if arg-1 is "mezczyzna":
- set {postac1::plec::%player%} to "&3Mezczyzna"
- set "plec" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- else if {postac2::plec::%player%} is not set:
- if arg-1 is "kobieta":
- set {postac2::plec::%player%} to "&dKobieta"
- set "plec2" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- if arg-1 is "mezczyzna":
- set {postac2::plec::%player%} to "&3Mezczyzna"
- set "plec2" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- else if {postac3::plec::%player%} is not set:
- if arg-1 is "kobieta":
- set {postac3::plec::%player%} to "&dKobieta"
- set "plec3" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- if arg-1 is "mezczyzna":
- set {postac3::plec::%player%} to "&3Mezczyzna"
- set "plec3" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- else if {postac4::plec::%player%} is not set:
- if {dodatkowa::postac1::%player%} is set:
- if arg-1 is "kobieta":
- set {postac4::plec::%player%} to "&dKobieta"
- set "plec4" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- if arg-1 is "mezczyzna":
- set {postac4::plec::%player%} to "&3Mezczyzna"
- set "plec4" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- else:
- sendMessage(player, "no-more-character")
- else if {postac5::plec::%player%} is not set:
- if {dodatkowa::postac2::%player%} is set:
- if arg-1 is "kobieta":
- set {postac5::plec::%player%} to "&dKobieta"
- wf "INFORMACJE O %player%:" to "plugins/RPG/players/%player%.yml"
- wf " " to "plugins/RPG/players/%player%.yml"
- set "plec5" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- if arg-1 is "mezczyzna":
- set {postac5::plec::%player%} to "&3Mezczyzna"
- set "plec5" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
- useRasa(player)
- else:
- sendMessage(player, "no-more-character")
- on first join:
- if file "plugins/RPG/players/%player%.yml" doesn't exists:
- create file "plugins/RPG/players/%player%.yml"
- useFirstJoin(player)
- # KOMENDY
- on load:
- if folder "{@filefolder}" doesn't exists:
- create folder "{@filefolder}"
- if file "{@fileconfig}" doesn't exists:
- create file "{@fileconfig}"
- if file "{@filemessages}" doesn't exists:
- create file "{@filemessages}"
- # POSTACIE GRACZA
- if folder "{@filefolderplayers}" doesn't exists:
- create file "{@filefolderplayers}"
- command /xtawrasa [<text>]:
- trigger:
- if {postac1::rasa::%player%} is not set:
- if arg-1 is "czlowiek":
- set {postac1::rasa::%player%} to "Czlowiek"
- set "rasa" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "krasnal":
- set {postac1::rasa::%player%} to "Krasnal"
- set "rasa" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "elf":
- set {postac1::rasa::%player%} to "Elf"
- set "rasa" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- else if {postac2::rasa::%player%} is not set:
- if arg-1 is "czlowiek":
- set {postac2::rasa::%player%} to "Czlowiek"
- set "rasa2" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "krasnal":
- set {postac2::rasa::%player%} to "Krasnal"
- set "rasa2" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "elf":
- set {postac2::rasa::%player%} to "Elf"
- set "rasa2" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- else if {postac3::rasa::%player%} is not set:
- if arg-1 is "czlowiek":
- set {postac3::rasa::%player%} to "Czlowiek"
- set "rasa3" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "krasnal":
- set {postac3::rasa::%player%} to "Krasnal"
- set "rasa3" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "elf":
- set {postac3::rasa::%player%} to "Elf"
- set "rasa3" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- else if {postac4::rasa::%player%} is not set:
- if {dodatkowa::postac1::%player%} is set:
- if arg-1 is "czlowiek":
- set {postac4::rasa::%player%} to "Czlowiek"
- set "rasa4" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "krasnal":
- set {postac4::rasa::%player%} to "Krasnal"
- set "rasa4" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "elf":
- set {postac4::rasa::%player%} to "Elf"
- set "rasa4" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- else:
- sendMessage(player, "no-more-character")
- else if {postac5::rasa::%player%} is not set:
- if {dodatkowa::postac2::%player%} is set:
- if arg-1 is "czlowiek":
- set {postac5::rasa::%player%} to "Czlowiek"
- set "rasa5" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "krasnal":
- set {postac5::rasa::%player%} to "Krasnal"
- set "rasa5" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- if arg-1 is "elf":
- set {postac5::rasa::%player%} to "Elf"
- set "rasa5" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
- useKlasy(player)
- else:
- sendMessage(player, "no-more-character")
- command /ykl9as2 [<text>]:
- trigger:
- if {postac1::klasa::%player%} is not set:
- if arg-1 is "rycerz":
- set {postac1::klasa::%player%} to "Rycerz Zakonu Smoka"
- set "klasa" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- if arg-1 is "mag":
- set {postac1::klasa::%player%} to "Mag Ognia"
- set "klasa" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- if arg-1 is "druid":
- set {postac1::klasa::%player%} to "Druid Lasu Valiam"
- set "klasa" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- if arg-1 is "paladyn":
- set {postac1::klasa::%player%} to "Zaprzysiezony Paladyn"
- set "klasa" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- if arg-1 is "lotrzyk":
- set {postac1::klasa::%player%} to "Lotrzyk Oszust"
- set "klasa" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- if arg-1 is "straznik":
- set {postac1::klasa::%player%} to "Straznik Lasu Valiam"
- set "klasa" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac1::postac::%player%} to true
- else if {postac2::klasa::%player%} is not set:
- if arg-1 is "rycerz":
- set {postac2::klasa::%player%} to "Rycerz Zakonu Smoka"
- set "klasa" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- if arg-1 is "mag":
- set {postac2::klasa::%player%} to "Mag Ognia"
- set "klasa" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- if arg-1 is "druid":
- set {postac2::klasa::%player%} to "Druid Lasu Valiam"
- set "klasa2" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- if arg-1 is "paladyn":
- set {postac2::klasa::%player%} to "Zaprzysiezony Paladyn"
- set "klasa2" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- if arg-1 is "lotrzyk":
- set {postac2::klasa::%player%} to "Lotrzyk Oszust"
- set "klasa2" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- if arg-1 is "straznik":
- set {postac2::klasa::%player%} to "Straznik Lasu Valiam"
- set "klasa2" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac2::postac::%player%} to true
- else if {postac3::klasa::%player%} is not set:
- if arg-1 is "rycerz":
- set {postac3::klasa::%player%} to "Rycerz Zakonu Smoka"
- set "klasa3" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- if arg-1 is "mag":
- set {postac3::klasa::%player%} to "Mag Ognia"
- set "klasa3" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- if arg-1 is "druid":
- set {postac3::klasa::%player%} to "Druid Lasu Valiam"
- set "klasa3" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- if arg-1 is "paladyn":
- set {postac3::klasa::%player%} to "Zaprzysiezony Paladyn"
- set "klasa3" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- if arg-1 is "lotrzyk":
- set {postac3::klasa::%player%} to "Lotrzyk Oszust"
- set "klasa3" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- if arg-1 is "straznik":
- set {postac3::klasa::%player%} to "Straznik Lasu Valiam"
- set "klasa3" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac3::postac::%player%} to true
- else if {postac4::klasa::%player%} is not set:
- if {dodatkowa::postac1::%player%} is set:
- if arg-1 is "rycerz":
- set {postac4::klasa::%player%} to "Rycerz Zakonu Smoka"
- set "klasa4" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- if arg-1 is "mag":
- set {postac4::klasa::%player%} to "Mag Ognia"
- set "klasa4" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- if arg-1 is "druid":
- set {postac4::klasa::%player%} to "Druid Lasu Valiam"
- set "klasa4" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- if arg-1 is "paladyn":
- set {postac4::klasa::%player%} to "Zaprzysiezony Paladyn"
- set "klasa4" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- if arg-1 is "lotrzyk":
- set {postac4::klasa::%player%} to "Lotrzyk Oszust"
- set "klasa4" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- if arg-1 is "straznik":
- set {postac4::klasa::%player%} to "Straznik Lasu Valiam"
- set "klasa4" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac4::postac::%player%} to true
- else:
- sendMessage(player, "no-more-character")
- else if {postac5::klasa::%player%} is not set:
- if {dodatkowa::postac2::%player%} is set:
- if arg-1 is "rycerz":
- set {postac5::klasa::%player%} to "Rycerz Zakonu Smoka"
- set "klasa5" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac5::postac::%player%} to true
- if arg-1 is "mag":
- set {postac5::klasa::%player%} to "Mag Ognia"
- set "klasa5" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac5::postac::%player%} to true
- if arg-1 is "druid":
- set {postac5::klasa::%player%} to "Druid Lasu Valiam"
- set "klasa5" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac5::postac::%player%} to true
- if arg-1 is "paladyn":
- set {postac5::klasa::%player%} to "Zaprzysiezony Paladyn"
- set "klasa5" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac5::postac::%player%} to true
- if arg-1 is "lotrzyk":
- set {postac5::klasa::%player%} to "Lotrzyk Oszust"
- set "klasa5" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- if arg-1 is "straznik":
- set {postac5::klasa::%player%} to "Straznik Lasu Valiam"
- set "klasa5" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
- sendMessage(player, "character-created-successful")
- set {postac5::postac::%player%} to true
- #command /vyb84r [<integer>]:
- # trigger:
- # if arg-1 is "1":
- # if arg-1 is "2":
- # if arg-1 is "3":
- # if arg-1 is "4":
- # if arg-1 is "5":
- command /xus4npos3ac [<integer>]:
- trigger:
- if arg-1 is 1:
- delete {postac1::klasa::%player%}
- delete {postac1::rasa::%player%}
- delete {postac1::plec::%player%}
- delete {postac1::postac::%player%}
- sendMessage(player, "deleted-char-1")
- if arg-1 is 2:
- delete {postac2::klasa::%player%}
- delete {postac2::rasa::%player%}
- delete {postac2::plec::%player%}
- delete {postac2::postac::%player%}
- sendMessage(player, "deleted-char-2")
- if arg-1 is 3:
- delete {postac3::klasa::%player%}
- delete {postac3::rasa::%player%}
- delete {postac3::plec::%player%}
- delete {postac3::postac::%player%}
- sendMessage(player, "deleted-char-3")
- if arg-1 is 4:
- delete {postac4::klasa::%player%}
- delete {postac4::rasa::%player%}
- delete {postac4::plec::%player%}
- delete {postac4::postac::%player%}
- sendMessage(player, "deleted-char-4")
- if arg-1 is 5:
- delete {postac5::klasa::%player%}
- delete {postac5::rasa::%player%}
- delete {postac5::plec::%player%}
- delete {postac5::postac::%player%}
- sendMessage(player, "deleted-char-5")
- command /qplec:
- trigger:
- stop
- command /qrasa:
- trigger:
- stop
- command /qklasa:
- trigger:
- stop
- command /qpostac:
- trigger:
- open last gui to player
- command /qpostac1:
- trigger:
- useWyborPostac1(player)
- command /qpostac2:
- trigger:
- useWyborPostac2(player)
- command /qpostac3:
- trigger:
- useWyborPostac3(player)
- command /qpostac4:
- trigger:
- useWyborPostac4(player)
- command /qpostac5:
- trigger:
- useWyborPostac5(player)
- command /yklas3:
- trigger:
- useKlasy(player)
- command /qstac:
- trigger:
- usePostacie(player)
- command /xrasee:
- trigger:
- useRasa(player)
- command /qtff1:
- trigger:
- useWyborPostac1(player)
- command /qtff2:
- trigger:
- useWyborPostac2(player)
- command /qtff3:
- trigger:
- useWyborPostac3(player)
- command /qtff4:
- trigger:
- useWyborPostac4(player)
- command /qtff5:
- trigger:
- useWyborPostac5(player)
- command /xdodatkowap9sta2:
- trigger:
- sendMessage(player, "itemshop-more-slots")
- command /qtworz385pot:
- trigger:
- usePotwiedzTworzenie(player)
- command /qusun34pot [<integer>]:
- trigger:
- if arg-1 is 1:
- usePotwiedzUsuniecie(player)
- if arg-1 is 2:
- usePotwiedzUsuniecie2(player)
- if arg-1 is 3:
- usePotwiedzUsuniecie3(player)
- if arg-1 is 4:
- usePotwiedzUsuniecie4(player)
- if arg-1 is 5:
- usePotwiedzUsuniecie5(player)
- command /qtworz385odrzuc2:
- trigger:
- sendMessage(player, "cancelled-character")
- command /qtworz385:
- trigger:
- if {postac3::klasa::%player%} is not set:
- wait 1 tick
- useFirstJoin(player)
- else:
- close player's inventory
- sendMessage(player, "no-more-character")
- command /qzy398fg8:
- trigger:
- useFirstJoin(player)
- command /zmienpostac:
- trigger:
- usePostacie(player)
- on command "register":
- if {rejestracja::%player%} is not set:
- useFirstJoin(player)
- set {rejestracja::%player%} to true
- on authme login:
- if {rejestracja::%player%} is set:
- wait 2 seconds
- usePostacie(player)
- command /xpos9tacie:
- trigger:
- usePostacie(player)
- command /pross:
- trigger:
- delete {rejestracja::%player%}
- delete {klasa::%player%}
- delete {rasa::%player%}
- delete {plec::%player%}
- delete {postac1::plec::%player%}
- delete {postac1::rasa::%player%}
- delete {postac1::klasa::%player%}
- delete {postac2::plec::%player%}
- delete {postac2::rasa::%player%}
- delete {postac2::klasa::%player%}
- delete {postac3::plec::%player%}
- delete {postac3::rasa::%player%}
- delete {postac3::klasa::%player%}
- delete {postac4::plec::%player%}
- delete {postac4::rasa::%player%}
- delete {postac4::klasa::%player%}
- delete {postac5::plec::%player%}
- delete {postac5::rasa::%player%}
- delete {postac5::klasa::%player%}
- delete {postac1::postac::%player%}
- delete {postac2::postac::%player%}
- delete {postac3::postac::%player%}
- delete {postac4::postac::%player%}
- delete {postac5::postac::%player%}
- delete file "plugins/RPG/players/%player%.yml"
Advertisement
Add Comment
Please, Sign In to add comment