Guest User

Gildia skrypt

a guest
Aug 24th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.90 KB | None | 0 0
  1. #==============================================#
  2. # Skrypt zostal napisany przez (JkkS'a) #
  3. # NAME: MCSL_GUILDS #
  4. # Version: 2.0 #
  5. # Skrypt zostal stworzony do projektu: MCSL.PL #
  6. #==============================================#
  7. #ZAKAZ ROZPOWSZECHNIANIA BEZ ZGODY AUTORA!
  8. #ZAKAZ PODSZYWANIA SIE POD AUTORA!
  9.  
  10. options:
  11.  
  12. # Tag wyswietlany przed wiadomosciami skryptu!:
  13. tag: &7[&4PVP&8Guild&7]
  14.  
  15. # Wyglad chatu:
  16. chat: &8[&2{TAG}&8] &7{NICK}&2: &3{MSG}
  17.  
  18. # Czy trzeba placic za gildie? (true|false):
  19. payment-for-guild: true
  20.  
  21. # Jaka zaplata ma byc przyjmowana (money|item):
  22. payment-type: item
  23.  
  24. # Ilosc pieniedzy do zalozenia gildi:
  25. payment-money-amount: 1000
  26.  
  27. # Itemki na zalozenie gildii. Jezeli chcesz wiecej niz 5 wystarczy ze 1 jednej linice wpisz np. 3 cobblestone, 2 redstone and 1 torch , a jezeli nic wpisz none|air:
  28. payment-item-1: 1 diamond
  29. payment-item-2: 1 diamond
  30. payment-item-3: 1 diamond
  31. payment-item-4: 1 diamond
  32. payment-item-5: 1 diamond
  33.  
  34. # Blok ktory lezy na srodku cuboida:
  35. item-type-cuboid: dragon egg
  36.  
  37. #Czy cuboidy maja byc wlaczone:
  38. cuboids: true
  39.  
  40. #Czy ma byc wlaczone powiekszanie cuboidĂłw (true|false):
  41. powiekszanie: true
  42.  
  43. #Ile trzeba zaplacic za powiekszanie:
  44. increase-cuboid-price: 16
  45.  
  46. #Czym trzeba placic za powiekszanie:
  47. increase-cuboid-item: diamond and emerald
  48.  
  49. # Czy teleportacja na baze ma być włączona:
  50. home: true
  51.  
  52.  
  53.  
  54.  
  55. on script load:
  56. set {pvpguild.prefix} to "{@tag}"
  57. set {pvpguild.chat} to "{@chat}"
  58. set {pvpguild.payment-type} to "{@payment-type}"
  59. set {pvpguild.payment-money-amount} to "{@payment-money-amount}"
  60.  
  61.  
  62.  
  63. on load:
  64. send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
  65. send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
  66. set {_version.current} to first 4 characters of content of file "plugins/Skript/scripts/PVPGuild.sk"
  67. replace all "##" with "" in {_version.current}
  68. set {_version.check} to result of connect to "http://pastebin.com/raw.php?i=4cCXYNS5"
  69. set {_version.new} to first 4 characters of {_version.check}
  70. replace all "##" with "" in {_version.new}
  71. if {_version.new} is {_version.current}:
  72. send "&7[&4PVP&8Guild&7] &aPosiadasz najnowszą wersje skryptu!" to console
  73. send "&7[&4PVP&8Guild&7] Twoja wersja to %{_version.current}%" to console
  74. stop
  75. send "&7[&4PVP&8Guild&7] Dostepna jest nowsza wersja skryptu!" to console
  76. send "&7[&4PVP&8Guild&7] Rozpoczynanie pobierania ...." to console
  77. download "http://pastebin.com/raw.php?i=4cCXYNS5" to "plugins/Skript/scripts/PVPGuild.sk"
  78. wait 1 second
  79. send "&7[&4PVP&8Guild&7] Pobieranie zakonczone!" to console
  80. send "&7[&4PVP&8Guild&7] Twoja wersja to %{_version.new}%" to console
  81.  
  82.  
  83. command /gildia [<text>] [<text>] [<text>]:
  84. aliases: g
  85. trigger:
  86. if arg 1 is not set:
  87. if arg 2 is not set:
  88. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(1/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  89. send "&8%{h}% ࿃ &3/gildia zaloz <tag> <pelna nazwa> &a- zaklada gildie"
  90. send "&8%{h}% ࿃ &3/gildia dolacz <tag> &a- dolacza do gildii"
  91. send "&8%{h}% ࿃ &3/gildia zapros <gracz> &a- zaprasza gracza do gildii"
  92. send "&8%{h}% ࿃ &3/gildia wyrzuc <gracz> &a- wyrzuca gracza z gildii"
  93. send "&8%{h}% ࿃ &3/gildia opusc &a- opuszcza gildie"
  94. send "&8%{h}% ࿃ &3/gildia lider <gracz> &a- przekazuje lidera gildii"
  95. send "&8%{h}% ࿃ &3/gildia zastepca <gracz> &a- mianuje gracza zastepcom"
  96. send "&8%{h}% ࿃ &6Nastepna strona: &a/gildia pomoc 2"
  97. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  98. stop
  99. if arg 2 is "1":
  100. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(1/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  101. send "&8%{h}% ࿃ &3/gildia zaloz <tag> <pelna nazwa> &a- zaklada gildie" #Dziala!
  102. send "&8%{h}% ࿃ &3/gildia dolacz <tag> &a- dolacza do gildii" #Dziala!
  103. send "&8%{h}% ࿃ &3/gildia zapros <gracz> &a- zaprasza gracza do gildii"
  104. send "&8%{h}% ࿃ &3/gildia wyrzuc <gracz> &a- wyrzuca gracza z gildii" #Dziala!
  105. send "&8%{h}% ࿃ &3/gildia opusc &a- opuszcza gildie" #Dziala!
  106. send "&8%{h}% ࿃ &3/gildia lider <gracz> &a- przekazuje lidera gildii"
  107. send "&8%{h}% ࿃ &3/gildia zastepca <gracz> &a- mianuje gracza zastepcom"
  108. send "&8%{h}% ࿃ &6Nastepna strona: &a/gildia pomoc 2"
  109. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  110. stop
  111. if arg 2 is "2":
  112. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(2/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  113. send "&8%{h}% ࿃ &3/gildia opis <tresc> &a- zmienia opis gildii"
  114. send "&8%{h}% ࿃ &3/gildia ff &a- zmiana pvp w gildii" #Dziala!
  115. send "&8%{h}% ࿃ &3/gildia usun &a- usuwa gildie" #Dziala!
  116. send "&8%{h}% ࿃ &3/gildia gc <wiadomosc> &a- wysyla wiadomosc do gildii"
  117. send "&8%{h}% ࿃ &3/gildia powieksz &a- powieksza cuboid gildii" #Dziala!
  118. send "&8%{h}% ࿃ &3/gildia sojusz <tag> &a- zaprasza gildie do sojuszu"
  119. send "&8%{h}% ࿃ &3/gildia baza &a- teleportuje do bazy gildii"
  120. send "&8%{h}% ࿃ &3/sprawdz &a- sprawdzanie cuboida gildii"
  121. send "&8%{h}% ࿃ &3/ginfo <TAG> &a- sprawdzanie informacji o gildii"
  122. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  123. stop
  124. if arg 2 is "3" or "4" or "5":
  125. send " &8࿃ &7Poprawne uzycie: &3/gildia pomoc"
  126. stop
  127. if arg 1 is "reload":
  128. if player has permission "pvpguild.admin":
  129. execute console command "/sk reload %script%"
  130. send "&aPrzeladowano plugin!"
  131. stop
  132. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  133. stop
  134. if arg 1 is "pomoc":
  135. if arg 2 is not set:
  136. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(1/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  137. send "&8%{h}% ࿃ &3/gildia zaloz <tag> <pelna nazwa> &a- zaklada gildie"
  138. send "&8%{h}% ࿃ &3/gildia dolacz <tag> &a- dolacza do gildii"
  139. send "&8%{h}% ࿃ &3/gildia zapros <gracz> &a- zaprasza gracza do gildii"
  140. send "&8%{h}% ࿃ &3/gildia wyrzuc <gracz> &a- wyrzuca gracza z gildii"
  141. send "&8%{h}% ࿃ &3/gildia opusc &a- opuszcza gildie"
  142. send "&8%{h}% ࿃ &3/gildia lider <gracz> &a- przekazuje lidera gildii"
  143. send "&8%{h}% ࿃ &3/gildia zastepca <gracz> &a- mianuje gracza zastepcom"
  144. send "&8%{h}% ࿃ &6Nastepna strona: &a/gildia pomoc 2"
  145. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  146. stop
  147. if arg 2 is "1":
  148. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(1/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  149. send "&8%{h}% ࿃ &3/gildia zaloz <tag> <pelna nazwa> &a- zaklada gildie"
  150. send "&8%{h}% ࿃ &3/gildia dolacz <tag> &a- dolacza do gildii"
  151. send "&8%{h}% ࿃ &3/gildia zapros <gracz> &a- zaprasza gracza do gildii"
  152. send "&8%{h}% ࿃ &3/gildia wyrzuc <gracz> &a- wyrzuca gracza z gildii"
  153. send "&8%{h}% ࿃ &3/gildia opusc &a- opuszcza gildie"
  154. send "&8%{h}% ࿃ &3/gildia lider <gracz> &a- przekazuje lidera gildii"
  155. send "&8%{h}% ࿃ &3/gildia zastepca <gracz> &a- mianuje gracza zastepcom"
  156. send "&8%{h}% ࿃ &6Nastepna strona: &a/gildia pomoc 2"
  157. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  158. stop
  159. if arg 2 is "2":
  160. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIE &7(2/2) &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  161. send "&8%{h}% ࿃ &3/gildia opis <tresc> &a- zmienia opis gildii"
  162. send "&8%{h}% ࿃ &3/gildia ff &a- zmiana pvp w gildii"
  163. send "&8%{h}% ࿃ &3/gildia usun &a- usuwa gildie"
  164. send "&8%{h}% ࿃ &3/gildia gc <wiadomosc> &a- wysyla wiadomosc do gildii"
  165. send "&8%{h}% ࿃ &3/gildia powieksz &a- powieksza cuboid gildii"
  166. send "&8%{h}% ࿃ &3/gildia sojusz <tag> &a- zaprasza gildie do sojuszu"
  167. send "&8%{h}% ࿃ &3/gildia baza &a- teleportuje do bazy gildii"
  168. send "&8%{h}% ࿃ &3/sprawdz &a- sprawdzanie cuboida gildii"
  169. send "&8%{h}% ࿃ &3/ginfo <TAG> &a- sprawdzanie informacji o gildii"
  170. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  171. stop
  172. if arg 2 is "3" or "4" or "5":
  173. send "%{pvpguild.prefix}% &cTa strona nie istnieje!"
  174. stop
  175. if arg 1 is "autor":
  176. message "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lAUTOR &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  177. message "&8%{h}% ࿃ &3Autor: &aJkkS"
  178. message "&8%{h}% ࿃ &3Nazwa: &aMCSL_GUILDS"
  179. message "&8%{h}% ࿃ &3Wersja: &a2.0"
  180. message "&8%{h}% ࿃ &3Plugin dla serwera: &aMCSL.PL"
  181. message "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  182. stop
  183. if arg 1 is "setspawn":
  184. if player has permission "pvpguild.setspawn" or "pvpguild.admin":
  185. set {pvpguild.spawn} to location of player
  186. send " &8࿃ &aPomyslnie utworzono spawn."
  187. stop
  188. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  189. stop
  190. if arg 1 is "zaloz":
  191. if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
  192. if {pvpguild.guild::%arg 3%} is not set:
  193. if {pvpguild.inguild::%name of player%} is not set:
  194. if arg 2 is set:
  195. if length of argument 2 is smaller than 5:
  196. if arg 3 is set:
  197. if length of arg 3 is smaller than 21:
  198. if {@cuboids} is true:
  199. if distance between player and {pvpguild.spawn} is greater than 300:
  200. if {pvpguild.cuboid-center::*} is set:
  201. loop {pvpguild.cuboid-center::*}:
  202. if distance between player and loop-value is greater than 350:
  203. if {@payment-for-guild} is true:
  204. if {pvpguild.payment-type} is "money":
  205. set {_amount.money} to {pvpguild.payment-money-amount}
  206. if PLAYER'S MONEY is greater than {_amount.money}-1:
  207. remove {_amount.money} from the player's balance
  208. set {pvpguild.guild::%arg 3%} to true
  209. set {pvpguild.%arg 3%.lider} to "%name of player%"
  210. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  211. set {pvpguild.%arg 3%.time} to now
  212. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  213. add "%arg 2%" to {pvpguild.taglist::*}
  214. add "%arg 3%" to {pvpguild.guildlist::*}
  215. set {pvpguild.cuboid.%arg 3%} to location of player
  216. edit tag of player to "&8[&2%arg 2%&8]&7 "
  217. set block at {pvpguild.cuboid.%arg 3%} to {@item-type-cuboid}
  218. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  219. "%arg 3%".Region.selectLS{location of player, 51};
  220. set {_center} to "%arg 3%".Region.getCenter{};
  221. add {_center} to {pvpguild.cuboid-center::*}
  222. stop
  223. send "%{pvpguild.prefix}% &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
  224. stop
  225. if {pvpguild.payment-type} is "item":
  226. if player has {@payment-item-1}:
  227. if player has {@payment-item-2}:
  228. if player has {@payment-item-3}:
  229. if player has {@payment-item-4}:
  230. if player has {@payment-item-5}:
  231. remove {@payment-item-1} from the player
  232. remove {@payment-item-2} from the player
  233. remove {@payment-item-3} from the player
  234. remove {@payment-item-4} from the player
  235. remove {@payment-item-5} from the player
  236. set {pvpguild.guild::%arg 3%} to true
  237. set {pvpguild.%arg 3%.lider} to "%name of player%"
  238. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  239. set {pvpguild.%arg 3%.time} to now
  240. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  241. add "%arg 2%" to {pvpguild.taglist::*}
  242. add "%arg 3%" to {pvpguild.guildlist::*}
  243. set {pvpguild.cuboid.%arg 3%} to location of player
  244. edit tag of player to "&8[&2%arg 2%&8]&7 "
  245. set block at location of player to {@item-type-cuboid}
  246. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  247. "%arg 3%".Region.selectLS{location of player, 51};
  248. set {_center} to "%arg 3%".Region.getCenter{};
  249. add {_center} to {pvpguild.cuboid-center::*}
  250. stop
  251. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  252. stop
  253. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  254. stop
  255. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  256. stop
  257. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  258. stop
  259. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  260. stop
  261. set {pvpguild.guild::%arg 3%} to true
  262. set {pvpguild.%arg 3%.lider} to "%name of player%"
  263. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  264. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  265. add "%arg 2%" to {pvpguild.taglist::*}
  266. set {pvpguild.cuboid.%arg 3%} to location of player
  267. edit tag of player to "&8[&2%arg 2%&8]&7 "
  268. add "%arg 3%" to {pvpguild.guildlist::*}
  269. set {pvpguild.%arg 3%.time} to now
  270. set block at location of player to {@item-type-cuboid}
  271. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  272. "%arg 3%".Region.selectLS{location of player, 51};
  273. set {_center} to "%arg 3%".Region.getCenter{};
  274. add {_center} to {pvpguild.cuboid-center::*}
  275. stop
  276. send " &8࿃ &cW poblizu 200 kratek znajduje sie juz gildia."
  277. stop
  278. stop
  279. if {@payment-for-guild} is true:
  280. if {pvpguild.payment-type} is "money":
  281. set {_amount.money} to {pvpguild.payment-money-amount}
  282. if PLAYER'S MONEY is greater than {_amount.money}-1:
  283. remove {_amount.money} from the player's balance
  284. set {pvpguild.guild::%arg 3%} to true
  285. set {pvpguild.%arg 3%.lider} to "%name of player%"
  286. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  287. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  288. add "%arg 2%" to {pvpguild.taglist::*}
  289. set {pvpguild.%arg 3%.time} to now
  290. add "%arg 3%" to {pvpguild.guildlist::*}
  291. set {pvpguild.cuboid.%arg 3%} to location of player
  292. edit tag of player to "&8[&2%arg 2%&8]&7 "
  293. set block at {pvpguild.cuboid.%arg 3%} to {@item-type-cuboid}
  294. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  295. "%arg 3%".Region.selectLS{location of player, 51};
  296. set {_center} to "%arg 3%".Region.getCenter{};
  297. add {_center} to {pvpguild.cuboid-center::*}
  298. stop
  299. send " &8࿃ &cNie masz pieniedzy na zalozenie gildii."
  300. stop
  301. if {pvpguild.payment-type} is "item":
  302. if player has {@payment-item-1}:
  303. if player has {@payment-item-2}:
  304. if player has {@payment-item-3}:
  305. if player has {@payment-item-4}:
  306. if player has {@payment-item-5}:
  307. remove {@payment-item-1} from the player
  308. remove {@payment-item-2} from the player
  309. remove {@payment-item-3} from the player
  310. remove {@payment-item-4} from the player
  311. remove {@payment-item-5} from the player
  312. set {pvpguild.guild::%arg 3%} to true
  313. set {pvpguild.%arg 3%.lider} to "%name of player%"
  314. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  315. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  316. add "%arg 2%" to {pvpguild.taglist::*}
  317. add "%arg 3%" to {pvpguild.guildlist::*}
  318. set {pvpguild.%arg 3%.time} to now
  319. set {pvpguild.cuboid.%arg 3%} to location of player
  320. edit tag of player to "&8[&2%arg 2%&8]&7 "
  321. set block at location of player to {@item-type-cuboid}
  322. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  323. "%arg 3%".Region.selectLS{location of player, 51};
  324. set {_center} to "%arg 3%".Region.getCenter{};
  325. add {_center} to {pvpguild.cuboid-center::*}
  326. stop
  327. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  328. stop
  329. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  330. stop
  331. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  332. stop
  333. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  334. stop
  335. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  336. stop
  337. set {pvpguild.guild::%arg 3%} to true
  338. set {pvpguild.%arg 3%.lider} to "%name of player%"
  339. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  340. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  341. add "%arg 2%" to {pvpguild.taglist::*}
  342. set {pvpguild.%arg 3%.time} to now
  343. set {pvpguild.cuboid.%arg 3%} to location of player
  344. edit tag of player to "&8[&2%arg 2%&8]&7 "
  345. add "%arg 3%" to {pvpguild.guildlist::*}
  346. set block at location of player to {@item-type-cuboid}
  347. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  348. "%arg 3%".Region.selectLS{location of player, 51};
  349. set {_center} to "%arg 3%".Region.getCenter{};
  350. add {_center} to {pvpguild.cuboid-center::*}
  351. stop
  352. send " &8࿃ &cGildie mozna zalozyc 300 kratek od spawnu."
  353. stop
  354. if {@cuboids} is false:
  355. if {@payment-for-guild} is true:
  356. if {pvpguild.payment-type} is "money":
  357. set {_amount.money} to {pvpguild.payment-money-amount}
  358. if PLAYER'S MONEY is greater than {_amount.money}-1:
  359. remove {_amount.money} from the player's balance
  360. set {pvpguild.guild::%arg 3%} to true
  361. edit tag of player to "&8[&2%arg 2%&8]&7 "
  362. set {pvpguild.%arg 3%.time} to now
  363. set {pvpguild.%arg 3%.lider} to "%name of player%"
  364. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  365. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  366. add "%arg 2%" to {pvpguild.taglist::*}
  367. add "%arg 3%" to {pvpguild.guildlist::*}
  368. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  369. stop
  370. send " &8࿃ &cNie masz pieniedzy na zalozenie gildii."
  371. stop
  372. if {pvpguild.payment-type} is "item":
  373. if player has {@payment-item-1}:
  374. if player has {@payment-item-2}:
  375. if player has {@payment-item-3}:
  376. if player has {@payment-item-4}:
  377. if player has {@payment-item-5}:
  378. remove {@payment-item-1} from the player
  379. remove {@payment-item-2} from the player
  380. remove {@payment-item-3} from the player
  381. remove {@payment-item-4} from the player
  382. remove {@payment-item-5} from the player
  383. set {pvpguild.guild::%arg 3%} to true
  384. edit tag of player to "&8[&2%arg 2%&8]&7 "
  385. set {pvpguild.%arg 3%.lider} to "%name of player%"
  386. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  387. set {pvpguild.%arg 3%.time} to now
  388. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  389. add "%arg 2%" to {pvpguild.taglist::*}
  390. add "%arg 3%" to {pvpguild.guildlist::*}
  391. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  392. stop
  393. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  394. stop
  395. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  396. stop
  397. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  398. stop
  399. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  400. stop
  401. send " &8࿃ &cNie posiadasz przedmiotow aby zalozyc gildie."
  402. stop
  403. stop
  404. set {pvpguild.guild::%arg 3%} to true
  405. set {pvpguild.%arg 3%.lider} to "%name of player%"
  406. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  407. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  408. add "%arg 2%" to {pvpguild.taglist::*}
  409. edit tag of player to "&8[&2%arg 2%&8]&7 "
  410. set {pvpguild.%arg 3%.time} to now
  411. add "%arg 3%" to {pvpguild.guildlist::*}
  412. broadcast " &8࿃ &aGracz: &3%name of player% &azalozyl gildie: &3%arg 2% &3%arg 3%&a."
  413. stop
  414. stop
  415. send " &8࿃ &cPodana nazwa gildii jest zbyt dluga."
  416. stop
  417. send " &8࿃ &cPodana nazwa gildii jest za krotka."
  418. stop
  419. send " &8࿃ &cPodany tag gildii jest zbyt dlugi."
  420. stop
  421. send " &8࿃ &cPodany tag gildii jest za krotki."
  422. stop
  423. send " &8࿃ &cJestes juz aktualnie w gildii."
  424. stop
  425. send " &8࿃ &cGildia o podanej nazwie nie istnieje."
  426. stop
  427. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  428. stop
  429. if arg 1 is "info":
  430. if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
  431. if {@cuboids} is true:
  432. if arg 2 is set:
  433. if {pvpguild.guild::%arg 2%} is set:
  434. if {pvpguild.%arg 2%.members::*} is set:
  435. if {pvpguild.%arg 2%.oficers::*} is set:
  436. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  437. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  438. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  439. send "&8%{h}% ࿃ &7Opis: &3fsd"
  440. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  441. set {_size} to "%arg 2%".Region.getSize{};
  442. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  443. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  444. if {_} is 0:
  445. send "&7Sojusze: &9Brak"
  446. if {_} is greater than 0:
  447. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  448. loop {pvpguild.%arg 2%.oficers::*}:
  449. if loop-value PARSED AS player is online:
  450. add loop-value parsed as player to {_online.oficers::*}
  451. if loop-value is offline:
  452. add loop-value to {_offline.oficers::*}
  453. if {_online.oficers::*} is set:
  454. if {_offline.oficers::*} is set:
  455. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  456. else:
  457. send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  458. else:
  459. send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  460. loop {pvpguild.%arg 2%.members::*}:
  461. if loop-value parsed as player is online:
  462. add loop-value to {_online.members::*}
  463. if loop-value is offline:
  464. add loop-value to {_offline.members::*}
  465. if {_online.members::*} is set:
  466. if {_offline.members::*} is set:
  467. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  468. stop
  469. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  470. stop
  471. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  472. stop
  473. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  474. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  475. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  476. send "&8%{h}% ࿃ &7Opis: &3fsd"
  477. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  478. send "&8%{h}% ࿃ &7Zastepca: &3gfd"
  479. set {_size} to "%arg 2%".Region.getSize{};
  480. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  481. send "&7Oficerowie gildi: &9Brak"
  482. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  483. if {_} is 0:
  484. send "&7Sojusze: &9Brak"
  485. if {_} is greater than 0:
  486. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  487. loop {pvpguild.%arg 2%.members::*}:
  488. if loop-value parsed as player is online:
  489. add loop-value to {_online.members::*}
  490. if loop-value is offline:
  491. add loop-value to {_offline.members::*}
  492. if {_online.members::*} is set:
  493. if {_offline.members::*} is set:
  494. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  495. stop
  496. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  497. stop
  498. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  499. stop
  500. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  501. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  502. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  503. send "&8%{h}% ࿃ &7Opis: &3fsd"
  504. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  505. send "&8%{h}% ࿃ &7Zastepca: &3fdsdf"
  506. set {_size} to "%arg 2%".Region.getSize{};
  507. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  508. send "&7Oficerowie gildi: &9Brak"
  509. send "&7Czlonkowie gildi: &9Brak"
  510. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  511. if {_} is 0:
  512. send "&7Sojusze: &9Brak"
  513. stop
  514. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  515. stop
  516. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  517. stop
  518. else:
  519. if {pvpguild.inguild::%name of player%} is set:
  520. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
  521. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
  522. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  523. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  524. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  525. send "&8%{h}% ࿃ &7Opis: &3fsd"
  526. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  527. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  528. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  529. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  530. if {_} is 0:
  531. send "&7Sojusze: &9Brak"
  532. if {_} is greater than 0:
  533. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  534. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  535. if loop-value parsed as player is online:
  536. add loop-value to {_online.oficers::*}
  537. if loop-value is offline:
  538. add loop-value to {_offline.oficers::*}
  539. if {_online.oficers::*} is set:
  540. if {_offline.oficers::*} is set:
  541. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  542. else:
  543. send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  544. else:
  545. send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  546. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  547. if loop-value parsed as player is online:
  548. add loop-value to {_online.members::*}
  549. if loop-value is offline:
  550. add loop-value to {_offline.members::*}
  551. if {_online.members::*} is set:
  552. if {_offline.members::*} is set:
  553. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  554. stop
  555. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  556. stop
  557. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  558. stop
  559. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  560. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  561. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  562. send "&8%{h}% ࿃ &7Opis: &3fsd"
  563. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  564. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  565. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  566. send "&7Oficerowie gildi: &9Brak"
  567. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  568. if {_} is 0:
  569. send "&7Sojusze: &9Brak"
  570. if {_} is greater than 0:
  571. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  572. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  573. if loop-value parsed as player is online:
  574. add loop-value to {_online.members::*}
  575. if loop-value is offline:
  576. add loop-value to {_offline.members::*}
  577. if {_online.members::*} is set:
  578. if {_offline.members::*} is set:
  579. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  580. stop
  581. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  582. stop
  583. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  584. stop
  585. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGILDIA &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  586. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  587. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  588. send "&8%{h}% ࿃ &7Opis: &3fsd"
  589. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  590. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  591. send "&8%{h}% ࿃ &7Wielkosc cuboida: &6%{_size}%x%{_size}%"
  592. send "&7Oficerowie gildi: &9Brak"
  593. send "&7Czlonkowie gildi: &9Brak"
  594. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  595. if {_} is 0:
  596. send "&7Sojusze: &9Brak"
  597. stop
  598. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  599. stop
  600. stop
  601. stop
  602. if {@cuboids} is false:
  603. if arg 2 is set:
  604. if {pvpguild.guild::%arg 2%} is set:
  605. if {pvpguild.%arg 2%.members::*} is set:
  606. if {pvpguild.%arg 2%.oficers::*} is set:
  607. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  608. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  609. send "&8%{h}% ࿃ &7Opis: &3fsd"
  610. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  611. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  612. if {_} is 0:
  613. send "&7Sojusze: &9Brak"
  614. if {_} is greater than 0:
  615. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  616. loop {pvpguild.%arg 2%.oficers::*}:
  617. if loop-value PARSED AS player is online:
  618. add loop-value to {_online.oficers::*}
  619. if loop-value parsed as player is offline:
  620. add loop-value to {_offline.oficers::*}
  621. if {_online.oficers::*} is set:
  622. if {_offline.oficers::*} is set:
  623. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  624. loop {pvpguild.%arg 2%.members::*}:
  625. if loop-value parsed as player is online:
  626. add loop-value to {_online.members::*}
  627. if loop-value is offline:
  628. add loop-value to {_offline.members::*}
  629. if {_online.members::*} is set:
  630. if {_offline.members::*} is set:
  631. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  632. stop
  633. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  634. stop
  635. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  636. stop
  637. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  638. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  639. send "&8%{h}% ࿃ &7Opis: &3fsd"
  640. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  641. send "&7Oficerowie gildi: &9Brak"
  642. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  643. if {_} is 0:
  644. send "&7Sojusze: &9Brak"
  645. if {_} is greater than 0:
  646. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  647. loop {pvpguild.%arg 2%.members::*}:
  648. if loop-value parsed as player is online:
  649. add loop-value to {_online.members::*}
  650. if loop-value is offline:
  651. add loop-value to {_offline.members::*}
  652. if {_online.members::*} is set:
  653. if {_offline.members::*} is set:
  654. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  655. stop
  656. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  657. stop
  658. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  659. stop
  660. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%arg 2%"
  661. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%arg 2%.tag}%"
  662. send "&8%{h}% ࿃ &7Opis: &3fsd"
  663. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%arg 2%.lider}%"
  664. send "&7Oficerowie gildi: &9Brak"
  665. send "&7Czlonkowie gildi: &9Brak"
  666. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  667. if {_} is 0:
  668. send "&7Sojusze: &9Brak"
  669. stop
  670. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  671. stop
  672. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  673. stop
  674. else:
  675. if {pvpguild.inguild::%name of player%} is set:
  676. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
  677. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
  678. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  679. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  680. send "&8%{h}% ࿃ &7Opis: &3fsd"
  681. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  682. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  683. if {_} is 0:
  684. send "&7Sojusze: &9Brak"
  685. if {_} is greater than 0:
  686. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  687. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  688. if loop-value parsed as player is online:
  689. add loop-value to {_online.oficers::*}
  690. if loop-value is offline:
  691. add loop-value to {_offline.oficers::*}
  692. if {_online.oficers::*} is set:
  693. if {_offline.oficers::*} is set:
  694. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  695. stop
  696. send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  697. stop
  698. send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  699. stop
  700. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  701. if loop-value parsed as player is online:
  702. add loop-value to {_online.members::*}
  703. if loop-value is offline:
  704. add loop-value to {_offline.members::*}
  705. if {_online.members::*} is set:
  706. if {_offline.members::*} is set:
  707. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  708. stop
  709. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  710. stop
  711. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  712. stop
  713. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  714. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  715. send "&8%{h}% ࿃ &7Opis: &3fsd"
  716. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  717. send "&7Oficerowie gildi: &9Brak"
  718. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  719. if {_} is 0:
  720. send "&7Sojusze: &9Brak"
  721. if {_} is greater than 0:
  722. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  723. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  724. if loop-value parsed as player is online:
  725. add loop-value to {_online.members::*}
  726. if loop-value is offline:
  727. add loop-value to {_offline.members::*}
  728. if {_online.members::*} is set:
  729. if {_offline.members::*} is set:
  730. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  731. stop
  732. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  733. stop
  734. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  735. stop
  736. send "&8%{h}% ࿃ &7Pelna Nazwa: &3%{pvpguild.inguild::%name of player%}%"
  737. send "&8%{h}% ࿃ &7Tag Gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  738. send "&8%{h}% ࿃ &7Opis: &3fsd"
  739. send "&8%{h}% ࿃ &7Lider: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  740. send "&7Oficerowie gildi: &9Brak"
  741. send "&7Czlonkowie gildi: &9Brak"
  742. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  743. if {_} is 0:
  744. send "&7Sojusze: &9Brak"
  745. stop
  746. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  747. stop
  748. stop
  749. send "%{pvpguild.prefix}% &cNie posiadasz gildi!"
  750. stop
  751. send "%{pvpguild.prefix}% &cNie masz uprawanien do tej komendy!"
  752. stop
  753. if arg 1 is "usun":
  754. if player has permission "pvpguild.delete" or "pvpguild.admin" or "pvpguild.gracz":
  755. if {pvpguild.inguild::%name of player%} is set:
  756. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  757. set block at {pvpguild.cuboid.%{pvpguild.inguild::%name of player%}%} to air
  758. remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  759. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.guildlist::*}
  760. broadcast " &8࿃ &aGracz: &3%name of player% &ausunal gildie: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  761. clear {pvpguild.guild::%{pvpguild.inguild::%name of player%}%}
  762. edit tag of player to ""
  763. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.lider}
  764. if {@cuboids} is true:
  765. set {_center} to "%{pvpguild.inguild::%name of player%}%".Region.getCenter{};
  766. delete {pvpguild.%{pvpguild.inguild::%name of player%}%.home}
  767. remove {_center} from {pvpguild.cuboid-center::*}
  768. "%{pvpguild.inguild::%name of player%}%".Region.delete{};
  769. delete {pvpguild.%{pvpguild.inguild::%name of player%}%.time}
  770. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.tag}
  771. remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  772. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is greater than 0:
  773. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  774. clear {pvpguild.inguild::%loop-value%}
  775. edit tag of loop-value parsed as player to ""
  776. remove "%loop-value parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  777. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is greater than 0:
  778. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  779. clear {pvpguild.inguild::%loop-value%}
  780. edit tag of loop-value parsed as player to ""
  781. remove "%loop-value parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  782. clear {pvpguild.inguild::%name of player%}
  783. stop
  784. send " &8࿃ &cNie jestes liderem gildii."
  785. stop
  786. send " &8࿃ &cNie posiadasz gildii."
  787. stop
  788. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  789. stop
  790. if arg 1 is "lista":
  791. if player has permission "pvpguild.list" or "pvpguild.admin" or "pvpguild.gracz":
  792. set {_strona} to arg 2 parsed as number
  793. if {_strona} is not set:
  794. set {_strona} to 1
  795. set {_liczbawpisow} to size of {pvpguild.guildlist::*}
  796. set {_liczba-stron} to ceil({_liczbawpisow}/10)
  797. if {_liczba-stron} is smaller than 1:
  798. set {_liczba-stron} to 1
  799. if {_strona} is smaller than 1:
  800. send "%{pvpguild.prefix}% &cNie ma takiej strony!"
  801. stop
  802. if {_strona} is greater than {_liczba-stron}:
  803. send "%{pvpguild.prefix}% &cNie ma takiej strony!"
  804. stop
  805. if size of {pvpguild.guildlist::*} is smaller than 1:
  806. send "%{pvpguild.prefix}% &cBrak gildi!"
  807. stop
  808. loop {pvpguild.guildlist::*}:
  809. add loop-value to {_pvpguild.guildlist::*}
  810. loop {pvpguild.taglist::*}:
  811. add loop-value to {_pvpguild.taglist::*}
  812. send "&8Lista gildii: &2%{_strona}%&6/&2%{_liczba-stron}%"
  813. loop {_liczbawpisow} times:
  814. set {_lista} to ({_strona}-1)*10
  815. add loop-number to {_lista}
  816. if {_pvpguild.guildlist::%{_lista}%} is not set:
  817. stop
  818. if loop-number is 11:
  819. stop
  820. send "&8%{_lista}%. &4%{_pvpguild.guildlist::%{_lista}%}% &7[&9%{_pvpguild.taglist::%{_lista}%}%&7]"
  821. stop
  822. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  823. stop
  824. if arg 1 is "zapros":
  825. if player has permission "pvpguild.invite" or "pvpguild.admin" or "pvpguild.gracz":
  826. if {pvpguild.inguild::%name of player%} is set:
  827. if arg 2 is set:
  828. set {_player} to arg 2 parsed as player
  829. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  830. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  831. send "&8===================================================" to {_player}
  832. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  833. send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  834. send "&8===================================================" to {_player}
  835. send "&8==================================================="
  836. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  837. send "&8==================================================="
  838. wait 1 minute
  839. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  840. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  841. stop
  842. stop
  843. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  844. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  845. send "&8===================================================" to {_player}
  846. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  847. send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  848. send "&8===================================================" to {_player}
  849. send "&8==================================================="
  850. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  851. send "&8==================================================="
  852. wait 1 minute
  853. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  854. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  855. stop
  856. stop
  857. send "%{pvpguild.prefix}% &cTylko lider/oficer moze zapraszac do gildi!"
  858. stop
  859. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  860. stop
  861. send "%{pvpguild.prefix}% Musisz być w gildi!"
  862. stop
  863. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  864. stop
  865. if arg 1 is "dolacz":
  866. if player has permission "pvpguild.dolacz" or "pvpguild.admin" or "pvpguild.gracz":
  867. if {pvpguild.inguild::%name of player%} isn't set:
  868. if arg 2 is set:
  869. if {pvpguild.guild::%arg 2%} is true:
  870. if {invite.%arg 2%.%name of player%} is true:
  871. set {pvpguild.inguild::%name of player%} to "%arg 2%"
  872. clear {invite.%arg 2%.%name of player%}
  873. edit tag of player to "&8[&2%{pvpguild.%arg 2%.tag}%&8]&7 "
  874. add "%name of player%" to {pvpguild.%arg 2%.members::*}
  875. broadcast " &8࿃ &aGracz: &3%player% &adolaczyl do gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%arg 2%&a."
  876. stop
  877. send " &8࿃ &cNie posiadasz zaproszenia od tej gildii."
  878. stop
  879. send " &8࿃ &cGildia o podanej nazwie nie istnieje."
  880. stop
  881. send " &8࿃ &cPodany tag gildii jest za krotki."
  882. stop
  883. send " &8࿃ &cJestes juz aktualnie w gildii."
  884. stop
  885. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  886. stop
  887. if arg 1 is "opusc":
  888. if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
  889. if {pvpguild.inguild::%name of player%} is set:
  890. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  891. send " &8◎ &cNie mozesz opuscic gildii bedac jej liderem."
  892. stop
  893. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  894. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  895. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  896. edit tag of player to ""
  897. broadcast " &8◎ &aGracz: &3%arg 2% &aopuscil gildiie: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  898. clear {pvpguild.inguild::%name of player%}
  899. stop
  900. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  901. broadcast " &8◎ &aGracz: &3%arg 2% &aopuscil gildiie: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  902. edit tag of player to ""
  903. clear {pvpguild.inguild::%name of player%}
  904. stop
  905. send " &8࿃ &cNie posiadasz gildi."
  906. stop
  907. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  908. stop
  909. if arg 1 is "wyrzuc":
  910. if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
  911. if {pvpguild.inguild::%name of player%} is set:
  912. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  913. if arg 2 is set:
  914. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  915. loop-value is argument 2:
  916. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
  917. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
  918. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  919. edit tag of argument 2 parsed as player to ""
  920. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  921. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  922. broadcast " &8◎ &aGracz: &3%arg 2% &azostal wyzucony z gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  923. stop
  924. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  925. edit tag of argument 2 parsed as player to ""
  926. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  927. broadcast " &8◎ &aGracz: &3%arg 2% &azostal wyzucony z gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  928. stop
  929. send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
  930. stop
  931. send " &8࿃ &cGracz o podanym nicku jest offline."
  932. stop
  933. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  934. if arg 2 is set:
  935. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  936. loop-value is argument 2 parsed as offline player:
  937. loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
  938. edit tag of argument 2 parsed as player to ""
  939. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  940. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  941. broadcast " &8◎ &aGracz: &3%arg 2% &azostal wyzucony z gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &3%{pvpguild.inguild::%name of player%}%&a."
  942. stop
  943. send " &8࿃ &cNie mozesz wyrzucic zastepcy gildii."
  944. stop
  945. send " &8࿃ &cGracz o podanym nicku nie nalezy do twojej gildii."
  946. stop
  947. send " &8࿃ &cGracz o podanym nicku jest offline."
  948. stop
  949. send " &8࿃ &cNie jestes liderem gildii."
  950. stop
  951. send " &8࿃ &cNie posiadasz gildi."
  952. stop
  953. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  954. stop
  955. if arg 1 is "gc":
  956. if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":
  957. if {pvpguild.inguild::%name of player%} is set:
  958. if arg 2 is set:
  959. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  960. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  961. set {_p} to loop-value parsed as player
  962. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  963. if arg 3 is set:
  964. set {_} to coloured arg 3
  965. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  966. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  967. stop
  968. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  969. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  970. set {_p} to loop-value parsed as player
  971. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  972. set {_} to ""
  973. if arg 3 is set:
  974. set {_} to coloured arg 3
  975. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  976. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  977. stop
  978. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  979. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  980. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  981. set {_p} to loop-value parsed as player
  982. set {_} to ""
  983. if arg 3 is set:
  984. set {_} to coloured arg 3
  985. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  986. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  987. stop
  988. send "%{pvpguild.prefix}% &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  989. stop
  990. if arg 2 is not set:
  991. if {pvpguild.guild-chat::%name of player%} is not set:
  992. set {pvpguild.guild-chat::%name of player%} to false
  993. if {pvpguild.guild-chat::%name of player%} is false:
  994. set {pvpguild.guild-chat::%name of player%} to true
  995. send "%{pvpguild.prefix}% &aWlaczono chat gildijny!"
  996. stop
  997. if {pvpguild.guild-chat::%name of player%} is true:
  998. set {pvpguild.guild-chat::%name of player%} to false
  999. send "%{pvpguild.prefix}% &cChat gildijny wylaczony!"
  1000. stop
  1001.  
  1002. send "%{pvpguild.prefix}% &cMusisz byc w gildi!"
  1003. stop
  1004. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1005. stop
  1006. if arg 1 is "zastepca":
  1007. if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
  1008. if {pvpguild.inguild::%name of player%} is set:
  1009. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1010. if arg 2 is set:
  1011. set {_p} to arg 2 parsed as player
  1012. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  1013. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  1014. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
  1015. add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  1016. set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
  1017. send "%{pvpguild.prefix}% &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
  1018. stop
  1019. send "%{pvpguild.prefix}% &cTen gracz jest juz oficerem!"
  1020. stop
  1021. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  1022. stop
  1023. send "%{pvpguild.prefix}% &cLider nie moze zostac oficerem!"
  1024. stop
  1025. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  1026. stop
  1027. send "%{pvpguild.prefix}% &cTylko lider moze mianowac graczy!"
  1028. stop
  1029. send "%{pvpguild.prefix}% &cNie jestes w gildi!"
  1030. stop
  1031. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1032. stop
  1033. if arg 1 is "ff":
  1034. if player has permission "pvpguild.pvp" or "pvpguild.admin" or "pvpguild.gracz":
  1035. if {pvpguild.inguild::%name of player%} is set:
  1036. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1037. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is not set:
  1038. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  1039. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is false:
  1040. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to true
  1041. send " &8࿃ &cPvp w gildii zostalo wlaczone."
  1042. stop
  1043. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is true:
  1044. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  1045. send " &8࿃ &aPvp w gildii zostalo wylaczone."
  1046. stop
  1047. stop
  1048. send " &8࿃ &cNie jestes liderem gildii."
  1049. stop
  1050. send " &8◎ &cNie posiadasz gildii."
  1051. stop
  1052. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1053. stop
  1054. if arg 1 is "degrad" or "degraduj":
  1055. if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
  1056. if {pvpguild.inguild::%name of player%} is set:
  1057. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1058. if arg 2 is set:
  1059. set {_p} to arg 2
  1060. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  1061. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  1062. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
  1063. remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  1064. delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
  1065. send "%{pvpguild.prefix}% &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
  1066. stop
  1067. send "%{pvpguild.prefix}% &cTen gracz nie jest oficerem!"
  1068. stop
  1069. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  1070. stop
  1071. send "%{pvpguild.prefix}% &cLider nie moze byc zdegradowany!"
  1072. stop
  1073. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  1074. stop
  1075. send "%{pvpguild.prefix}% &cTylko lider moze mianowac graczy!"
  1076. stop
  1077. send "%{pvpguild.prefix}% &cNie jestes w gildi!"
  1078. stop
  1079. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1080. stop
  1081. if arg 1 is "sethome" or "ustawdom":
  1082. if player has permission "pvpguild.admin" or "pvpguild.gracz" or "pvpguild.sethome":
  1083. if {@home} is true:
  1084. if {pvpguild.inguild::%name of player%} is set:
  1085. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1086. set {_region} to region.at{location of player};
  1087. if {_region} is {pvpguild.inguild::%name of player%}:
  1088. set {pvpguild.%{pvpguild.inguild::%name of player%}%.home} to location of player
  1089. send "%{pvpguild.prefix}% &aUstawiono baze!"
  1090. stop
  1091. send "%{pvpguild.prefix}% &cBaze możesz ustawić tylko na terenie swojej gildii!"
  1092. stop
  1093. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1094. stop
  1095. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1096. stop
  1097. send "%{pvpguild.prefix}% &cUstawianie bazy jest wyłączone!"
  1098. stop
  1099. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1100. stop
  1101. if arg 1 is "baza":
  1102. if player has permission "pvpguild.admin" or "pvpguild.gracz" or "pvpguild.sethome":
  1103. if {@home} is true:
  1104. if {pvpguild.inguild::%name of player%} is set:
  1105. if {pvpguild.%{pvpguild.inguild::%name of player%}%.home} is set:
  1106. set {_loc} to location of player
  1107. send "%{pvpguild.prefix}% &aTeleportacja nastapi za 5 sekund , prosze sie nie ruszac!"
  1108. if {_loc} isn't location of player:
  1109. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1110. stop
  1111. wait 1 second
  1112. if {_loc} isn't location of player:
  1113. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1114. stop
  1115. wait 1 second
  1116. if {_loc} isn't location of player:
  1117. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1118. stop
  1119. wait 1 second
  1120. if {_loc} isn't location of player:
  1121. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1122. stop
  1123. wait 1 second
  1124. if {_loc} isn't location of player:
  1125. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1126. stop
  1127. wait 1 second
  1128. if {_loc} is location of player:
  1129. teleport player to {pvpguild.%{pvpguild.inguild::%name of player%}%.home}
  1130. send "%{pvpguild.prefix}% &aTeleportacja ..."
  1131. stop
  1132. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1133. stop
  1134. send "%{pvpguild.prefix}% &cBaza nie została ustawiona!"
  1135. stop
  1136. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1137. stop
  1138. send "%{pvpguild.prefix}% &cUstawianie bazy jest wyłączone!"
  1139. stop
  1140. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1141. stop
  1142. if arg 1 is "sojusz":
  1143. if player has permission "pvpguild.sojusz" or "pvpguild.admin" or "pvpguild.gracz":
  1144. if {pvpguild.inguild::%name of player%} is set:
  1145. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1146. if arg 2 is set:
  1147. if arg 2 is not {pvpguild.inguild::%name of player%}:
  1148. if {pvpguild.guild::%arg 2%} is set:
  1149. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is not set:
  1150. if {pvpguild.%arg 2%.lider} parsed as player is online:
  1151. set {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} to true
  1152. set {_player} to {pvpguild.%arg 2%.lider} parsed as player
  1153. send "&8===================================================" to {_player}
  1154. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie do sojuszu!" to {_player}
  1155. send "&eWpisz &a/g asojusz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  1156. send "&8===================================================" to {_player}
  1157. send "&8==================================================="
  1158. send "&eZaproszenie zostalo wyslane do gildi &a%arg 2%"
  1159. send "&8==================================================="
  1160. wait 1 minute
  1161. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  1162. clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1163. stop
  1164. send "%{pvpguild.prefix}% &cCzas oczekiwania na akceptacje minal!"
  1165. stop
  1166. stop
  1167. send "%{pvpguild.prefix}% &cLider tej gildii nie jest online!"
  1168. stop
  1169. send "%{pvpguild.prefix}% &cTo jest juz twoj sojusznik !"
  1170. stop
  1171. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1172. stop
  1173. send "%{pvpguild.prefix}% &cNie możesz zawrzeć sojuszu z własną gildią!"
  1174. stop
  1175. send "%{pvpguild.prefix}% &cPodaj nazwe gildii!"
  1176. stop
  1177. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1178. stop
  1179. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1180. stop
  1181. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1182. stop
  1183. if arg 1 is "asojusz":
  1184. if player has permission "pvpguild.asojusz" or "pvpguild.admin" or "pvpguild.gracz":
  1185. if {pvpguild.inguild::%name of player%} is set:
  1186. if arg 2 is set:
  1187. if {pvpguild.guild::%arg 2%} is set:
  1188. if {pvpguild.invite.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  1189. set {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} to true
  1190. clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1191. add "%arg 2%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1192. add "%{pvpguild.inguild::%name of player%}%" to {pvpguild.%arg 2%.sojusz::*}
  1193. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zawarla sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1194. stop
  1195. send "%{pvpguild.prefix}% &cNie masz zaproszenia od tej gildi!"
  1196. stop
  1197. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1198. stop
  1199. send "%{pvpguild.prefix}% &cPodaj nazwe gildi!"
  1200. stop
  1201. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1202. stop
  1203. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1204. stop
  1205. if arg 1 is "powieksz":
  1206. if player has permission "pvpguild.powieksz" or "pvpguild.admin" or "pvpguild.gracz":
  1207. if {pvpguild.inguild::%name of player%} is set:
  1208. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1209. if {@powiekszanie} is true:
  1210. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  1211. if {_size} is not 201:
  1212. set {_price} to ({_size}/10)-5+{@increase-cuboid-price}
  1213. if player contains {_price} of {@increase-cuboid-item}:
  1214. "%{pvpguild.inguild::%name of player%}%".Region.setSize{{_size}+10};
  1215. remove {_price} of {@increase-cuboid-item} from player
  1216. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  1217. broadcast " &8࿃ &aGracz: &3%name of player% &apowiekszyl cuboid gildii: &3%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}% &7(promien &6%{_size}%x%{_size}%&7)"
  1218. stop
  1219. send "%{pvpguild.prefix}% &cNie masz wystarczajacych itemkĂłw!"
  1220. stop
  1221. send "%{pvpguild.prefix}% &cTwoja gildia osiagnela juz maksymalny rozmiar cuboidu!"
  1222. stop
  1223. send "%{pvpguild.prefix}% &cPowiekszanie gildii jest wylaczone!"
  1224. stop
  1225. send "%{pvpguild.prefix}% &cNie jestes liderem gildii"
  1226. stop
  1227. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1228. stop
  1229. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1230. stop
  1231. if arg 1 is "neutral":
  1232. if player has permission "pvpguild.neutral" or "pvpguild.admin" or "pvpguild.gracz":
  1233. if {pvpguild.inguild::%name of player%} is set:
  1234. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1235. if arg 2 is set:
  1236. if {pvpguild.guild::%arg 2%} is set:
  1237. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  1238. delete {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1239. remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1240. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  1241. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1242. stop
  1243. if {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  1244. delete {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%}
  1245. remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1246. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  1247. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1248. stop
  1249. send "%{pvpguild.prefix}% &cTo nie jest twoj sojusznik!"
  1250. stop
  1251. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1252. stop
  1253. send "%{pvpguild.prefix}% &cPodaj nazwe gildii!"
  1254. stop
  1255. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1256. stop
  1257. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1258. stop
  1259. send " &8◎ &cNie masz uprawnien. &7(mcsl.gildia)"
  1260. stop
  1261. send "%{pvpguild.prefix}% &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
  1262. stop
  1263.  
  1264. on damage of player:
  1265. if {pvpguild.inguild::%name of attacker%} is set:
  1266. if {pvpguild.inguild::%name of victim%} is set:
  1267. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
  1268. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.pvp} is false:
  1269. cancel event
  1270. stop
  1271. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
  1272. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.pvp} is false:
  1273. cancel event
  1274. stop
  1275. else:
  1276. set {_attack} to {pvpguild.inguild::%name of attacker%}
  1277. set {_defend} to {pvpguild.inguild::%name of victim%}
  1278. if {pvpguild.soj.%{_defend}%.%{_attack}%} is true:
  1279. cancel event
  1280. stop
  1281. if {pvpguild.soj.%{_attack}%.%{_defend}%} is true:
  1282. cancel event
  1283. stop
  1284.  
  1285. on break:
  1286. set {_region} to Region.at{event-location};
  1287. if {_region} is empty:
  1288. stop
  1289. if {_region} is set:
  1290. if {_region} is {pvpguild.inguild::%name of player%}:
  1291. stop
  1292. cancel event
  1293. send " &8࿃ &cTo jest teren innej gildi."
  1294. stop
  1295. on place:
  1296. set {_region} to Region.at{event-location};
  1297. if {_region} is empty:
  1298. stop
  1299. if {_region} is set:
  1300. if {_region} is {pvpguild.inguild::%name of player%}:
  1301. stop
  1302. cancel event
  1303. send " &8࿃ &cTo jest teren innej gildi."
  1304. stop
  1305. on chat:
  1306. if {pvpguild.inguild::%name of player%} is set:
  1307. if {pvpguild.guild-chat::%name of player%} is not set:
  1308. set {pvpguild.guild-chat::%name of player%} to false
  1309. if {pvpguild.guild-chat::%name of player%} is false:
  1310. cancel event
  1311. set {_chat} to "%{pvpguild.chat}%"
  1312. replace all "{TAG}" with "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" in {_chat}
  1313. replace all "{NICK}" with "%display name of player%" in {_chat}
  1314. replace all "{MSG}" with "%message%" in {_chat}
  1315. broadcast "%{_chat}%"
  1316. stop
  1317. if {pvpguild.guild-chat::%name of player%} is true:
  1318. cancel event
  1319. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  1320. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1321. set {_p} to loop-value parsed as player
  1322. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  1323. if arg 3 is set:
  1324. set {_} to coloured arg 3
  1325. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1326. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  1327. stop
  1328. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  1329. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1330. set {_p} to loop-value parsed as player
  1331. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  1332. set {_} to ""
  1333. if arg 3 is set:
  1334. set {_} to coloured arg 3
  1335. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1336. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  1337. stop
  1338. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1339. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  1340. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1341. set {_p} to loop-value parsed as player
  1342. set {_} to ""
  1343. if arg 3 is set:
  1344. set {_} to coloured arg 3
  1345. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1346. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  1347. stop
  1348. send "%{pvpguild.prefix}% &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  1349. stop
  1350.  
  1351.  
  1352. on anymove:
  1353. set {_region} to region.at{location of player};
  1354. if {_region} is set:
  1355. if {pvpguild.%name of player%.back} is not set:
  1356. set {pvpguild.%name of player%.back} to {_region}
  1357. remove bossbar from player
  1358. if {pvpguild.%{_region}%.members::*} contain player:
  1359. stop
  1360. if {pvpguild.%{_region}%.lider} is player:
  1361. stop
  1362. loop {pvpguild.%{_region}%.members::*}:
  1363. send "%{pvpguild.prefix}% &c** &7Intruz na terenie twojej gildii! &c **" to loop-value
  1364. send "%{pvpguild.prefix}% &c** &7Intruz na terenie twojej gildii! &c **" to {pvpguild.%{pvpguild.%name of player%.back}%.lider} parsed as player
  1365. display "&aWchodzisz na teren gildii &7%{_region}%" on bossbar with 100 percent by 5 seconds for player
  1366. if {_region} is not set:
  1367. if {pvpguild.%name of player%.back} is set:
  1368. remove bossbar from player
  1369. if {pvpguild.%{pvpguild.%name of player%.back}%.members::*} contain player:
  1370. stop
  1371. if {pvpguild.%{pvpguild.%name of player%.back}%.lider} is player:
  1372. stop
  1373. loop {pvpguild.%{pvpguild.%name of player%.back}%.members::*}:
  1374. send "%{pvpguild.prefix}% &c** &7Intruz opuscil teren twojej gildii! &c **" to loop-value
  1375. send "%{pvpguild.prefix}% &c** &7Intruz opuscil teren twojej gildii! &c **" to {pvpguild.%{pvpguild.%name of player%.back}%.lider} parsed as player
  1376. display "&aOpuszczasz teren gildii &7%{pvpguild.%name of player%.back}%" on bossbar with 100 percent by 5 seconds for player
  1377. delete {pvpguild.%name of player%.back}
  1378.  
  1379. on load:
  1380. send "[psRanking] Succesfully loaded." to the console
  1381. send "[psRanking] Developed by TheFallingCookie." to the console
  1382. execute console command "scoreboard objectives add pkt dummy &7pkt"
  1383. execute console command "scoreboard objectives setdisplay belowName pkt"
  1384. loop all players:
  1385. kick loop-player due to "&7Wejdz ponownie na serwer!"
  1386. on unload:
  1387. execute console command "scoreboard objectives remove pkt"
  1388. on join:
  1389. {punkty::%player%} is not set:
  1390. set {punkty::%player%} to 1000
  1391. {zabojstwa.%player%} is not set:
  1392. set {zabojstwa.%player%} to 0
  1393. {smierci.%player%} is not set:
  1394. set {smierci.%player%} to 0
  1395. execute console command "scoreboard players set %player% pkt %{punkty::%player%}%"
  1396. set {_x} to name of player
  1397. if {_x} is "TheFallingCookie":
  1398. send "&8> &7Na tym serwerze znajduje sie skrypt &6psRanking &7by TheFallingCookie"
  1399. on death of player:
  1400. strike lightning effect at the player
  1401. {atakujacy.%victim%} is set:
  1402. set {_attacker.%victim%} to {atakujacy.%victim%}
  1403. drop victim's skull at location of victim
  1404. add 1 to {smierci.%victim%}
  1405. add 1 to {zabojstwa.%{_attacker.%victim%}%}
  1406. set {_punkty.%victim%} to rounded down {punkty::%victim%}*0.10
  1407. add {_punkty.%victim%} to {punkty::%{_attacker.%victim%}%}
  1408. remove {_punkty.%victim%} from {punkty::%victim%}
  1409. set death message to " &8࿃ &aGracz: &3%victim% &azostal zabity przez: &3%{_attacker.%victim%}% &7(&6%{_punkty.%victim%}%&7)&a, z przedmiotu: &7(%tool of attacker%)&a."
  1410. execute console command "scoreboard players set %victim% pkt %{punkty::%victim%}%"
  1411. execute console command "scoreboard players set %{_attacker.%victim%}% pkt %{punkty::%{_attacker.%victim%}%}%"
  1412. delete {atakujacy.%victim%}
  1413. stop
  1414. {atakujacy.%victim%} is not set:
  1415. add 1 to {smierci.%victim%}
  1416. remove 30 from {punkty::%victim%}
  1417. execute console command "scoreboard players set %victim% pkt %{punkty::%victim%}%"
  1418. stop
  1419. on quit:
  1420. if {atakujacy.%player%} is set:
  1421. set {_attacker.%player%} to {atakujacy.%player%}
  1422. delete {atakujacy.%player%}
  1423. kill player
  1424. drop player's skull at location of player
  1425. add 1 to {smierci.%player%}
  1426. add 1 to {zabojstwa.%{_attacker.%player%}%}
  1427. set {_punkty.%player%} to rounded down {punkty::%player%}*0.10
  1428. add {_punkty.%player%} to {punkty::%{_attacker.%player%}%}
  1429. remove {_punkty.%player%} from {punkty::%player%}
  1430. broadcast "&8> &6%player% wylogowal sie podczas walki!"
  1431. broadcast "&8> &6%player% &czostal zabity przez &6%{_attacker.%player%}% &7(&6+%{_punkty.%player%}%&7)"
  1432. execute console command "scoreboard players set %player% pkt %{punkty::%player%}%"
  1433. execute console command "scoreboard players set %{_attacker.%player%}% pkt %{punkty::%{_attacker.%player%}%}%"
  1434. delete {atakujacy.%player%}
  1435. on damage of player:
  1436. {punkty::%attacker%} is set:
  1437. set {atakujacy.%victim%} to name of attacker
  1438. wait 15 seconds
  1439. delete {atakujacy.%victim%}
  1440. command /gracz [<offline player=%player%>]:
  1441. description: Pozwala na sprawdzenie rankingu innego gracza
  1442. trigger:
  1443. if arg is set:
  1444. {punkty::%arg%} is set:
  1445. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGRACZ &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  1446. send "&8%{h}% &8࿃ &7Gracz: &3%arg%&7,"
  1447. send "&8%{h}% &8࿃ &7Gildia: &3gfdg"
  1448. send "&8%{h}% &8࿃ &7Punkty: &3%{punkty::%arg%}%&7,"
  1449. send "&8%{h}% &8࿃ &7Miejsce w rankingu: &3gdfgd&7,"
  1450. send "&8%{h}% &8࿃ &7Zabójstwa: &3%{zabojstwa.%arg%}%&7,"
  1451. send "&8%{h}% &8࿃ &7Smierci: &3%{smierci.%arg%}%&7."
  1452. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  1453. {punkty::%arg%} is not set:
  1454. send " &8࿃ &cGracz o takim nicku nie jest w bazie danych."
  1455. stop
  1456. else:
  1457. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}% &2&lGRACZ &8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  1458. send "&8%{h}% &8࿃ &7Gracz: &3%arg%&7,"
  1459. send "&8%{h}% &8࿃ &7Gildia: &3khj&7,"
  1460. send "&8%{h}% &8࿃ &7Punkty: &3%{punkty::%arg%}%&7,"
  1461. send "&8%{h}% &8࿃ &7Miejsce w rankingu: &3gdfgd&7,"
  1462. send "&8%{h}% &8࿃ &7Zabójstwa: &3%{zabojstwa.%arg%}%&7,"
  1463. send "&8%{h}% &8࿃ &7Smierci: &3%{smierci.%arg%}%&7."
  1464. send "&8%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%%{h}%"
  1465. command /top10:
  1466. description: Top 10 graczy z najwyzsza iloscia punktow
  1467. aliases: /top, /topka
  1468. trigger:
  1469. send "&8> &6Top 10 najlepszych graczy:"
  1470. set {_num} to size of {punkty::*}
  1471. loop {_num} times:
  1472. loop {punkty::*}:
  1473. {_v.%loop-number%} is not set:
  1474. set {_v.%loop-number%} to loop-value
  1475. set {_n.%loop-number%} to loop-index
  1476. loop-value is greater than {_v.%loop-number%}:
  1477. set {_v.%loop-number%} to loop-value
  1478. set {_n.%loop-number%} to loop-index
  1479. remove {_v.%loop-number%} from {punkty::*}
  1480. loop {_num} times:
  1481. loop-number is less than or equal to 10:
  1482. send "&8> &7%loop-number%. &6%{_n.%loop-number%}% &8(&6%{_v.%loop-number%}%&8)"
  1483. set {punkty::%{_n.%loop-number%}%} to {_v.%loop-number%}
  1484. command /ranking [<text>] [<player>] [<integer>]:
  1485. description: Pozwala na zarzadzanie rankingiem innego gracza
  1486. trigger:
  1487. if player has permission "psranking.*":
  1488. arg 1 is not set:
  1489. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1490. arg 1 is not "set" or "add" or "remove":
  1491. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1492. arg 1 is "set":
  1493. if arg 2 is set:
  1494. if arg 3 is set:
  1495. if {punkty::%arg 2%} is set:
  1496. set {punkty::%arg 2%} to arg 3
  1497. send "&8> &7Zaaktualizowano ranking gracza: &6%arg 2%&7!"
  1498. execute console command "scoreboard players set %arg 2% pkt %{punkty::%arg 2%}%"
  1499. else:
  1500. send "&8> &cGracza o takim nicku nie ma w bazie danych!"
  1501. else:
  1502. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1503. else:
  1504. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1505. arg 1 is "add":
  1506. if arg 2 is set:
  1507. if arg 3 is set:
  1508. if {punkty::%arg 2%} is set:
  1509. add arg 3 to {punkty::%arg 2%}
  1510. send "&8> &7Zaaktualizowano ranking gracza: &6%arg 2%&7!"
  1511. execute console command "scoreboard players set %arg 2% pkt %{punkty::%arg 2%}%"
  1512. else:
  1513. send "&8> &cGracza o takim nicku nie ma w bazie danych!"
  1514. else:
  1515. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1516. else:
  1517. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1518. arg 1 is "remove":
  1519. if arg 2 is set:
  1520. if arg 3 is set:
  1521. if {punkty::%arg 2%} is set:
  1522. remove arg 3 from {punkty::%arg 2%}
  1523. send "&8> &7Zaaktualizowano ranking gracza: &6%arg 2%&7!"
  1524. execute console command "scoreboard players set %arg 2% pkt %{punkty::%arg 2%}%"
  1525. else:
  1526. send "&8> &cGracza o takim nicku nie ma w bazie danych!"
  1527. else:
  1528. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1529. else:
  1530. send "&8> &cPrawidlowe uzycie: &6/ranking &7<&6set|add|remove&7> <&6gracz&7> <&6ilosc>&7"
  1531. stop
  1532. else:
  1533. send "&8> &cNie masz uprawnien do uzywania tej komendy! &7(&6psranking.*&7)"
  1534. command /hag [<text>]:
  1535. trigger:
  1536. set {h} to arg
  1537. stop
Advertisement
Add Comment
Please, Sign In to add comment