patison234

PVPGuild 1.9.1

Jul 16th, 2014
9,063
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.08 KB | None | 0 0
  1. #1.9.1#
  2.  
  3. # # # # # # # # # # # # # # # #
  4. # Script by Patek #
  5. # Name: PVPGuild #
  6. # Version: 1.9.1 #
  7. # Skript: 2.1/2.1.2 #
  8. # # # # # # # # # # # # # # # #
  9.  
  10.  
  11.  
  12. #=============================================#
  13. # Licencja PVPGuild by Patek! #
  14. # + Nie zezwalam na: #
  15. # - Usuwanie tresci o autorze! #
  16. # - Udostepnaniu skryptu innym! #
  17. # - Podszywanie sie pod autora! #
  18. # - Uzywanie kodu skryptu w swoich skryptach! #
  19. # - Zarabianie na skrypcie! #
  20. # + Zezwalam na: #
  21. # - Dodawanie kodu na swoja potrzebe! #
  22. # - Modyfikowanie wiadomosci! #
  23. #=============================================#
  24. #______________ ______________ ________ .__.__ .___
  25. #\______ \ \ / /\______ \/ _____/ __ __|__| | __| _/
  26. # | ___/\ Y / | ___/ \ ___| | \ | | / __ |
  27. # | | \ / | | \ \_\ \ | / | |__/ /_/ |
  28. # |____| \___/ |____| \______ /____/|__|____/\____ |
  29. # \/ \/
  30.  
  31. options:
  32.  
  33. # Tag wyswietlany przed wiadomosciami skryptu!:
  34. tag: &7[&4PVP&8Guild&7]
  35.  
  36. # Wyglad chatu:
  37. chat: &7[&6{TAG}&7] {NICK}: &f{MSG}
  38.  
  39. # Czy trzeba placic za gildie? (true|false):
  40. payment-for-guild: false
  41.  
  42. # Jaka zaplata ma byc przyjmowana (money|item):
  43. payment-type: item
  44.  
  45. # Ilosc pieniedzy do zalozenia gildi:
  46. payment-money-amount: 1000
  47.  
  48. # 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:
  49. payment-item-1: 3 stone
  50. payment-item-2: air
  51. payment-item-3: air
  52. payment-item-4: air
  53. payment-item-5: air
  54.  
  55. # Blok ktory lezy na srodku cuboida:
  56. item-type-cuboid: dragon egg
  57.  
  58. #Czy cuboidy maja byc wlaczone:
  59. cuboids: true
  60.  
  61. #Czy ma byc wlaczone powiekszanie cuboidĂłw (true|false):
  62. powiekszanie: true
  63.  
  64. #Ile trzeba zaplacic za powiekszanie:
  65. increase-cuboid-price: 10
  66.  
  67. #Czym trzeba placic za powiekszanie:
  68. increase-cuboid-item: diamond
  69.  
  70. # Czy teleportacja na baze ma być włączona:
  71. home: true
  72.  
  73.  
  74.  
  75.  
  76. on script load:
  77. set {pvpguild.prefix} to "{@tag}"
  78. set {pvpguild.chat} to "{@chat}"
  79. set {pvpguild.payment-type} to "{@payment-type}"
  80. set {pvpguild.payment-money-amount} to "{@payment-money-amount}"
  81.  
  82.  
  83.  
  84. on load:
  85. send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
  86. send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
  87. set {_version.current} to first 7 characters of content of file "plugins/Skript/scripts/PVPGuild.sk"
  88. replace all "##" with "" in {_version.current}
  89. set {_version.check} to result of connect to "http://pastebin.com/raw.php?i=4cCXYNS5"
  90. set {_version.new} to first 7 characters of {_version.check}
  91. replace all "##" with "" in {_version.new}
  92. if {_version.new} is {_version.current}:
  93. send "&7[&4PVP&8Guild&7] &aPosiadasz najnowszą wersje skryptu!" to console
  94. send "&7[&4PVP&8Guild&7] Twoja wersja to %{_version.current}%" to console
  95. stop
  96. send "&7[&4PVP&8Guild&7] Dostepna jest nowsza wersja skryptu!" to console
  97. send "&7[&4PVP&8Guild&7] Rozpoczynanie pobierania ...." to console
  98. download "http://pastebin.com/raw.php?i=4cCXYNS5" to "plugins/Skript/scripts/PVPGuild.sk"
  99. wait 1 second
  100. send "&7[&4PVP&8Guild&7] Pobieranie zakonczone!" to console
  101. send "&7[&4PVP&8Guild&7] Twoja wersja to %{_version.new}%" to console
  102.  
  103.  
  104. command /pvpguild [<text>] [<text>] [<text>]:
  105. aliases: g, guild, gildia
  106. trigger:
  107. if arg 1 is not set:
  108. if arg 2 is not set:
  109. send "&8========&6PVPGuild&8========"
  110. send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  111. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  112. send "&e/gildia usun &a- &7Usuwa gildie!"
  113. send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  114. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  115. send "&e/gildia wyrzuc [Nick] &a- &7Usuwa gracza z gildii!"
  116. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  117. send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  118. send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  119. stop
  120. if arg 2 is "1":
  121. send "&8========&6PVPGuild&8========"
  122. send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  123. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  124. send "&e/gildia usun &a- &7Usuwa gildie!"
  125. send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  126. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  127. send "&e/gildia wyrzuc [Nick] &a- &7Usuwa gracza z gildii!"
  128. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  129. send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  130. send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  131. stop
  132. if arg 2 is "2":
  133. send "&8========&6PVPGuild&8========"
  134. send "&e/gildia opusc &a- &7Opuszcza gildie!"
  135. send "&e/gildia pvp &a- &7Wlacza/Wylacz pvp miedzy czlonkami gildii!"
  136. send "&e/gildia chat &a- &7Chat gildijny"
  137. send "&e/gildia degrad [Nick] &a- &7Degraduje gracza z oficera!"
  138. send "&e/gildia sojusz [Nazwa] &a- &7Wysyla zaproszenie do sojuszu!"
  139. send "&e/gildia asojusz [Nazwa] &a- &7Akceptuje sojusz od gildii!"
  140. stop
  141. if arg 2 is "3" or "4" or "5":
  142. send "%{pvpguild.prefix}% &cTa strona nie istnieje!"
  143. stop
  144. if arg 1 is "reload":
  145. if player has permission "pvpguild.admin":
  146. execute console command "/sk reload %script%"
  147. send "%{pvpguild.prefix}% &aPrzeladowano!"
  148. stop
  149. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  150. stop
  151. if arg 1 is "pomoc" or "help" or "?":
  152. if arg 2 is not set:
  153. send "&8========&6PVPGuild&8========"
  154. send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  155. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  156. send "&e/gildia usun &a- &7Usuwa gildie!"
  157. send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  158. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  159. send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildii!"
  160. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  161. send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  162. send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  163. stop
  164. if arg 2 is "1":
  165. send "&8========&6PVPGuild&8========"
  166. send "&e/gildia &a- &7Wszystkie komendy dla gildii!"
  167. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  168. send "&e/gildia usun &a- &7Usuwa gildie!"
  169. send "&e/gildia info [Nazwa] &a- &7Informacje o gildii!"
  170. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildii!"
  171. send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildii!"
  172. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildii!"
  173. send "&e/gildia list &a- &7Lista wszystkich gildiii!"
  174. send "&e/gildia dolacz [Nazwa] &a- &7Akceptuje zaproszenie od gildii!"
  175. stop
  176. if arg 2 is "2":
  177. send "&8========&6PVPGuild&8========"
  178. send "&e/gildia opusc &a- &7Opuszcza gildie!"
  179. send "&e/gildia pvp &a- &7Wlacza/Wylacz pvp miedzy czlonkami gildii!"
  180. send "&e/gildia chat &a- &7Chat gildijny"
  181. send "&e/gildia degrad [Nick] &a- &7Degraduje gracza z oficera!"
  182. send "&e/gildia sojusz [Nazwa] &a- &7Wysyla zaproszenie do sojuszu!"
  183. send "&e/gildia asojusz [Nazwa] &a- &7Akceptuje sojusz od gildii!"
  184. stop
  185. if arg 2 is "3" or "4" or "5":
  186. send "%{pvpguild.prefix}% &cTa strona nie istnieje!"
  187. stop
  188. if arg 1 is "setspawn":
  189. if player has permission "pvpguild.setspawn" or "pvpguild.admin":
  190. set {pvpguild.spawn} to location of player
  191. send "%{pvpguild.prefix}% &aPomyslnie utworzono spawn!"
  192. stop
  193. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  194. stop
  195. if arg 1 is "stworz" or "create" or "c":
  196. if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
  197. if {pvpguild.guild::%arg 3%} is not set:
  198. if {pvpguild.taglist::*} contains "%arg 2%":
  199. send "%{pvpguild.prefix}% &cGildia o takim tagu juz istnieje!"
  200. stop
  201. if {pvpguild.inguild::%name of player%} is not set:
  202. if arg 2 is set:
  203. if length of argument 2 is smaller than 5:
  204. if arg 3 is set:
  205. if length of arg 3 is smaller than 21:
  206. if {@cuboids} is true:
  207. if distance between player and {pvpguild.spawn} is greater than 300:
  208. if {pvpguild.cuboid-center::*} is set:
  209. loop {pvpguild.cuboid-center::*}:
  210. if distance between player and loop-value is greater than 350:
  211. if {@payment-for-guild} is true:
  212. if {pvpguild.payment-type} is "money":
  213. set {_amount.money} to {pvpguild.payment-money-amount}
  214. if PLAYER'S MONEY is greater than {_amount.money}-1:
  215. remove {_amount.money} from the player's balance
  216. set {pvpguild.guild::%arg 3%} to true
  217. set {pvpguild.%arg 3%.lider} to "%name of player%"
  218. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  219. set {pvpguild.%arg 3%.time} to now
  220. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  221. add "%arg 2%" to {pvpguild.taglist::*}
  222. add "%arg 3%" to {pvpguild.guildlist::*}
  223. set {pvpguild.cuboid.%arg 3%} to location of player
  224. edit tag of player to "&7[&6%arg 2%&7]&f "
  225. set block at {pvpguild.cuboid.%arg 3%} to {@item-type-cuboid}
  226. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  227. "%arg 3%".Region.selectLS{location of player, 50};
  228. set {_center} to "%arg 3%".Region.getCenter{};
  229. add {_center} to {pvpguild.cuboid-center::*}
  230. stop
  231. send "%{pvpguild.prefix}% &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
  232. stop
  233. if {pvpguild.payment-type} is "item":
  234. if player has {@payment-item-1}:
  235. if player has {@payment-item-2}:
  236. if player has {@payment-item-3}:
  237. if player has {@payment-item-4}:
  238. if player has {@payment-item-5}:
  239. remove {@payment-item-1} from the player
  240. remove {@payment-item-2} from the player
  241. remove {@payment-item-3} from the player
  242. remove {@payment-item-4} from the player
  243. remove {@payment-item-5} from the player
  244. set {pvpguild.guild::%arg 3%} to true
  245. set {pvpguild.%arg 3%.lider} to "%name of player%"
  246. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  247. set {pvpguild.%arg 3%.time} to now
  248. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  249. add "%arg 2%" to {pvpguild.taglist::*}
  250. add "%arg 3%" to {pvpguild.guildlist::*}
  251. set {pvpguild.cuboid.%arg 3%} to location of player
  252. edit tag of player to "&7[&6%arg 2%&7]&f "
  253. set block at location of player to {@item-type-cuboid}
  254. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  255. "%arg 3%".Region.selectLS{location of player, 50};
  256. set {_center} to "%arg 3%".Region.getCenter{};
  257. add {_center} to {pvpguild.cuboid-center::*}
  258. stop
  259. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  260. stop
  261. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  262. stop
  263. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  264. stop
  265. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  266. stop
  267. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  268. stop
  269. set {pvpguild.guild::%arg 3%} to true
  270. set {pvpguild.%arg 3%.lider} to "%name of player%"
  271. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  272. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  273. add "%arg 2%" to {pvpguild.taglist::*}
  274. set {pvpguild.cuboid.%arg 3%} to location of player
  275. edit tag of player to "&7[&6%arg 2%&7]&f "
  276. add "%arg 3%" to {pvpguild.guildlist::*}
  277. set {pvpguild.%arg 3%.time} to now
  278. set block at location of player to {@item-type-cuboid}
  279. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  280. "%arg 3%".Region.selectLS{location of player, 50};
  281. set {_center} to "%arg 3%".Region.getCenter{};
  282. add {_center} to {pvpguild.cuboid-center::*}
  283. stop
  284. send "%{pvpguild.prefix}% &cW poblizu 200 kratek znajduje sie juz gildia!"
  285. stop
  286. stop
  287. if {@payment-for-guild} is true:
  288. if {pvpguild.payment-type} is "money":
  289. set {_amount.money} to {pvpguild.payment-money-amount}
  290. if PLAYER'S MONEY is greater than {_amount.money}-1:
  291. remove {_amount.money} from the player's balance
  292. set {pvpguild.guild::%arg 3%} to true
  293. set {pvpguild.%arg 3%.lider} to "%name of player%"
  294. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  295. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  296. add "%arg 2%" to {pvpguild.taglist::*}
  297. set {pvpguild.%arg 3%.time} to now
  298. add "%arg 3%" to {pvpguild.guildlist::*}
  299. set {pvpguild.cuboid.%arg 3%} to location of player
  300. edit tag of player to "&7[&6%arg 2%&7]&f "
  301. set block at {pvpguild.cuboid.%arg 3%} to {@item-type-cuboid}
  302. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  303. "%arg 3%".Region.selectLS{location of player, 50};
  304. set {_center} to "%arg 3%".Region.getCenter{};
  305. add {_center} to {pvpguild.cuboid-center::*}
  306. stop
  307. send "%{pvpguild.prefix}% &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
  308. stop
  309. if {pvpguild.payment-type} is "item":
  310. if player has {@payment-item-1}:
  311. if player has {@payment-item-2}:
  312. if player has {@payment-item-3}:
  313. if player has {@payment-item-4}:
  314. if player has {@payment-item-5}:
  315. remove {@payment-item-1} from the player
  316. remove {@payment-item-2} from the player
  317. remove {@payment-item-3} from the player
  318. remove {@payment-item-4} from the player
  319. remove {@payment-item-5} from the player
  320. set {pvpguild.guild::%arg 3%} to true
  321. set {pvpguild.%arg 3%.lider} to "%name of player%"
  322. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  323. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  324. add "%arg 2%" to {pvpguild.taglist::*}
  325. add "%arg 3%" to {pvpguild.guildlist::*}
  326. set {pvpguild.%arg 3%.time} to now
  327. set {pvpguild.cuboid.%arg 3%} to location of player
  328. edit tag of player to "&7[&6%arg 2%&7]&f "
  329. set block at location of player to {@item-type-cuboid}
  330. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  331. "%arg 3%".Region.selectLS{location of player, 50};
  332. set {_center} to "%arg 3%".Region.getCenter{};
  333. add {_center} to {pvpguild.cuboid-center::*}
  334. stop
  335. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  336. stop
  337. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  338. stop
  339. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  340. stop
  341. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  342. stop
  343. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  344. stop
  345. set {pvpguild.guild::%arg 3%} to true
  346. set {pvpguild.%arg 3%.lider} to "%name of player%"
  347. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  348. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  349. add "%arg 2%" to {pvpguild.taglist::*}
  350. set {pvpguild.%arg 3%.time} to now
  351. set {pvpguild.cuboid.%arg 3%} to location of player
  352. edit tag of player to "&7[&6%arg 2%&7]&f "
  353. add "%arg 3%" to {pvpguild.guildlist::*}
  354. set block at location of player to {@item-type-cuboid}
  355. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  356. "%arg 3%".Region.selectLS{location of player, 50};
  357. set {_center} to "%arg 3%".Region.getCenter{};
  358. add {_center} to {pvpguild.cuboid-center::*}
  359. stop
  360. send "%{pvpguild.prefix}% &cGildie mozna zalozyc dopiero 300 kratek od spawnu!"
  361. stop
  362. if {@cuboids} is false:
  363. if {@payment-for-guild} is true:
  364. if {pvpguild.payment-type} is "money":
  365. set {_amount.money} to {pvpguild.payment-money-amount}
  366. if PLAYER'S MONEY is greater than {_amount.money}-1:
  367. remove {_amount.money} from the player's balance
  368. set {pvpguild.guild::%arg 3%} to true
  369. edit tag of player to "&7[&6%arg 2%&7]&f "
  370. set {pvpguild.%arg 3%.time} to now
  371. set {pvpguild.%arg 3%.lider} to "%name of player%"
  372. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  373. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  374. add "%arg 2%" to {pvpguild.taglist::*}
  375. add "%arg 3%" to {pvpguild.guildlist::*}
  376. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  377. stop
  378. send "%{pvpguild.prefix}% &cNie masz wystarczająco pieniędzy na zalozenie gildii!"
  379. stop
  380. if {pvpguild.payment-type} is "item":
  381. if player has {@payment-item-1}:
  382. if player has {@payment-item-2}:
  383. if player has {@payment-item-3}:
  384. if player has {@payment-item-4}:
  385. if player has {@payment-item-5}:
  386. remove {@payment-item-1} from the player
  387. remove {@payment-item-2} from the player
  388. remove {@payment-item-3} from the player
  389. remove {@payment-item-4} from the player
  390. remove {@payment-item-5} from the player
  391. set {pvpguild.guild::%arg 3%} to true
  392. edit tag of player to "&7[&6%arg 2%&7]&f "
  393. set {pvpguild.%arg 3%.lider} to "%name of player%"
  394. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  395. set {pvpguild.%arg 3%.time} to now
  396. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  397. add "%arg 2%" to {pvpguild.taglist::*}
  398. add "%arg 3%" to {pvpguild.guildlist::*}
  399. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyl gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  400. stop
  401. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  402. stop
  403. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  404. stop
  405. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  406. stop
  407. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  408. stop
  409. send "%{pvpguild.prefix}% &cNie posiadasz odpowiednich itemow!"
  410. stop
  411. stop
  412. set {pvpguild.guild::%arg 3%} to true
  413. set {pvpguild.%arg 3%.lider} to "%name of player%"
  414. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  415. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  416. add "%arg 2%" to {pvpguild.taglist::*}
  417. edit tag of player to "&6[&7%arg 2%&7]&f "
  418. set {pvpguild.%arg 3%.time} to now
  419. add "%arg 3%" to {pvpguild.guildlist::*}
  420. broadcast "%{pvpguild.prefix}% &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  421. stop
  422. stop
  423. send "%{pvpguild.prefix}% &cNazwa gildi nie moze miec wiecej niz 20 znakow!"
  424. stop
  425. send "%{pvpguild.prefix}% &cPodaj nazwe swojej gildi!"
  426. stop
  427. send "%{pvpguild.prefix}% &cTag gildi nie moze miec wiecej niz 4 znaki!"
  428. stop
  429. send "%{pvpguild.prefix}% &cPodaj tag gildi!"
  430. stop
  431. send "%{pvpguild.prefix}% &cAby zalozyc gildie najpierw musisz oposcic aktualna!"
  432. stop
  433. send "%{pvpguild.prefix}% &cTaka gildia juz istnieje!"
  434. stop
  435. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  436. stop
  437. if arg 1 is "info" or "informacje" or "i":
  438. if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
  439. if {@cuboids} is true:
  440. if arg 2 is set:
  441. if {pvpguild.guild::%arg 2%} is set:
  442. if {pvpguild.%arg 2%.members::*} is set:
  443. if {pvpguild.%arg 2%.oficers::*} is set:
  444. send "&7Nazwa gildi: &9%arg 2%"
  445. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  446. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  447. set {_size} to "%arg 2%".Region.getSize{};
  448. send "&7Wielkosc cuboida: &9%{_size}%"
  449. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  450. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  451. if {_} is 0:
  452. send "&7Sojusze: &9Brak"
  453. if {_} is greater than 0:
  454. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  455. loop {pvpguild.%arg 2%.oficers::*}:
  456. if loop-value parsed as player is online:
  457. add loop-value parsed as player to {_online.oficers::*}
  458. else:
  459. add loop-value to {_offline.oficers::*}
  460. if {_online.oficers::*} is set:
  461. if {_offline.oficers::*} is set:
  462. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  463. else:
  464. send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  465. else:
  466. send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  467. loop {pvpguild.%arg 2%.members::*}:
  468. if loop-value parsed as player is online:
  469. add loop-value to {_online.members::*}
  470. else:
  471. add loop-value to {_offline.members::*}
  472. if {_online.members::*} is set:
  473. if {_offline.members::*} is set:
  474. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  475. stop
  476. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  477. stop
  478. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  479. stop
  480. send "&7Nazwa gildi: &9%arg 2%"
  481. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  482. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  483. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  484. set {_size} to "%arg 2%".Region.getSize{};
  485. send "&7Wielkosc cuboida: &9%{_size}%"
  486. send "&7Oficerowie gildi: &9Brak"
  487. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  488. if {_} is 0:
  489. send "&7Sojusze: &9Brak"
  490. if {_} is greater than 0:
  491. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  492. loop {pvpguild.%arg 2%.members::*}:
  493. if loop-value parsed as player is online:
  494. add loop-value to {_online.members::*}
  495. else:
  496. add loop-value to {_offline.members::*}
  497. if {_online.members::*} is set:
  498. if {_offline.members::*} is set:
  499. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  500. stop
  501. send "&7Czlonkowie gildi: &a%{_online.members::*}%"
  502. stop
  503. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  504. stop
  505. send "&7Nazwa gildi: &9%arg 2%"
  506. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  507. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  508. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  509. set {_size} to "%arg 2%".Region.getSize{};
  510. send "&7Wielkosc cuboida: &9%{_size}%"
  511. send "&7Oficerowie gildi: &9Brak"
  512. send "&7Czlonkowie gildi: &9Brak"
  513. set {_} to size of {pvpguild.%arg 2%.sojusz::*}
  514. if {_} is 0:
  515. send "&7Sojusze: &9Brak"
  516. stop
  517. send "&7Sojusze: &9%{pvpguild.%arg 2%.sojusz::*}%"
  518. stop
  519. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  520. stop
  521. else:
  522. if {pvpguild.inguild::%name of player%} is set:
  523. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
  524. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
  525. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  526. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  527. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  528. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  529. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  530. send "&7Wielkosc cuboida: &9%{_size}%"
  531. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  532. if {_} is 0:
  533. send "&7Sojusze: &9Brak"
  534. if {_} is greater than 0:
  535. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  536. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  537. if loop-value parsed as player is online:
  538. add loop-value to {_online.oficers::*}
  539. else:
  540. add loop-value to {_offline.oficers::*}
  541. if {_online.oficers::*} is set:
  542. if {_offline.oficers::*} is set:
  543. send "&7Oficerowie gildi: &a%{_online.oficers::*}% &c%{_offline.oficers::*}%"
  544. else:
  545. send "&7Oficerowie gildi: &a%{_online.oficers::*}%"
  546. else:
  547. send "&7Oficerowie gildi: &c%{_offline.oficers::*}%"
  548. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  549. if loop-value parsed as player is online:
  550. add loop-value to {_online.members::*}
  551. else:
  552. add loop-value to {_offline.members::*}
  553. if {_online.members::*} is set:
  554. if {_offline.members::*} is set:
  555. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  556. stop
  557. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  558. stop
  559. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  560. stop
  561. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  562. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  563. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  564. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  565. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  566. send "&7Wielkosc cuboida: &9%{_size}%"
  567. send "&7Oficerowie gildi: &9Brak"
  568. set {_} to size of {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  569. if {_} is 0:
  570. send "&7Sojusze: &9Brak"
  571. if {_} is greater than 0:
  572. send "&7Sojusze: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}%"
  573. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  574. if loop-value parsed as player is online:
  575. add loop-value to {_online.members::*}
  576. else:
  577. add loop-value to {_offline.members::*}
  578. if {_online.members::*} is set:
  579. if {_offline.members::*} is set:
  580. send "&7Czlonkowie gildi: &a%{_online.members::*}% &c%{_offline.members::*}%"
  581. stop
  582. send "&7Czlonkowie gildi: &a%{_online.members::*}% "
  583. stop
  584. send "&7Czlonkowie gildi: &c%{_offline.members::*}%"
  585. stop
  586. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  587. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  588. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  589. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  590. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  591. send "&7Wielkosc cuboida: &9%{_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 "&7Nazwa gildi: &9%arg 2%"
  608. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  609. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  610. send "&7Lider gildi: &9%{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. else:
  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. else:
  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 "&7Nazwa gildi: &9%arg 2%"
  638. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  639. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  640. send "&7Lider gildi: &9%{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. else:
  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 "&7Nazwa gildi: &9%arg 2%"
  661. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  662. send "&7Zalozenie gildii: &9%{pvpguild.%arg 2%.time}%"
  663. send "&7Lider gildi: &9%{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 "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  679. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  680. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  681. send "&7Lider gildi: &9%{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. else:
  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. else:
  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 "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  714. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  715. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  716. send "&7Lider gildi: &9%{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. else:
  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 "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  737. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  738. send "&7Zalozenie gildii: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.time}%"
  739. send "&7Lider gildi: &9%{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" or "delete" or "u":
  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 "%{pvpguild.prefix}% &7%name of player% &aUsunal gildie o nazwie &9%{pvpguild.inguild::%name of player%}% &a i tagu &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  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 "%{pvpguild.prefix}% &cTylko lider gildi moze tego uzywac!"
  785. stop
  786. send "%{pvpguild.prefix}% &cNie posiadasz gildi!"
  787. stop
  788. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  789. stop
  790. if arg 1 is "list" or "lista" or "l":
  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 "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  823. stop
  824. if arg 1 is "invite" or "zapros" or "inv":
  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 {_player} has played before:
  830. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  831. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  832. send "&8===================================================" to {_player}
  833. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  834. send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  835. send "&8===================================================" to {_player}
  836. send "&8==================================================="
  837. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  838. send "&8==================================================="
  839. wait 1 minute
  840. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  841. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  842. stop
  843. stop
  844. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  845. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  846. send "&8===================================================" to {_player}
  847. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  848. send "&eWpisz &a/g dolacz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  849. send "&8===================================================" to {_player}
  850. send "&8==================================================="
  851. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  852. send "&8==================================================="
  853. wait 1 minute
  854. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  855. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  856. stop
  857. stop
  858. send "%{pvpguild.prefix}% &cTego gracza nigdy nie bylo na serwerze!"
  859. stop
  860. send "%{pvpguild.prefix}% &cTylko lider/oficer moze zapraszac do gildi!"
  861. stop
  862. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  863. stop
  864. send "%{pvpguild.prefix}% Musisz być w gildi!"
  865. stop
  866. send "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  867. stop
  868. if arg 1 is "dolacz":
  869. if player has permission "pvpguild.dolacz" or "pvpguild.admin" or "pvpguild.gracz":
  870. if {pvpguild.inguild::%name of player%} isn't set:
  871. if arg 2 is set:
  872. if {pvpguild.guild::%arg 2%} is true:
  873. if {invite.%arg 2%.%name of player%} is true:
  874. set {pvpguild.inguild::%name of player%} to "%arg 2%"
  875. clear {invite.%arg 2%.%name of player%}
  876. edit tag of player to "&7[&6%{pvpguild.%arg 2%.tag}%&7]&f "
  877. add "%name of player%" to {pvpguild.%arg 2%.members::*}
  878. broadcast "%{pvpguild.prefix}% &7%player% &aDolaczyl do gildi &9%arg 2%"
  879. stop
  880. send "%{pvpguild.prefix}% &cNie masz zaproszenia od tej gildi!"
  881. stop
  882. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  883. stop
  884. send "%{pvpguild.prefix}% &cPodaj nazwe gildi!"
  885. stop
  886. send "%{pvpguild.prefix}% &cNajpierw opusc gildie!"
  887. stop
  888. send "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  889. stop
  890. if arg 1 is "opusc" or "leave" or "lv":
  891. if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
  892. if {pvpguild.inguild::%name of player%} is set:
  893. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  894. send "%{pvpguild.prefix}% &cLider nie moze opuscic klanu! Uzyj: &4/g usun"
  895. stop
  896. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  897. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  898. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  899. edit tag of player to ""
  900. broadcast "%{pvpguild.prefix}% &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  901. clear {pvpguild.inguild::%name of player%}
  902. stop
  903. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  904. broadcast "%{pvpguild.prefix}% &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  905. edit tag of player to ""
  906. clear {pvpguild.inguild::%name of player%}
  907. stop
  908. send "%{pvpguild.prefix}% &cNie masz gildi!"
  909. stop
  910. send "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  911. stop
  912. if arg 1 is "wyrzuc" or "kick" or "idz":
  913. if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
  914. if {pvpguild.inguild::%name of player%} is set:
  915. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  916. if arg 2 is set:
  917. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  918. loop-value is argument 2:
  919. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
  920. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
  921. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  922. edit tag of argument 2 parsed as player to ""
  923. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  924. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  925. broadcast "%{pvpguild.prefix}% &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  926. stop
  927. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  928. edit tag of argument 2 parsed as player to ""
  929. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  930. broadcast "%{pvpguild.prefix}% &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  931. stop
  932. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  933. stop
  934. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  935. stop
  936. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  937. if arg 2 is set:
  938. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  939. loop-value is argument 2 parsed as offline player:
  940. loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
  941. edit tag of argument 2 parsed as player to ""
  942. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  943. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  944. broadcast "%{pvpguild.prefix}% &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  945. stop
  946. send "%{pvpguild.prefix}% &cNie mozesz wyrzucic oficera gildi!"
  947. stop
  948. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  949. stop
  950. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  951. stop
  952. send "%{pvpguild.prefix}% &cTylko lider/oficer gildi moĹĽe wyrzucac graczy!"
  953. stop
  954. send "%{pvpguild.prefix}% &cNie masz gildi!"
  955. stop
  956. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  957. stop
  958. if arg 1 is "chat":
  959. if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":
  960. if {pvpguild.inguild::%name of player%} is set:
  961. if arg 2 is set:
  962. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  963. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  964. set {_p} to loop-value parsed as player
  965. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  966. if arg 3 is set:
  967. set {_} to coloured arg 3
  968. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  969. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  970. stop
  971. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  972. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  973. set {_p} to loop-value parsed as player
  974. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  975. set {_} to ""
  976. if arg 3 is set:
  977. set {_} to coloured arg 3
  978. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  979. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  980. stop
  981. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  982. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  983. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  984. set {_p} to loop-value parsed as player
  985. set {_} to ""
  986. if arg 3 is set:
  987. set {_} to coloured arg 3
  988. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  989. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  990. stop
  991. send "%{pvpguild.prefix}% &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  992. stop
  993. if arg 2 is not set:
  994. if {pvpguild.guild-chat::%name of player%} is not set:
  995. set {pvpguild.guild-chat::%name of player%} to false
  996. if {pvpguild.guild-chat::%name of player%} is false:
  997. set {pvpguild.guild-chat::%name of player%} to true
  998. send "%{pvpguild.prefix}% &aWlaczono chat gildijny!"
  999. stop
  1000. if {pvpguild.guild-chat::%name of player%} is true:
  1001. set {pvpguild.guild-chat::%name of player%} to false
  1002. send "%{pvpguild.prefix}% &cChat gildijny wylaczony!"
  1003. stop
  1004.  
  1005. send "%{pvpguild.prefix}% &cMusisz byc w gildi!"
  1006. stop
  1007. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1008. stop
  1009. if arg 1 is "oficer":
  1010. if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
  1011. if {pvpguild.inguild::%name of player%} is set:
  1012. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1013. if arg 2 is set:
  1014. set {_p} to arg 2 parsed as player
  1015. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  1016. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  1017. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
  1018. add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  1019. set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
  1020. send "%{pvpguild.prefix}% &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
  1021. stop
  1022. send "%{pvpguild.prefix}% &cTen gracz jest juz oficerem!"
  1023. stop
  1024. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  1025. stop
  1026. send "%{pvpguild.prefix}% &cLider nie moze zostac oficerem!"
  1027. stop
  1028. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  1029. stop
  1030. send "%{pvpguild.prefix}% &cTylko lider moze mianowac graczy!"
  1031. stop
  1032. send "%{pvpguild.prefix}% &cNie jestes w gildi!"
  1033. stop
  1034. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1035. stop
  1036. if arg 1 is "pvp":
  1037. if player has permission "pvpguild.pvp" or "pvpguild.admin" or "pvpguild.gracz":
  1038. if {pvpguild.inguild::%name of player%} is set:
  1039. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1040. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is not set:
  1041. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  1042. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is false:
  1043. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to true
  1044. send "%{pvpguild.prefix}% &AWlaczyles pvp miedzy czlonkami gildii!"
  1045. stop
  1046. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is true:
  1047. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  1048. send "%{pvpguild.prefix}% &AWylaczyles pvp miedzy czlonkami gildii!"
  1049. stop
  1050. stop
  1051. send "%{pvpguild.prefix}% Tylko lider moze wylaczac pvp!"
  1052. stop
  1053. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1054. stop
  1055. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1056. stop
  1057. if arg 1 is "degrad" or "degraduj":
  1058. if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
  1059. if {pvpguild.inguild::%name of player%} is set:
  1060. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1061. if arg 2 is set:
  1062. set {_p} to arg 2
  1063. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  1064. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  1065. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
  1066. remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  1067. delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
  1068. send "%{pvpguild.prefix}% &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
  1069. stop
  1070. send "%{pvpguild.prefix}% &cTen gracz nie jest oficerem!"
  1071. stop
  1072. send "%{pvpguild.prefix}% &cTen gracz nie jest w naszej gildi!"
  1073. stop
  1074. send "%{pvpguild.prefix}% &cLider nie moze byc zdegradowany!"
  1075. stop
  1076. send "%{pvpguild.prefix}% &cPodaj nick gracza!"
  1077. stop
  1078. send "%{pvpguild.prefix}% &cTylko lider moze mianowac graczy!"
  1079. stop
  1080. send "%{pvpguild.prefix}% &cNie jestes w gildi!"
  1081. stop
  1082. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1083. stop
  1084. if arg 1 is "sethome" or "ustawdom":
  1085. if player has permission "pvpguild.admin" or "pvpguild.gracz" or "pvpguild.sethome":
  1086. if {@home} is true:
  1087. if {pvpguild.inguild::%name of player%} is set:
  1088. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1089. set {_region} to region.at{location of player};
  1090. if {_region} is {pvpguild.inguild::%name of player%}:
  1091. set {pvpguild.%{pvpguild.inguild::%name of player%}%.home} to location of player
  1092. send "%{pvpguild.prefix}% &aUstawiono baze!"
  1093. stop
  1094. send "%{pvpguild.prefix}% &cBaze możesz ustawić tylko na terenie swojej gildii!"
  1095. stop
  1096. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1097. stop
  1098. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1099. stop
  1100. send "%{pvpguild.prefix}% &cUstawianie bazy jest wyłączone!"
  1101. stop
  1102. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1103. stop
  1104. if arg 1 is "home" or "baza":
  1105. if player has permission "pvpguild.admin" or "pvpguild.gracz" or "pvpguild.sethome":
  1106. if {@home} is true:
  1107. if {pvpguild.inguild::%name of player%} is set:
  1108. if {pvpguild.%{pvpguild.inguild::%name of player%}%.home} is set:
  1109. set {_loc} to location of player
  1110. send "%{pvpguild.prefix}% &aTeleportacja nastapi za 5 sekund , prosze sie nie ruszac!"
  1111. if {_loc} isn't location of player:
  1112. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1113. stop
  1114. wait 1 second
  1115. if {_loc} isn't location of player:
  1116. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1117. stop
  1118. wait 1 second
  1119. if {_loc} isn't location of player:
  1120. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1121. stop
  1122. wait 1 second
  1123. if {_loc} isn't location of player:
  1124. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1125. stop
  1126. wait 1 second
  1127. if {_loc} isn't location of player:
  1128. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1129. stop
  1130. wait 1 second
  1131. if {_loc} is location of player:
  1132. teleport player to {pvpguild.%{pvpguild.inguild::%name of player%}%.home}
  1133. send "%{pvpguild.prefix}% &aTeleportacja ..."
  1134. stop
  1135. send "%{pvpguild.prefix}% &cTeleportacja anulowana , wykryto ruch!"
  1136. stop
  1137. send "%{pvpguild.prefix}% &cBaza nie została ustawiona!"
  1138. stop
  1139. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1140. stop
  1141. send "%{pvpguild.prefix}% &cUstawianie bazy jest wyłączone!"
  1142. stop
  1143. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1144. stop
  1145. if arg 1 is "sojusz":
  1146. if player has permission "pvpguild.sojusz" or "pvpguild.admin" or "pvpguild.gracz":
  1147. if {pvpguild.inguild::%name of player%} is set:
  1148. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1149. if arg 2 is set:
  1150. if arg 2 is not {pvpguild.inguild::%name of player%}:
  1151. if {pvpguild.guild::%arg 2%} is set:
  1152. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is not set:
  1153. if {pvpguild.%arg 2%.lider} parsed as player is online:
  1154. set {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} to true
  1155. set {_player} to {pvpguild.%arg 2%.lider} parsed as player
  1156. send "&8===================================================" to {_player}
  1157. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie do sojuszu!" to {_player}
  1158. send "&eWpisz &a/g asojusz %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  1159. send "&8===================================================" to {_player}
  1160. send "&8==================================================="
  1161. send "&eZaproszenie zostalo wyslane do gildi &a%arg 2%"
  1162. send "&8==================================================="
  1163. wait 1 minute
  1164. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  1165. clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1166. stop
  1167. send "%{pvpguild.prefix}% &cCzas oczekiwania na akceptacje minal!"
  1168. stop
  1169. stop
  1170. send "%{pvpguild.prefix}% &cLider tej gildii nie jest online!"
  1171. stop
  1172. send "%{pvpguild.prefix}% &cTo jest juz twoj sojusznik !"
  1173. stop
  1174. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1175. stop
  1176. send "%{pvpguild.prefix}% &cNie możesz zawrzeć sojuszu z własną gildią!"
  1177. stop
  1178. send "%{pvpguild.prefix}% &cPodaj nazwe gildii!"
  1179. stop
  1180. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1181. stop
  1182. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1183. stop
  1184. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1185. stop
  1186. if arg 1 is "asojusz":
  1187. if player has permission "pvpguild.asojusz" or "pvpguild.admin" or "pvpguild.gracz":
  1188. if {pvpguild.inguild::%name of player%} is set:
  1189. if arg 2 is set:
  1190. if {pvpguild.guild::%arg 2%} is set:
  1191. if {pvpguild.invite.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  1192. set {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} to true
  1193. clear {pvpguild.invite.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1194. add "%arg 2%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1195. add "%{pvpguild.inguild::%name of player%}%" to {pvpguild.%arg 2%.sojusz::*}
  1196. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zawarla sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1197. stop
  1198. send "%{pvpguild.prefix}% &cNie masz zaproszenia od tej gildi!"
  1199. stop
  1200. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1201. stop
  1202. send "%{pvpguild.prefix}% &cPodaj nazwe gildi!"
  1203. stop
  1204. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1205. stop
  1206. send "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  1207. stop
  1208. if arg 1 is "powieksz":
  1209. if player has permission "pvpguild.powieksz" or "pvpguild.admin" or "pvpguild.gracz":
  1210. if {pvpguild.inguild::%name of player%} is set:
  1211. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1212. if {@powiekszanie} is true:
  1213. set {_size} to "%{pvpguild.inguild::%name of player%}%".Region.getSize{};
  1214. if {_size} is not 150:
  1215. set {_price} to ({_size}/10)-5+{@increase-cuboid-price}
  1216. if player contains {_price} of {@increase-cuboid-item}:
  1217. "%{pvpguild.inguild::%name of player%}%".Region.setSize{{_size}+10};
  1218. remove {_price} of {@increase-cuboid-item} from player
  1219. send "%{pvpguild.prefix}% &aCuboid gildii zostal powiększony o &410 &akratek!"
  1220. stop
  1221. send "%{pvpguild.prefix}% &cNie masz wystarczajacych itemkĂłw!"
  1222. stop
  1223. send "%{pvpguild.prefix}% &cTwoja gildia osiagnela juz maksymalny rozmiar cuboidu!"
  1224. stop
  1225. send "%{pvpguild.prefix}% &cPowiekszanie gildii jest wylaczone!"
  1226. stop
  1227. send "%{pvpguild.prefix}% &cNie jestes liderem gildii"
  1228. stop
  1229. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1230. stop
  1231. send "%{pvpguild.prefix}% &cNie masz uprawnien do tej komendy!"
  1232. stop
  1233. if arg 1 is "neutral":
  1234. if player has permission "pvpguild.neutral" or "pvpguild.admin" or "pvpguild.gracz":
  1235. if {pvpguild.inguild::%name of player%} is set:
  1236. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1237. if arg 2 is set:
  1238. if {pvpguild.guild::%arg 2%} is set:
  1239. if {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%} is true:
  1240. delete {pvpguild.soj.%arg 2%.%{pvpguild.inguild::%name of player%}%}
  1241. remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1242. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  1243. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1244. stop
  1245. if {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%} is true:
  1246. delete {pvpguild.soj.%{pvpguild.inguild::%name of player%}%.%arg 2%}
  1247. remove "%arg 2%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.sojusz::*}
  1248. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.%arg 2%.sojusz::*}
  1249. broadcast "%{pvpguild.prefix}% &aGildia &7%arg 2% &a zerwala sojusz z gildia &7%{pvpguild.inguild::%name of player%}%"
  1250. stop
  1251. send "%{pvpguild.prefix}% &cTo nie jest twoj sojusznik!"
  1252. stop
  1253. send "%{pvpguild.prefix}% &cTaka gildia nie istnieje!"
  1254. stop
  1255. send "%{pvpguild.prefix}% &cPodaj nazwe gildii!"
  1256. stop
  1257. send "%{pvpguild.prefix}% &cNie jestes liderem gildii!"
  1258. stop
  1259. send "%{pvpguild.prefix}% &cNie posiadasz gildii!"
  1260. stop
  1261. send "%{pvpguild.prefix}% &cNie masz uprwanien do tej komendy!"
  1262. stop
  1263. send "%{pvpguild.prefix}% &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
  1264. stop
  1265.  
  1266.  
  1267.  
  1268. on damage of player:
  1269. if {pvpguild.inguild::%name of attacker%} is set:
  1270. if {pvpguild.inguild::%name of victim%} is set:
  1271. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
  1272. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.pvp} is false:
  1273. cancel event
  1274. stop
  1275. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
  1276. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.pvp} is false:
  1277. cancel event
  1278. stop
  1279. else:
  1280. set {_attack} to {pvpguild.inguild::%name of attacker%}
  1281. set {_defend} to {pvpguild.inguild::%name of victim%}
  1282. if {pvpguild.soj.%{_defend}%.%{_attack}%} is true:
  1283. cancel event
  1284. stop
  1285. if {pvpguild.soj.%{_attack}%.%{_defend}%} is true:
  1286. cancel event
  1287. stop
  1288.  
  1289. on break:
  1290. set {_region} to Region.at{event-location};
  1291. if {_region} is empty:
  1292. stop
  1293. if {_region} is set:
  1294. if {_region} is {pvpguild.inguild::%name of player%}:
  1295. stop
  1296. cancel event
  1297. send "%{pvpguild.prefix}% &cTo jest teren innej gildi!"
  1298. stop
  1299. on place:
  1300. set {_region} to Region.at{event-location};
  1301. if {_region} is empty:
  1302. stop
  1303. if {_region} is set:
  1304. if {_region} is {pvpguild.inguild::%name of player%}:
  1305. stop
  1306. cancel event
  1307. send "%{pvpguild.prefix}% &cTo jest teren innej gildi!"
  1308. stop
  1309. on chat:
  1310. if {pvpguild.inguild::%name of player%} is set:
  1311. if {pvpguild.guild-chat::%name of player%} is not set:
  1312. set {pvpguild.guild-chat::%name of player%} to false
  1313. if {pvpguild.guild-chat::%name of player%} is false:
  1314. cancel event
  1315. set {_chat} to "%{pvpguild.chat}%"
  1316. replace all "{TAG}" with "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" in {_chat}
  1317. replace all "{NICK}" with "%display name of player%" in {_chat}
  1318. replace all "{MSG}" with "%message%" in {_chat}
  1319. broadcast "%{_chat}%"
  1320. stop
  1321. if {pvpguild.guild-chat::%name of player%} is true:
  1322. cancel event
  1323. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  1324. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1325. set {_p} to loop-value parsed as player
  1326. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  1327. if arg 3 is set:
  1328. set {_} to coloured arg 3
  1329. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1330. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  1331. stop
  1332. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  1333. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1334. set {_p} to loop-value parsed as player
  1335. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  1336. set {_} to ""
  1337. if arg 3 is set:
  1338. set {_} to coloured arg 3
  1339. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1340. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  1341. stop
  1342. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  1343. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  1344. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  1345. set {_p} to loop-value parsed as player
  1346. set {_} to ""
  1347. if arg 3 is set:
  1348. set {_} to coloured arg 3
  1349. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  1350. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  1351. stop
  1352. send "%{pvpguild.prefix}% &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  1353. stop
  1354.  
  1355.  
  1356. on anymove:
  1357. set {_region} to region.at{location of player};
  1358. if {_region} is set:
  1359. if {pvpguild.%name of player%.back} is not set:
  1360. set {pvpguild.%name of player%.back} to {_region}
  1361. remove bossbar from player
  1362. if {pvpguild.%{_region}%.members::*} contain player:
  1363. stop
  1364. if {pvpguild.%{_region}%.lider} is player:
  1365. stop
  1366. loop {pvpguild.%{_region}%.members::*}:
  1367. send "%{pvpguild.prefix}% &c** &7Intruz na terenie twojej gildii! &c **" to loop-value
  1368. send "%{pvpguild.prefix}% &c** &7Intruz na terenie twojej gildii! &c **" to {pvpguild.%{pvpguild.%name of player%.back}%.lider} parsed as player
  1369. display "&aWchodzisz na teren gildii &7%{_region}%" on bossbar with 100 percent by 5 seconds for player
  1370. if {_region} is not set:
  1371. if {pvpguild.%name of player%.back} is set:
  1372. remove bossbar from player
  1373. if {pvpguild.%{pvpguild.%name of player%.back}%.members::*} contain player:
  1374. stop
  1375. if {pvpguild.%{pvpguild.%name of player%.back}%.lider} is player:
  1376. stop
  1377. loop {pvpguild.%{pvpguild.%name of player%.back}%.members::*}:
  1378. send "%{pvpguild.prefix}% &c** &7Intruz opuscil teren twojej gildii! &c **" to loop-value
  1379. send "%{pvpguild.prefix}% &c** &7Intruz opuscil teren twojej gildii! &c **" to {pvpguild.%{pvpguild.%name of player%.back}%.lider} parsed as player
  1380. display "&aOpuszczasz teren gildii &7%{pvpguild.%name of player%.back}%" on bossbar with 100 percent by 5 seconds for player
  1381. delete {pvpguild.%name of player%.back}
  1382.  
  1383.  
  1384. on join:
  1385. if {pvpguild.inguild::%name of player%} is not set:
  1386. edit player's tag to ""
  1387. if player is "PatisonPlayGames":
  1388. set join message to "&2&lPatek &e&lautor gildii dolaczyl do gry!"
  1389. stop
Advertisement
Add Comment
Please, Sign In to add comment