knugi

Untitled

Aug 19th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.60 KB | None | 0 0
  1. function sendMessage(gracz: player, m: text):
  2. set {_message} to yaml value "%{_m}%" from file "plugins/RPG/messages.yml"
  3. send "%sendConfig(""tag"")% %{_message}%" to {_gracz}
  4. command /sendMessage [<text>]:
  5. trigger:
  6. sendMessage(player, "%arg 1%")
  7.  
  8. function sendVersion(name: text) :: text:
  9. set {_ver} to yaml value "%{_name}%" from file "plugins/RPG/versions.yml"
  10. return "%{_ver}%"
  11.  
  12. function sendConfig(name: text) :: text:
  13. set {_config} to yaml value "%{_name}%" from file "plugins/RPG/config.yml"
  14. return "%{_config}%"
  15. # Tworzenie postaci i jej wgrywanie.
  16. options:
  17. filemessages: plugins/RPG/messages.yml
  18. fileconfig: plugins/RPG/config.yml
  19. filefolder: plugins/RPG
  20. filefolderplayers: plugins/RPG/players
  21.  
  22. # FUNKCJE
  23.  
  24.  
  25. function useRasa(gracz: player):
  26. set {_opis-rasa-czlowiek} to single value "opis-czlowiek" get of "{@filemessages}"
  27. set {_opis-rasa-krasnal} to single value "opis-rasa-krasnal" get of "{@filemessages}"
  28. set {_opis-rasa-elf} to single value "opis-rasa-elf" get of "{@filemessages}"
  29. open chest with 1 row named "» Wybierz rase" to {_gracz}
  30. set {inv::%{_gracz}%} to "useRasa"
  31. wait 1 tick
  32. add 0 and 1 and 3 and 5 and 7 and 8 to {_glass::*}
  33. loop {_glass::*}:
  34. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  35. 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"]
  36. 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"]
  37. 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"]
  38.  
  39. function useKlasy(gracz: player):
  40. set {_opis-klasa-rycerz} to single value "opis-klasa-rycerz" get of "{@filemessages}"
  41. set {_opis-klasa-mag} to single value "opis-klasa-mag" get of "{@filemessages}"
  42. set {_opis-klasa-druid} to single value "opis-klasa-druid" get of "{@filemessages}"
  43. set {_opis-klasa-paladyn} to single value "opis-klasa-paladyn" get of "{@filemessages}"
  44. set {_opis-klasa-lotrzyk} to single value "opis-klasa-lotrzyk" get of "{@filemessages}"
  45. set {_opis-klasa-straznik} to single value "opis-klasa-straznik" get of "{@filemessages}"
  46. open chest with 3 rows named "» Wybierz klase" to {_gracz}
  47. set {inv::%{_gracz}%} to "useKlasy"
  48. wait 1 tick
  49. 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::*}
  50. loop {_glass::*}:
  51. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  52. 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"]
  53. 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"]
  54. 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"]
  55. 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"]
  56. 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"]
  57. 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"]
  58.  
  59. function usePostacie(gracz: player):
  60. open chest with 3 rows named "» Wybierz postac" to {_gracz}
  61. set {inv::%{_gracz}%} to "usePostacie"
  62. wait 1 tick
  63. 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::*}
  64. loop {_glass::*}:
  65. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  66. if {postac1::postac::%{_gracz}%} is set:
  67. 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"]
  68. else:
  69. format slot 10 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
  70. if {postac2::postac::%{_gracz}%} is set:
  71. 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"]
  72. else:
  73. format slot 11 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
  74. if {postac3::postac::%{_gracz}%} is set:
  75. 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"]
  76. else:
  77. format slot 12 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
  78. if {postac4::postac::%{_gracz}%} is set:
  79. 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"]
  80. if {dodatkowa::postac1::%{_gracz}%} is set:
  81. format slot 14 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
  82. else:
  83. format slot 14 of {_gracz} with 1 of skull of zombie named "&cZablokowane" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xdodatkowap9sta2"]
  84. if {postac5::postac::%{_gracz}%} is set:
  85. 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"]
  86. if {dodatkowa::postac1::%{_gracz}%} is set:
  87. format slot 15 of {_gracz} with 1 of 397 named "&2Odblokowane" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385pot"]
  88. else:
  89. format slot 15 of {_gracz} with 1 of skull of zombie named "&cZablokowane" to close then run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "xdodatkowap9sta2"]
  90.  
  91. function usePotwiedzTworzenie(gracz: player):
  92. open chest with 3 rows named "» Stworzyc postac?" to {_gracz}
  93. set {inv::%{_gracz}%} to "usePotwiedzTworzenie"
  94. wait 1 tick
  95. 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::*}
  96. loop {_glass::*}:
  97. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  98. format slot 12 of {_gracz} with 1 of Green Stained Glass Pane named "&aTAK" to run [delete {inv::%{_gracz}%}]->[execute {_gracz} command "qtworz385"]
  99. 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"]
  100.  
  101. function usePotwiedzUsuniecie(gracz: player):
  102. open chest with 3 rows named "» Usunac postac 1?" to {_gracz}
  103. set {inv::%{_gracz}%} to "usePotwiedzUsuniecie"
  104. wait 1 tick
  105. 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::*}
  106. loop {_glass::*}:
  107. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  108. 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"]
  109. 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"]
  110.  
  111. function usePotwiedzUsuniecie2(gracz: player):
  112. open chest with 3 rows named "» Usunac postac 2?" to {_gracz}
  113. set {inv::%{_gracz}%} to "usePotwiedzUsuniecie2"
  114. wait 1 tick
  115. 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::*}
  116. loop {_glass::*}:
  117. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  118. 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"]
  119. 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"]
  120.  
  121. function usePotwiedzUsuniecie3(gracz: player):
  122. open chest with 3 rows named "» Usunac postac 3?" to {_gracz}
  123. set {inv::%{_gracz}%} to "usePotwiedzUsuniecie3"
  124. wait 1 tick
  125. 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::*}
  126. loop {_glass::*}:
  127. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  128. 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"]
  129. 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"]
  130.  
  131. function usePotwiedzUsuniecie4(gracz: player):
  132. open chest with 3 rows named "» Usunac postac 4?" to {_gracz}
  133. set {inv::%{_gracz}%} to "usePotwiedzUsuniecie4"
  134. wait 1 tick
  135. 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::*}
  136. loop {_glass::*}:
  137. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  138. 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"]
  139. 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"]
  140.  
  141. function usePotwiedzUsuniecie5(gracz: player):
  142. open chest with 3 rows named "» Usunac postac 5?" to {_gracz}
  143. set {inv::%{_gracz}%} to "usePotwiedzUsuniecie5"
  144. wait 1 tick
  145. 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::*}
  146. loop {_glass::*}:
  147. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  148. 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"]
  149. 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"]
  150.  
  151.  
  152. function useWyborPostac1(gracz: player):
  153. open chest with 3 rows named "» Co zrobic z postac 1?" to {_gracz}
  154. set {inv::%{_gracz}%} to "useWyborPostac1"
  155. wait 1 tick
  156. 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::*}
  157. loop {_glass::*}:
  158. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  159. 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
  160. 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"]
  161. 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"]
  162.  
  163. function useWyborPostac2(gracz: player):
  164. open chest with 3 rows named "» Co zrobic z postac 2?" to {_gracz}
  165. set {inv::%{_gracz}%} to "useWyborPostac2"
  166. wait 1 tick
  167. 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::*}
  168. loop {_glass::*}:
  169. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  170. 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
  171. 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"]
  172. 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"]
  173.  
  174. function useWyborPostac3(gracz: player):
  175. open chest with 3 rows named "» Co zrobic z postac 3?" to {_gracz}
  176. set {inv::%{_gracz}%} to "useWyborPostac3"
  177. wait 1 tick
  178. 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::*}
  179. loop {_glass::*}:
  180. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  181. 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
  182. 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"]
  183. 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"]
  184.  
  185. function useWyborPostac4(gracz: player):
  186. open chest with 3 rows named "» Co zrobic z postac 4?" to {_gracz}
  187. set {inv::%{_gracz}%} to "useWyborPostac4"
  188. wait 1 tick
  189. 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::*}
  190. loop {_glass::*}:
  191. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  192. 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
  193. 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"]
  194. 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"]
  195.  
  196. function useWyborPostac5(gracz: player):
  197. open chest with 3 rows named "» Co zrobic z postac 5?" to {_gracz}
  198. set {inv::%{_gracz}%} to "useWyborPostac5"
  199. wait 1 tick
  200. 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::*}
  201. loop {_glass::*}:
  202. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  203. 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
  204. 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"]
  205. 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"]
  206. function useFirstJoin(gracz: player):
  207. set {_opis-kobieta} to single value "opis-kobieta" get of "{@filemessages}"
  208. set {_opis-mezczyzna} to single value "opis-mezczyzna" get of "{@filemessages}"
  209. open chest with 1 row named "» Wybierz plec" to {_gracz}
  210. set {inv::%{_gracz}%} to "useFirstJoin"
  211. wait 1 tick
  212. add 0 and 1 and 2 and 4 and 6 and 7 and 8 to {_glass::*}
  213. loop {_glass::*}:
  214. format slot loop-value of {_gracz} with 1 of Black Stained Glass Pane named " " to be unstealable
  215. 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"]
  216. 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"]
  217. on inventory close:
  218. if inventory name of player's current inventory contains "»":
  219. if {inv::%player%} is set:
  220. wait 2 tick
  221. #set {inv::%{_gracz}%} to "useWyborPostac"
  222. set {_p} to player
  223. evaluate "%{inv::%player%}%({_p})"
  224. send "%{inv::%player%}%(%player%)"
  225. #open {_x} to player
  226. command /qusta4wplec [<text>]:
  227. trigger:
  228. if {postac1::plec::%player%} is not set:
  229. if arg-1 is "kobieta":
  230. set {postac1::plec::%player%} to "&dKobieta"
  231. set "plec" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
  232. useRasa(player)
  233. if arg-1 is "mezczyzna":
  234. set {postac1::plec::%player%} to "&3Mezczyzna"
  235. set "plec" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
  236. useRasa(player)
  237. else if {postac2::plec::%player%} is not set:
  238. if arg-1 is "kobieta":
  239. set {postac2::plec::%player%} to "&dKobieta"
  240. set "plec2" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
  241. useRasa(player)
  242. if arg-1 is "mezczyzna":
  243. set {postac2::plec::%player%} to "&3Mezczyzna"
  244. set "plec2" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
  245. useRasa(player)
  246. else if {postac3::plec::%player%} is not set:
  247. if arg-1 is "kobieta":
  248. set {postac3::plec::%player%} to "&dKobieta"
  249. set "plec3" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
  250. useRasa(player)
  251. if arg-1 is "mezczyzna":
  252. set {postac3::plec::%player%} to "&3Mezczyzna"
  253. set "plec3" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
  254. useRasa(player)
  255. else if {postac4::plec::%player%} is not set:
  256. if {dodatkowa::postac1::%player%} is set:
  257. if arg-1 is "kobieta":
  258. set {postac4::plec::%player%} to "&dKobieta"
  259. set "plec4" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
  260. useRasa(player)
  261. if arg-1 is "mezczyzna":
  262. set {postac4::plec::%player%} to "&3Mezczyzna"
  263. set "plec4" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
  264. useRasa(player)
  265. else:
  266. sendMessage(player, "no-more-character")
  267. else if {postac5::plec::%player%} is not set:
  268. if {dodatkowa::postac2::%player%} is set:
  269. if arg-1 is "kobieta":
  270. set {postac5::plec::%player%} to "&dKobieta"
  271. wf "INFORMACJE O %player%:" to "plugins/RPG/players/%player%.yml"
  272. wf " " to "plugins/RPG/players/%player%.yml"
  273. set "plec5" to "kobieta" in yaml file "plugins/RPG/players/%player%.yml"
  274. useRasa(player)
  275. if arg-1 is "mezczyzna":
  276. set {postac5::plec::%player%} to "&3Mezczyzna"
  277. set "plec5" to "mezczyzna" in yaml file "plugins/RPG/players/%player%.yml"
  278. useRasa(player)
  279. else:
  280. sendMessage(player, "no-more-character")
  281. on first join:
  282. if file "plugins/RPG/players/%player%.yml" doesn't exists:
  283. create file "plugins/RPG/players/%player%.yml"
  284. useFirstJoin(player)
  285.  
  286. # KOMENDY
  287.  
  288. on load:
  289. if folder "{@filefolder}" doesn't exists:
  290. create folder "{@filefolder}"
  291. if file "{@fileconfig}" doesn't exists:
  292. create file "{@fileconfig}"
  293. if file "{@filemessages}" doesn't exists:
  294. create file "{@filemessages}"
  295. # POSTACIE GRACZA
  296. if folder "{@filefolderplayers}" doesn't exists:
  297. create file "{@filefolderplayers}"
  298. command /xtawrasa [<text>]:
  299. trigger:
  300. if {postac1::rasa::%player%} is not set:
  301. if arg-1 is "czlowiek":
  302. set {postac1::rasa::%player%} to "Czlowiek"
  303. set "rasa" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
  304. useKlasy(player)
  305. if arg-1 is "krasnal":
  306. set {postac1::rasa::%player%} to "Krasnal"
  307. set "rasa" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
  308. useKlasy(player)
  309. if arg-1 is "elf":
  310. set {postac1::rasa::%player%} to "Elf"
  311. set "rasa" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
  312. useKlasy(player)
  313. else if {postac2::rasa::%player%} is not set:
  314. if arg-1 is "czlowiek":
  315. set {postac2::rasa::%player%} to "Czlowiek"
  316. set "rasa2" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
  317. useKlasy(player)
  318. if arg-1 is "krasnal":
  319. set {postac2::rasa::%player%} to "Krasnal"
  320. set "rasa2" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
  321. useKlasy(player)
  322. if arg-1 is "elf":
  323. set {postac2::rasa::%player%} to "Elf"
  324. set "rasa2" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
  325. useKlasy(player)
  326. else if {postac3::rasa::%player%} is not set:
  327. if arg-1 is "czlowiek":
  328. set {postac3::rasa::%player%} to "Czlowiek"
  329. set "rasa3" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
  330. useKlasy(player)
  331. if arg-1 is "krasnal":
  332. set {postac3::rasa::%player%} to "Krasnal"
  333. set "rasa3" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
  334. useKlasy(player)
  335. if arg-1 is "elf":
  336. set {postac3::rasa::%player%} to "Elf"
  337. set "rasa3" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
  338. useKlasy(player)
  339. else if {postac4::rasa::%player%} is not set:
  340. if {dodatkowa::postac1::%player%} is set:
  341. if arg-1 is "czlowiek":
  342. set {postac4::rasa::%player%} to "Czlowiek"
  343. set "rasa4" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
  344. useKlasy(player)
  345. if arg-1 is "krasnal":
  346. set {postac4::rasa::%player%} to "Krasnal"
  347. set "rasa4" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
  348. useKlasy(player)
  349. if arg-1 is "elf":
  350. set {postac4::rasa::%player%} to "Elf"
  351. set "rasa4" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
  352. useKlasy(player)
  353. else:
  354. sendMessage(player, "no-more-character")
  355. else if {postac5::rasa::%player%} is not set:
  356. if {dodatkowa::postac2::%player%} is set:
  357. if arg-1 is "czlowiek":
  358. set {postac5::rasa::%player%} to "Czlowiek"
  359. set "rasa5" to "czlowiek" in yaml file "plugins/RPG/players/%player%.yml"
  360. useKlasy(player)
  361. if arg-1 is "krasnal":
  362. set {postac5::rasa::%player%} to "Krasnal"
  363. set "rasa5" to "krasnal" in yaml file "plugins/RPG/players/%player%.yml"
  364. useKlasy(player)
  365. if arg-1 is "elf":
  366. set {postac5::rasa::%player%} to "Elf"
  367. set "rasa5" to "elf" in yaml file "plugins/RPG/players/%player%.yml"
  368. useKlasy(player)
  369. else:
  370. sendMessage(player, "no-more-character")
  371. command /ykl9as2 [<text>]:
  372. trigger:
  373. if {postac1::klasa::%player%} is not set:
  374. if arg-1 is "rycerz":
  375. set {postac1::klasa::%player%} to "Rycerz Zakonu Smoka"
  376. set "klasa" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
  377. sendMessage(player, "character-created-successful")
  378. set {postac1::postac::%player%} to true
  379. if arg-1 is "mag":
  380. set {postac1::klasa::%player%} to "Mag Ognia"
  381. set "klasa" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
  382. sendMessage(player, "character-created-successful")
  383. set {postac1::postac::%player%} to true
  384. if arg-1 is "druid":
  385. set {postac1::klasa::%player%} to "Druid Lasu Valiam"
  386. set "klasa" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  387. sendMessage(player, "character-created-successful")
  388. set {postac1::postac::%player%} to true
  389. if arg-1 is "paladyn":
  390. set {postac1::klasa::%player%} to "Zaprzysiezony Paladyn"
  391. set "klasa" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
  392. sendMessage(player, "character-created-successful")
  393. set {postac1::postac::%player%} to true
  394. if arg-1 is "lotrzyk":
  395. set {postac1::klasa::%player%} to "Lotrzyk Oszust"
  396. set "klasa" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
  397. sendMessage(player, "character-created-successful")
  398. set {postac1::postac::%player%} to true
  399. if arg-1 is "straznik":
  400. set {postac1::klasa::%player%} to "Straznik Lasu Valiam"
  401. set "klasa" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  402. sendMessage(player, "character-created-successful")
  403. set {postac1::postac::%player%} to true
  404. else if {postac2::klasa::%player%} is not set:
  405. if arg-1 is "rycerz":
  406. set {postac2::klasa::%player%} to "Rycerz Zakonu Smoka"
  407. set "klasa" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
  408. sendMessage(player, "character-created-successful")
  409. set {postac2::postac::%player%} to true
  410. if arg-1 is "mag":
  411. set {postac2::klasa::%player%} to "Mag Ognia"
  412. set "klasa" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
  413. sendMessage(player, "character-created-successful")
  414. set {postac2::postac::%player%} to true
  415. if arg-1 is "druid":
  416. set {postac2::klasa::%player%} to "Druid Lasu Valiam"
  417. set "klasa2" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  418. sendMessage(player, "character-created-successful")
  419. set {postac2::postac::%player%} to true
  420. if arg-1 is "paladyn":
  421. set {postac2::klasa::%player%} to "Zaprzysiezony Paladyn"
  422. set "klasa2" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
  423. sendMessage(player, "character-created-successful")
  424. set {postac2::postac::%player%} to true
  425. if arg-1 is "lotrzyk":
  426. set {postac2::klasa::%player%} to "Lotrzyk Oszust"
  427. set "klasa2" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
  428. sendMessage(player, "character-created-successful")
  429. set {postac2::postac::%player%} to true
  430. if arg-1 is "straznik":
  431. set {postac2::klasa::%player%} to "Straznik Lasu Valiam"
  432. set "klasa2" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  433. sendMessage(player, "character-created-successful")
  434. set {postac2::postac::%player%} to true
  435. else if {postac3::klasa::%player%} is not set:
  436. if arg-1 is "rycerz":
  437. set {postac3::klasa::%player%} to "Rycerz Zakonu Smoka"
  438. set "klasa3" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
  439. sendMessage(player, "character-created-successful")
  440. set {postac3::postac::%player%} to true
  441. if arg-1 is "mag":
  442. set {postac3::klasa::%player%} to "Mag Ognia"
  443. set "klasa3" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
  444. sendMessage(player, "character-created-successful")
  445. set {postac3::postac::%player%} to true
  446. if arg-1 is "druid":
  447. set {postac3::klasa::%player%} to "Druid Lasu Valiam"
  448. set "klasa3" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  449. sendMessage(player, "character-created-successful")
  450. set {postac3::postac::%player%} to true
  451. if arg-1 is "paladyn":
  452. set {postac3::klasa::%player%} to "Zaprzysiezony Paladyn"
  453. set "klasa3" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
  454. sendMessage(player, "character-created-successful")
  455. set {postac3::postac::%player%} to true
  456. if arg-1 is "lotrzyk":
  457. set {postac3::klasa::%player%} to "Lotrzyk Oszust"
  458. set "klasa3" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
  459. sendMessage(player, "character-created-successful")
  460. set {postac3::postac::%player%} to true
  461. if arg-1 is "straznik":
  462. set {postac3::klasa::%player%} to "Straznik Lasu Valiam"
  463. set "klasa3" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  464. sendMessage(player, "character-created-successful")
  465. set {postac3::postac::%player%} to true
  466. else if {postac4::klasa::%player%} is not set:
  467. if {dodatkowa::postac1::%player%} is set:
  468. if arg-1 is "rycerz":
  469. set {postac4::klasa::%player%} to "Rycerz Zakonu Smoka"
  470. set "klasa4" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
  471. sendMessage(player, "character-created-successful")
  472. set {postac4::postac::%player%} to true
  473. if arg-1 is "mag":
  474. set {postac4::klasa::%player%} to "Mag Ognia"
  475. set "klasa4" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
  476. sendMessage(player, "character-created-successful")
  477. set {postac4::postac::%player%} to true
  478. if arg-1 is "druid":
  479. set {postac4::klasa::%player%} to "Druid Lasu Valiam"
  480. set "klasa4" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  481. sendMessage(player, "character-created-successful")
  482. set {postac4::postac::%player%} to true
  483. if arg-1 is "paladyn":
  484. set {postac4::klasa::%player%} to "Zaprzysiezony Paladyn"
  485. set "klasa4" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
  486. sendMessage(player, "character-created-successful")
  487. set {postac4::postac::%player%} to true
  488. if arg-1 is "lotrzyk":
  489. set {postac4::klasa::%player%} to "Lotrzyk Oszust"
  490. set "klasa4" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
  491. sendMessage(player, "character-created-successful")
  492. set {postac4::postac::%player%} to true
  493. if arg-1 is "straznik":
  494. set {postac4::klasa::%player%} to "Straznik Lasu Valiam"
  495. set "klasa4" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  496. sendMessage(player, "character-created-successful")
  497. set {postac4::postac::%player%} to true
  498. else:
  499. sendMessage(player, "no-more-character")
  500. else if {postac5::klasa::%player%} is not set:
  501. if {dodatkowa::postac2::%player%} is set:
  502. if arg-1 is "rycerz":
  503. set {postac5::klasa::%player%} to "Rycerz Zakonu Smoka"
  504. set "klasa5" to "Rycerz Zakonu Smoka" in yaml file "plugins/RPG/players/%player%.yml"
  505. sendMessage(player, "character-created-successful")
  506. set {postac5::postac::%player%} to true
  507. if arg-1 is "mag":
  508. set {postac5::klasa::%player%} to "Mag Ognia"
  509. set "klasa5" to "Mag Ognia" in yaml file "plugins/RPG/players/%player%.yml"
  510. sendMessage(player, "character-created-successful")
  511. set {postac5::postac::%player%} to true
  512. if arg-1 is "druid":
  513. set {postac5::klasa::%player%} to "Druid Lasu Valiam"
  514. set "klasa5" to "Druid Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  515. sendMessage(player, "character-created-successful")
  516. set {postac5::postac::%player%} to true
  517. if arg-1 is "paladyn":
  518. set {postac5::klasa::%player%} to "Zaprzysiezony Paladyn"
  519. set "klasa5" to "Zaprzysiezony Paladyn" in yaml file "plugins/RPG/players/%player%.yml"
  520. sendMessage(player, "character-created-successful")
  521. set {postac5::postac::%player%} to true
  522. if arg-1 is "lotrzyk":
  523. set {postac5::klasa::%player%} to "Lotrzyk Oszust"
  524. set "klasa5" to "Lotrzyk Oszuct" in yaml file "plugins/RPG/players/%player%.yml"
  525. sendMessage(player, "character-created-successful")
  526. if arg-1 is "straznik":
  527. set {postac5::klasa::%player%} to "Straznik Lasu Valiam"
  528. set "klasa5" to "Straznik Lasu Valiam" in yaml file "plugins/RPG/players/%player%.yml"
  529. sendMessage(player, "character-created-successful")
  530. set {postac5::postac::%player%} to true
  531. #command /vyb84r [<integer>]:
  532. # trigger:
  533. # if arg-1 is "1":
  534. # if arg-1 is "2":
  535. # if arg-1 is "3":
  536. # if arg-1 is "4":
  537. # if arg-1 is "5":
  538. command /xus4npos3ac [<integer>]:
  539. trigger:
  540. if arg-1 is 1:
  541. delete {postac1::klasa::%player%}
  542. delete {postac1::rasa::%player%}
  543. delete {postac1::plec::%player%}
  544. delete {postac1::postac::%player%}
  545. sendMessage(player, "deleted-char-1")
  546. if arg-1 is 2:
  547. delete {postac2::klasa::%player%}
  548. delete {postac2::rasa::%player%}
  549. delete {postac2::plec::%player%}
  550. delete {postac2::postac::%player%}
  551. sendMessage(player, "deleted-char-2")
  552. if arg-1 is 3:
  553. delete {postac3::klasa::%player%}
  554. delete {postac3::rasa::%player%}
  555. delete {postac3::plec::%player%}
  556. delete {postac3::postac::%player%}
  557. sendMessage(player, "deleted-char-3")
  558. if arg-1 is 4:
  559. delete {postac4::klasa::%player%}
  560. delete {postac4::rasa::%player%}
  561. delete {postac4::plec::%player%}
  562. delete {postac4::postac::%player%}
  563. sendMessage(player, "deleted-char-4")
  564. if arg-1 is 5:
  565. delete {postac5::klasa::%player%}
  566. delete {postac5::rasa::%player%}
  567. delete {postac5::plec::%player%}
  568. delete {postac5::postac::%player%}
  569. sendMessage(player, "deleted-char-5")
  570.  
  571.  
  572. command /qplec:
  573. trigger:
  574. stop
  575. command /qrasa:
  576. trigger:
  577. stop
  578. command /qklasa:
  579. trigger:
  580. stop
  581. command /qpostac:
  582. trigger:
  583. open last gui to player
  584. command /qpostac1:
  585. trigger:
  586. useWyborPostac1(player)
  587. command /qpostac2:
  588. trigger:
  589. useWyborPostac2(player)
  590. command /qpostac3:
  591. trigger:
  592. useWyborPostac3(player)
  593. command /qpostac4:
  594. trigger:
  595. useWyborPostac4(player)
  596. command /qpostac5:
  597. trigger:
  598. useWyborPostac5(player)
  599.  
  600. command /yklas3:
  601. trigger:
  602. useKlasy(player)
  603. command /qstac:
  604. trigger:
  605. usePostacie(player)
  606. command /xrasee:
  607. trigger:
  608. useRasa(player)
  609. command /qtff1:
  610. trigger:
  611. useWyborPostac1(player)
  612. command /qtff2:
  613. trigger:
  614. useWyborPostac2(player)
  615. command /qtff3:
  616. trigger:
  617. useWyborPostac3(player)
  618. command /qtff4:
  619. trigger:
  620. useWyborPostac4(player)
  621. command /qtff5:
  622. trigger:
  623. useWyborPostac5(player)
  624. command /xdodatkowap9sta2:
  625. trigger:
  626. sendMessage(player, "itemshop-more-slots")
  627. command /qtworz385pot:
  628. trigger:
  629. usePotwiedzTworzenie(player)
  630. command /qusun34pot [<integer>]:
  631. trigger:
  632. if arg-1 is 1:
  633. usePotwiedzUsuniecie(player)
  634. if arg-1 is 2:
  635. usePotwiedzUsuniecie2(player)
  636. if arg-1 is 3:
  637. usePotwiedzUsuniecie3(player)
  638. if arg-1 is 4:
  639. usePotwiedzUsuniecie4(player)
  640. if arg-1 is 5:
  641. usePotwiedzUsuniecie5(player)
  642. command /qtworz385odrzuc2:
  643. trigger:
  644. sendMessage(player, "cancelled-character")
  645. command /qtworz385:
  646. trigger:
  647. if {postac3::klasa::%player%} is not set:
  648. wait 1 tick
  649. useFirstJoin(player)
  650. else:
  651. close player's inventory
  652. sendMessage(player, "no-more-character")
  653. command /qzy398fg8:
  654. trigger:
  655. useFirstJoin(player)
  656. command /zmienpostac:
  657. trigger:
  658. usePostacie(player)
  659. on command "register":
  660. if {rejestracja::%player%} is not set:
  661. useFirstJoin(player)
  662. set {rejestracja::%player%} to true
  663. on authme login:
  664. if {rejestracja::%player%} is set:
  665. wait 2 seconds
  666. usePostacie(player)
  667.  
  668. command /xpos9tacie:
  669. trigger:
  670. usePostacie(player)
  671.  
  672. command /pross:
  673. trigger:
  674. delete {rejestracja::%player%}
  675. delete {klasa::%player%}
  676. delete {rasa::%player%}
  677. delete {plec::%player%}
  678. delete {postac1::plec::%player%}
  679. delete {postac1::rasa::%player%}
  680. delete {postac1::klasa::%player%}
  681. delete {postac2::plec::%player%}
  682. delete {postac2::rasa::%player%}
  683. delete {postac2::klasa::%player%}
  684. delete {postac3::plec::%player%}
  685. delete {postac3::rasa::%player%}
  686. delete {postac3::klasa::%player%}
  687. delete {postac4::plec::%player%}
  688. delete {postac4::rasa::%player%}
  689. delete {postac4::klasa::%player%}
  690. delete {postac5::plec::%player%}
  691. delete {postac5::rasa::%player%}
  692. delete {postac5::klasa::%player%}
  693. delete {postac1::postac::%player%}
  694. delete {postac2::postac::%player%}
  695. delete {postac3::postac::%player%}
  696. delete {postac4::postac::%player%}
  697. delete {postac5::postac::%player%}
  698. delete file "plugins/RPG/players/%player%.yml"
Advertisement
Add Comment
Please, Sign In to add comment