AdamGrzegorz

skGuilds BIG version 1.2

Dec 21st, 2014
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.72 KB | None | 0 0
  1. # =================================================
  2. #
  3. # skGuilds 1.2_FULL
  4. #
  5. # =================================================
  6. # >> OPCJE <<
  7. # =================================================
  8. options:
  9. tag: &8>&7
  10. guild.reqitems: 5 diamond, 1 emerald and 5 stone
  11. guild.vip.reqitems: 2 diamond and 2 stone
  12. guild.item: dragon egg
  13. guild.aliases: g, guild
  14. guild.guildradius: 150
  15. guild.spawnradius: 200
  16. guild.dolaczitem: 5 diamond
  17. guild.chat: &8[&e{RANK}&8] {TAG} &f{NICK}&8: &7{MSG}
  18. guild.tagformat: &8[&2%{_tag}%&8]&f
  19. guild.lider.itemy: 32 diamond and 32 gold ingot
  20. teleport.time: 10
  21. teleport.type: seconds
  22. powieksz.item.1: 10 diamond
  23. powieksz.item.2: 20 diamond
  24. powieksz.item.3: 30 diamond
  25. powieksz.item.4: 40 diamond
  26. powieksz.item.5: 50 diamond
  27. chat.format.lider: &2[&a{TAG}&2]&a&l [**] &2{NICK}: &a{MSG}
  28. chat.format.normal: &6[&e{TAG}&6]&e&l [*] &2{NICK}: &a{MSG}
  29. sojusz.enabled: true
  30. potion.shop.waterbreath: 10 emeralds
  31. potion.shop.fireresistance: 35 emeralds
  32. potion.shop.invisible: 150 emeralds
  33. potion.shop.strength: 100 emeralds
  34. potion.shop.speed: 50 emeralds
  35. potion.shop.regeneration: 35 emeralds
  36. potion.shop.nightvision: 15 emeralds
  37. tab: true
  38. tab.info1naglowek: &6Sklepik
  39. tab.info1: &ewww.serv.pl/is
  40. tab.info2naglowek: &6Forum
  41. tab.info2: &ewww.serv.pl/fr
  42.  
  43.  
  44.  
  45. # =================================================
  46. # >> Frequency Answered Questions (FAQ) <<
  47. # =================================================
  48.  
  49. # P: EEE RZAL GUFNO PLAGIAT IDE ZGLAŻADŹ TO NA TEMATT
  50. # O: Dobranoc...
  51.  
  52. # P: Dlaczego kod jest podobny do innych skryptow na gildie?
  53. # O: Spodobala mi sie pewna metoda pisania, (chodzi tu o te dluzsze, ale wygodniejsze pisanie).
  54. # No i jeżeli niektórych rzeczy nie wiedzialem to "podpatrzylem" od innych skryptów. Ale to jeszcze nie plagiat ;>
  55.  
  56. # P: Bedziesz aktualizowal kod?
  57. # O: Oczywiscie.
  58.  
  59. # P: ZAJEBISTY SKRYPT! :DD:D:D:D:D
  60. # O: Dzieki.
  61.  
  62. # P: Dodasz ranking (top10) na tab lub w komendzie?
  63. # O: Zobaczymy zobaczymy ^^
  64.  
  65. # P: Moge uzyc go na swoim serwerze?
  66. # O: Oczywiscie ze tak ;>
  67.  
  68. # P: Podpierdoliles moja funkcje...
  69. # O: Podaj skype, wyjasnimy sobie, jezeli okaze sie ze to naprawde "TWOJA" funkcja, to ja wywale i zastapie jakas inna... co za problem? :U
  70.  
  71.  
  72. # =================================================
  73. # >> Changelog <<
  74. # =================================================
  75.  
  76. # 0.0.1_PRE_ALPHA
  77. # - Pierwsze komendy (zarysy/szkielet)
  78. # - Pierwsze funkcje (zarysy/szkielet)
  79.  
  80.  
  81.  
  82. # 0.0.5_PRE_ALPHA
  83. # - Wiecej komend
  84. # - Ulepszone funkcje
  85. # - Usuniete bugi z wersji pierwszej
  86. # - Inne
  87.  
  88.  
  89.  
  90. # 0.0.8_PRE_ALPHA
  91. # - Ulepszone komendy
  92. # - Usuniecie bledow z funkcjami
  93. # - Wiele bugow usunietych.
  94. # - Inne
  95.  
  96.  
  97.  
  98. # 0.1.5_ALPHA
  99. # - Zarys tablisty
  100. # - Dolaczanie / opuszczanie gildii
  101. # - Informacje na temat gildii
  102. # - Zarys rankingu.
  103. # - Inne
  104.  
  105.  
  106.  
  107. # 0.5.0_BETA
  108. # - Tablista
  109. # - Poczatki Rankingu
  110. # - Usuniecie wielu bledow
  111. # - Stawianie/niszczenie blokow (blokada)
  112. # - Inne
  113.  
  114.  
  115.  
  116. # 0.8.0_BETA
  117. # - Ulepszone wszystkie funkcje
  118. # - Komenda administracyjna
  119. # - Komenda pomocy
  120. # - Wywalenie bugujacej sie funkcji wybuchu TNT na terenie gildii
  121. # - Poprawa wielu bledow
  122. # - Pierwsze pelnoprawne testy skryptu.
  123. # - Wchodzenie i wychodzenie z gildii (wiadomosci)
  124. # - Inne
  125.  
  126.  
  127.  
  128. # 1.0.0_FULL
  129. # - Wszystkie podstawowe i duzo nie podstawowych komend
  130. # - Oficjalne udostepnienie dla uzytkownikow.
  131. # - Dodanie funkcji "on death" (zabijanie graczy/zabijanie siebie)
  132. # - Ranking gildyjny (pierwsza wersja, buguje sie)
  133. # - Ukonczenie rankingu graczy
  134. # - Komenda /g ranking
  135. # - Intruz w gildii
  136. # - Ladowanie cuboidow i chatu (brak bugów)
  137. # - Inne
  138.  
  139.  
  140.  
  141. # 1.0.2_FULL
  142. # - Poprawa bledow
  143. # - Inne
  144.  
  145. # 1.0.3_FULL
  146. # - /g przeladuj i /g setspawn (g setspawn nie dziala poprawnie póki co)
  147. # - Wyeliminowany blad z mozliwoscia wpisania pierdyliard razy /g baza ;p (tera blokuje na czas teleportu)
  148. # - Auto update
  149. # - Poprawa bledow z /g zapros
  150. # - Poprawa bledow z /g dolacz
  151. # - Poprawa bledow z /g wyrzuc
  152. # - Poprawa tagów od /g opusc
  153. # - Poprawa odleglosci od spawnu
  154. # - Szkielet intruzow
  155. # - Inne
  156.  
  157. # 1.0.4_FULL
  158. # - Sojusze
  159. # - Poprawa bledow
  160. # - Blad z jajkiem smoka poprawiony
  161. # - Komenda /g helpme / pomoc
  162. # - Wykryto blad z tagami nad nickiem :(
  163. # - inne
  164.  
  165.  
  166. # 1.1_FULL
  167. # - Poprawki
  168. # - /g efekt
  169. # - Od teraz gildie administracji sa w komendzie /ga
  170. # - /ga zbanuj
  171. # - Przywileje VIPa! (wystarczy dac perma skguilds.vip)
  172. # - Komenda /g info w GUI
  173. # - Komenda /g list w GUI
  174. # - Ulepszone /g helpme
  175.  
  176. # 1.1.6_FULL
  177. # - Nowa tablista
  178. # - Top10 graczy
  179. # - Top10 gildii (zbugowane)
  180. # - inne
  181.  
  182. # 1.1.8_FULL
  183. # - Podbijanie gildii
  184. # - Wojny (pierwsza, bugujaca sie wersja)
  185. # - Poprawki
  186. # - Nowe przedmioty (Excalibur, nowe Luki i miecze)
  187.  
  188. # 1.2_FULL
  189. # - Usunięto nowe przedmioty
  190. # - Dodano oddawanie lidera za itemy
  191. # - Naprawiono błędy z cuboidami
  192. # - Ulepszono komendę /g pomoc
  193. # - Gdy PVP w gildii jest wylaczone, gracze moga sie bic ale nie zadaja sobie obrazen :)
  194.  
  195. # =================================================
  196. # >> KOD <<
  197. # =================================================
  198.  
  199. # Lepiej tego nie tykac jak sie nie znasz :D
  200.  
  201. # ====================== KOMENDY ===========================
  202.  
  203.  
  204. command /skGuilds:gildia [<text>] [<text>] [<text>] [<text>]:
  205. aliases: {@guild.aliases}
  206. trigger:
  207. if arg 1 is "zaloz" or "create" or "z" or "c":
  208. if arg 2 is not set:
  209. send "{@tag} &cWpisz tag gildii."
  210. stop
  211. if arg 3 is not set:
  212. send "{@tag} &cWpisz nazwe gildii."
  213. stop
  214. if {skGuilds::inGuild::%player%} is set:
  215. send "{@tag} &cJestes juz w gildii!"
  216. stop
  217. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
  218. send "{@tag} &cJestes liderem innej gildii, usun ja aby stworzyc wlasna!"
  219. stop
  220. if length of arg 2 is less than 3:
  221. send "{@tag} &cTag musi miec minimum 3 liter!"
  222. stop
  223. if length of arg 2 is greater than 5:
  224. send "{@tag} &cTag musi miec maximum 5 liter!"
  225. stop
  226. if length of arg 3 is greater than 25:
  227. send "{@tag} &cNazwa nie moze byc dluzsza niz 25 liter!"
  228. stop
  229. if length of arg 3 is less than 10:
  230. send "{@tag} &cNazwa nie moze byc krotsza niz 10 liter!"
  231. stop
  232. if {skGuilds::GildiaTag::%arg 2%} is set:
  233. send "{@tag} &cGildia o takim tagu juz istnieje!"
  234. stop
  235. if {skGuilds::GildiaNazwa::%arg 3%} is set:
  236. send "{@tag} &cGildia o takiej nazwie juz istnieje!"
  237. if distance between player and {skGuilds::Spawn} is more than 150:
  238. if player has permission "skguilds.vip":
  239. if player doesn't have {@guild.vip.reqitems}:
  240. send "{@tag} &cNie masz wymaganych itemow na gildie. &6(VIP)"
  241. send "{@tag} &cPotrzebujesz: &6{@guild.vip.reqitems}"
  242. else:
  243. display hologram "&6Gildia &e%arg 3% [%arg 2%]" at location of player for 100 seconds
  244. remove {@guild.vip.reqitems} from the player
  245. set {skGuilds::inGuild::%player%} to arg 2
  246. set {skGuilds::GildiaTag::%arg 2%} to true
  247. set {skGuilds::GildiaNazwa::%arg 3%} to true
  248. set {skGuilds::NazwaGildii::%arg 2%} to arg 3
  249. set {skGuilds::TagGildii::%arg 2%} to arg 2
  250. set {skGuilds::Zycia::%arg 2%} to 3
  251. add arg 3 to {skGuilds::Gildie::*}
  252. add arg 2 to {skGuilds::Tagi::*}
  253. set {skGuilds::PVP::%arg 2%} to false
  254. set {skGuilds::%arg 2%::Powieksz::LVL::1} to true
  255. set {skGuilds::%arg 2%::Powieksz::LVL::2} to true
  256. set {skGuilds::%arg 2%::Powieksz::LVL::3} to false
  257. add player to {skGuilds::Czlonkowie::%arg 2%::*}
  258. set {skGuilds::%arg 2%::Powieksz::LVL::4} to false
  259. set {skGuilds::%arg 2%::Powieksz::LVL::5} to false
  260. set {skGuilds::Opis::%arg 2%} to "&eNowa gildia!"
  261. set {skGuilds::Lider::%arg 2%} to "%player%"
  262. set {skGuilds::Zabojstwa::%arg 2%} to 0
  263. set {skGuilds::GuildPoints::%arg 2%} to 1000
  264. set {_Center} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
  265. set {skGuilds::Baza::%arg 2%} to {_Center}
  266. set {skGuilds::Polozenie::%arg 2%} to {_Center}
  267. set block at {_Center} to {@guild.item}
  268. set {_Gildia} to arg 2
  269. add {_Gildia} to {skGuilds::Cuboids::*}
  270. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 70
  271. set {skGuilds::Cuboid::Center::%{_Gildia}%} to {_Center}
  272. "%{_Gildia}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%}, {skGuilds::Cuboid::Large::%{_Gildia}%}};
  273. set {skGuilds::DataZalozenia::%arg 2%} to now
  274. edit tag of player to "&e[&6%arg 2%&e] &e"
  275. broadcast "{@tag} Gildia &e%arg 3% &8[&e%arg 2%&8] &7zostala zalozona przez &6[VIP] &e%player%"
  276. send "{@tag} &6Z racji tego ze jestes VIPem, otrzymujesz na start cuboid o wielkosci 70x70 kratek! Oczywiscie w dalszym stopniu mozesz go powiekszac!"
  277. stop
  278. else:
  279. if player doesn't have {@guild.reqitems}:
  280. send "{@tag} &cNie masz wymaganych itemow na gildie."
  281. send "{@tag} &cPotrzebujesz: &7{@guild.reqitems}"
  282. else:
  283. remove {@guild.reqitems} from the player
  284. set {skGuilds::inGuild::%player%} to arg 2
  285. set {skGuilds::GildiaTag::%arg 2%} to true
  286. set {skGuilds::GildiaNazwa::%arg 3%} to true
  287. set {skGuilds::NazwaGildii::%arg 2%} to arg 3
  288. set {skGuilds::TagGildii::%arg 2%} to arg 2
  289. set {skGuilds::Zycia::%arg 2%} to 3
  290. add arg 3 to {skGuilds::Gildie::*}
  291. add arg 2 to {skGuilds::Tagi::*}
  292. set {skGuilds::PVP::%arg 2%} to false
  293. set {skGuilds::%arg 2%::Powieksz::LVL::1} to false
  294. set {skGuilds::%arg 2%::Powieksz::LVL::2} to false
  295. set {skGuilds::%arg 2%::Powieksz::LVL::3} to false
  296. add player to {skGuilds::Czlonkowie::%arg 2%::*}
  297. set {skGuilds::%arg 2%::Powieksz::LVL::4} to false
  298. set {skGuilds::%arg 2%::Powieksz::LVL::5} to false
  299. set {skGuilds::Opis::%arg 2%} to "&eNowa gildia!"
  300. set {skGuilds::Lider::%arg 2%} to "%player%"
  301. set {skGuilds::Zabojstwa::%arg 2%} to 0
  302. set {skGuilds::GuildPoints::%arg 2%} to 1000
  303. set {_Center} to block at location (x-coordinate of player, y-coordinate of player, z-coordinate of player) in "world"
  304. set {skGuilds::Baza::%arg 2%} to {_Center}
  305. set {skGuilds::Polozenie::%arg 2%} to {_Center}
  306. set block at {_Center} to {@guild.item}
  307. set {_Gildia} to arg 2
  308. add {_Gildia} to {skGuilds::Cuboids::*}
  309. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 50
  310. set {skGuilds::Cuboid::Center::%{_Gildia}%} to {_Center}
  311. "%{_Gildia}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%}, {skGuilds::Cuboid::Large::%{_Gildia}%}};
  312. set {skGuilds::DataZalozenia::%arg 2%} to now
  313. edit tag of player to "&e[&6%arg 2%&e] &e"
  314. broadcast "{@tag} Gildia &e%arg 3% &8[&e%arg 2%&8] &7zostala zalozona przez &e%player%"
  315. stop
  316. else:
  317. send "{@tag} &cJestes za blisko spawnu!"
  318. if arg 1 is "info" or "informacje" or "i":
  319. if arg 2 is not set:
  320. if {skGuilds::inGuild::%player%} is set:
  321. run player command "/g info %{skGuilds::inGuild::%player%}%" as op
  322. stop
  323. else:
  324. send "{@tag} &cWpisz /g info <TAG>!"
  325. stop
  326. else if {skGuilds::GildiaTag::%arg 2%} is not set:
  327. if arg 2 is set:
  328. send "{@tag} &cGildia o tagu %arg 2% nie istnieje!"
  329. else:
  330. if arg 2 is not set:
  331. set {_g} to {skGuilds::inGuild::%player%}
  332. open chest with 1 rows named "&cInformacje o gildii &4%{_g}%" to player
  333. if arg 2 is set:
  334. open chest with 1 rows named "&cInformacje o gildii &4%arg 2%" to player
  335. format slot 8 of player with 1 of glowstone dust named "&6Zycia" with lore "&e%{skGuilds::Zycia::%arg 2%}%" to be unstealable
  336. format slot 0 of player with 1 of glowstone dust named "&6Opis gildii" with lore "&e%{skGuilds::Opis::%arg 2%}%" to be unstealable
  337. format slot 1 of player with 1 of glowstone dust named "&6Data zalozenia" with lore "&e%{skGuilds::DataZalozenia::%arg 2%}%" to be unstealable
  338. format slot 2 of player with 1 of glowstone dust named "&6Ranking" with lore "&e%{skGuilds::GuildPoints::%arg 2%}%" to be unstealable
  339. format slot 3 of player with 1 of glowstone dust named "&6Wielkosc terenu" with lore "&e%{skGuilds::Cuboid::Large::%arg 2%}%" to be unstealable
  340. if {skGuilds::Sojusz::%arg 2%::*} is set:
  341. format slot 4 of player with 1 of glowstone dust named "&6Sojusze" with lore "&e%{skGuilds::Sojusz::%arg 2%::*}%" to be unstealable
  342. else:
  343. format slot 4 of player with 1 of gunpowder named "&4Sojusze" with lore "&cBrak!" to be unstealable
  344. if {skGuilds::PVP::%arg 2%} is false:
  345. format slot 5 of player with 1 of gunpowder named "&4PVP" with lore "&cWylaczone!" to be unstealable
  346. else:
  347. format slot 5 of player with 1 of glowstone dust named "&6PVP" with lore "&aWlaczone!" to be unstealable
  348. if {skGuilds::Lider::%arg 2%} parsed as player is online:
  349. format slot 6 of player with 1 of glowstone dust named "&6Lider" with lore "&a%{skGuilds::Lider::%arg 2%}%" to be unstealable
  350. else:
  351. format slot 6 of player with 1 of gunpowder named "&4PVP" with lore "&c%{skGuilds::Lider::%arg 2%}%" to be unstealable
  352. set {_} to size of {skGuilds::Czlonkowie::%arg 2%::*}
  353. if {_} is 0:
  354. format slot 7 of player with 1 of gunpowder named "&4Czlonkowie" with lore "&cBrak!" to be unstealable
  355. else:
  356. format slot 7 of player with 1 of glowstone dust named "&6Czlonkowie" with lore "&e%{skGuilds::Czlonkowie::%arg 2%::*}%" to be unstealable
  357. stop
  358. stop
  359. if arg 1 is "lista" or "l" or "list":
  360. if arg 2 is set:
  361. send "{@tag} &cZa duzo argumentow!"
  362. stop
  363. if arg 3 is set:
  364. send "{@tag} &cZa duzo argumentow!"
  365. stop
  366. if {skGuilds::Tagi::*} is not set:
  367. send "{@tag} &cNa tym serwerze nie ma zadnych gildii!"
  368. stop
  369. set {_List::*} to "%{skGuilds::Tagi::*}%"
  370. set {_num} to 0
  371. open chest with 6 rows named "&cLista gildii:" to player
  372. loop {_List::*}:
  373. format slot {_num} of player with 1 of lapis block named "&e%loop-value%" with lore "&6%{skGuilds::NazwaGildii::%loop-value%}%" to run "xxtajne %loop-value%"
  374. add 1 to {_num}
  375. if size of {_List::*} is 0:
  376. send "{@tag} &cNie ma zadnych aktywnych gildii!"
  377. stop
  378. while inventory name of current inventory of player is "&cLista gildii:":
  379. if size of {_List::*} is not 0:
  380. loop 53 times:
  381. set {_} to loop-number
  382. unformat slot {_}-1 of player
  383. set {_num} to 0
  384. loop {_List::*}:
  385. format slot {_num} of player with 1 of lapis block named "&e%loop-value%" with lore "&6%{skGuilds::NazwaGildii::%loop-value%}%" to run "xxtajne %loop-value%"
  386. add 1 to {_num}
  387. wait 1 second
  388. if arg 1 is "lider" or "wlasciciel":
  389. if arg 2 is not set:
  390. send "{@tag} &cPoprawne uzycie: /g lider <nick>"
  391. stop
  392. if arg 3 is set:
  393. send "{@tag} &cZa duzo argumentow!"
  394. stop
  395. if {skGuilds::inGuild::%player%} is not set:
  396. send "{@tag} &cNie jestes w zadnej gildii!"
  397. stop
  398. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  399. send "{@tag} &cNie jestes liderem gildii!"
  400. stop
  401. if player not has {guild.lider.itemy}:
  402. send "{@tag} &cNie masz wymaganych przedmiotow na oddanie lidera!"
  403. send "{@tag} &cPotrzebujesz: &7{guild.lider.itemy}"
  404. stop
  405. set {_g} to {skGuilds::inGuild::%player%}
  406. loop {skGuilds::Czlonkowie::%{_g}%::*}:
  407. if arg 2 is loop-value:
  408. set {skGuilds::Lider::%{_g}%} to arg 2 parsed as player
  409. remove {guild.lider.itemy} from the player
  410. broadcast "{@tag} Nowym liderem gildii &6%{_g}%&7 zostal &6%arg 2%&7!"
  411. stop
  412. else:
  413. send "{@tag} &cTen gracz nie jest w Twojej gildii!"
  414. stop
  415. if arg 1 is "baza" or "dom" or "base" or "b" or "d":
  416. if arg 2 is set:
  417. send "{@tag} &cZa duzo argumentow!"
  418. stop
  419. if arg 3 is set:
  420. send "{@tag} &cZa duzo argumentow!"
  421. stop
  422. if {skGuilds::inGuild::%player%} is not set:
  423. send "{@tag} &cNie jestes w zadnej gildii!"
  424. stop
  425. if {skGuilds::TPCooldown::%player%} is false:
  426. set {_pos} to location of player
  427. set {_index} to {@teleport.time}
  428. send "{@tag} Zaczekaj &e{@teleport.time} {@teleport.type}&7!"
  429. set {skGuilds::TPCooldown::%player%} to true
  430. loop {@teleport.time} times:
  431. if {_pos} isn't location of player:
  432. send "{@tag} &cTeleportacja anulowana..."
  433. stop
  434. send "&8> &e%{_index}%"
  435. wait 1 {@teleport.type}
  436. remove 1 from {_index}
  437. if {_pos} is location of player:
  438. set {_g} to {skGuilds::inGuild::%player%}
  439. teleport player to {skGuilds::Baza::%{_g}%}
  440. send "{@tag} Teleportacja..."
  441. show mob spawner flames at the player
  442. set {skGuilds::TPCooldown::%player%} to false
  443. stop
  444. else:
  445. send "{@tag} &cTeleportacja anulowana..."
  446. set {skGuilds::TPCooldown::%player%} to false
  447. stop
  448. else:
  449. send "{@tag} &cJuz sie teleportujesz!"
  450. stop
  451. if arg 1 is "ustawbaze" or "setbase" or "sethome" or "sh" or "sb" or "ub":
  452. if arg 2 is set:
  453. send "{@tag} &cZa duzo argumentow!"
  454. stop
  455. if arg 3 is set:
  456. send "{@tag} &cZa duzo argumentow!"
  457. stop
  458. else if {skGuilds::inGuild::%player%} is not set:
  459. send "{@tag} &cNie jestes w zadnej gildii!"
  460. stop
  461. else if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  462. send "{@tag} &cNie jestes liderem gildii!"
  463. set {_rg} to Region.getAt{location of player};
  464. if {_rg} is {skGuilds::inGuild::%player%}:
  465. set {_Polozenie} to location of player
  466. set {_Gildia} to {skGuilds::inGuild::%player%}
  467. set {skGuilds::Baza::%{_Gildia}%} to {_Polozenie}
  468. send "{@tag} Nowa baza gildii zostala ustawiona!"
  469. stop
  470. else:
  471. send "{@tag} &cNie jestes na terenie swojej gildii!"
  472. stop
  473. if arg 1 is "usun" or "remove" or "delete" or "u" or "r" or "d" or "del" or "rem" or "rozwiaz":
  474. if arg 2 is set:
  475. send "{@tag} &cZa duzo argumentow!"
  476. stop
  477. if arg 3 is set:
  478. send "{@tag} &cZa duzo argumentow!"
  479. stop
  480. if {skGuilds::inGuild::%player%} is not set:
  481. send "{@tag} &cNie jestes w zadnej gildii!"
  482. stop
  483. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  484. send "{@tag} &cJedynie Lider moze usunac gildie!"
  485. stop
  486. set {_arg2} to {skGuilds::inGuild::%player%}
  487. set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
  488. edit tag of player to ""
  489. delete {skGuilds::GildiaTag::%{_arg2}%}
  490. delete {skGuilds::GildiaNazwa::%{_arg3}%}
  491. delete {skGuilds::TagGildii::%{_arg2}%}
  492. clear {skGuilds::inGuild::%player%}
  493. remove {_arg3} from {skGuilds::Gildie::*}
  494. remove {_arg2} from {skGuilds::Tagi::*}
  495. delete {skGuilds::Czlonkowie::%{_arg2}%::*}
  496. delete {skGuilds::PVP::%{_arg2}%}
  497. delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
  498. delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
  499. delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
  500. delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
  501. delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
  502. delete {skGuilds::Opis::%{_arg2}%}
  503. delete {skGuilds::Lider::%{_arg2}%}
  504. set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
  505. delete {skGuilds::Baza::%{_arg2}%}
  506. delete {skGuilds::Polozenie::%{_arg2}%}
  507. delete {skGuilds::PodbiteGildie::%{_arg2}%}
  508. delete {skGuilds::Podbicia::%{_arg2}%}
  509. delete {skGuilds::Zabojstwa::%{_arg2}%}
  510. delete {skGuilds::Zycia::%{_arg2}%}
  511. set {_Gildia} to {_arg2}
  512. remove {_Gildia} from {skGuilds::Cuboids::*}
  513. delete {skGuilds::Cuboid::Large::%{_Gildia}%}
  514. set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
  515. delete {skGuilds::Cuboid::Center::%{_Gildia}%}
  516. delete {skGuilds::DataZalozenia::%{_Gildia}%}
  517. "%{_arg2}%".Region.delete{};
  518. broadcast "{@tag} Gildia &e%{_arg3}% &8[&e%{_arg2}%&8] &7zostala rozwiazana przez &e%player%"
  519. stop
  520. if arg 1 is "opis" or "desc":
  521. if arg 2 is set:
  522. if length of arg 2 is greater than 70:
  523. send "{@tag} &cDlugosc opisu nie moze byc wieksza niz 70 liter!"
  524. stop
  525. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  526. send "{@tag} &cMusisz byc liderem gildii by zmieniac opis!"
  527. stop
  528. if arg 3 is set:
  529. send "{@tag} Nie mozesz podac wiecej niz &e1 argument&7,"
  530. send "{@tag} ale za to mozesz wpisac &e_ &7poniewaz ten znak"
  531. send "{@tag} zamieni sie w &espacje&7!"
  532. stop
  533. else:
  534. set {_opis} to "%coloured arg 2%"
  535. replace all "_" with " " in {_opis}
  536. set {skGuilds::Opis::%{skGuilds::inGuild::%player%}%} to {_opis}
  537. send "{@tag} Poprawnie zmieniles opis gildii na: &e%{_opis}%"
  538. arg 1 is "pvp" or "pv":
  539. arg 2 is set:
  540. send "{@tag} &cZa duzo argumentow!"
  541. stop
  542. if {skGuilds::inGuild::%player%} is not set:
  543. send "{@tag} &cNie jestes w zadnej gildii!"
  544. stop
  545. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
  546. send "{@tag} &cNie jestes liderem gildii!"
  547. stop
  548. if {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} is true:
  549. send "{@tag} Ogien sojuszniczy gildii zostal &cwylaczony!"
  550. set {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} to false
  551. stop
  552. else:
  553. send "{@tag} Ogien sojuszniczy gildii zostal &awlaczony!"
  554. set {skGuilds::PVP::%{skGuilds::inGuild::%player%}%} to true
  555. stop
  556. if arg 1 is "zapros" or "invite" or "inv":
  557. arg 2 is not set:
  558. send "{@tag} &cWpisz nick gracza!"
  559. stop
  560. if {skGuilds::inGuild::%player%} is not set:
  561. send "{@tag} &cNie jestes w zadnej gildii!"
  562. stop
  563. set {_player} to arg 2 parsed as player
  564. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  565. send "{@tag} &cJedynie lider moze zapraszac graczy!"
  566. stop
  567. if "%{skGuilds::inGuild::%player%}%" is "%{skGuilds::inGuild::%{_player}%}%":
  568. send "{@tag} &cTen gracz juz jest w naszej gildii!"
  569. stop
  570. if arg 2 is "%player%":
  571. send "{@tag} &cNie mozesz zaprosic samego siebie!"
  572. stop
  573. set {_g} to {skGuilds::inGuild::%player%}
  574. set {skGuilds::Zaproszenie::%{_player}%::%{skGuilds::inGuild::%player%}%} to true
  575. send "{@tag} &eZostales zaproszony do gildii &6%{_g}%&e!" to {_player}
  576. send "{@tag} &eDolacz, za pomoca komendy &6/g dolacz %{_g}%&e!" to {_player}
  577. send "{@tag} &eKoszt: &6{@guild.dolaczitem}" to {_player}
  578. send "{@tag} Wyslano zaproszenie do gracza &e%{_player}%&7!"
  579. wait 1 minute
  580. if {skGuilds::inGuild::%{_player}%} is not {skGuilds::inGuild::%player%}:
  581. set {skGuilds::Zaproszenie::%player%::%{skGuilds::inGuild::%player%}%} to false
  582. stop
  583. if arg 1 is "dolacz" or "join":
  584. if player doesn't have {@guild.dolaczitem}:
  585. send "{@tag} &cNie masz wymaganych przedmiotow!"
  586. send "{@tag} &cPotrzebujesz: &7{@guild.dolaczitem}"
  587. stop
  588. if {skGuilds::inGuild::%player%} is set:
  589. send "{@tag} &cJestes juz w gildii!"
  590. stop
  591. if arg 2 is not set:
  592. send "{@tag} &cPodaj nazwe gildii!"
  593. stop
  594.  
  595. if {skGuilds::GildiaTag::%arg 2%} is true:
  596. if {skGuilds::Zaproszenie::%player%::%arg 2%} is true:
  597. set {skGuilds::inGuild::%player%} to "%arg 2%"
  598. add "%player%" to {skGuilds::Czlonkowie::%arg 2%::*}
  599. edit tag of the player to "&6[&e%arg 2%&6] &e"
  600. set {skGuilds::Zaproszenie::%player%::%arg 2%} to false
  601. broadcast "{@tag} Gracz &e%player% &7dolaczyl do gildii &e%arg 2%"
  602. remove {@guild.dolaczitem} from player
  603. stop
  604. else:
  605. send "{@tag} &cNie jestes zaproszony do tej gildii!"
  606. else:
  607. send "{@tag} &cTaka gildia nie istnieje!"
  608. if arg 1 is "opusc" or "leave":
  609. if arg 3 is set:
  610. send "{@tag} &cZa duzo argumentow!"
  611. stop
  612. if {skGuilds::inGuild::%player%} is not set:
  613. send "{@tag} &cNie jestes w zadnej gildii!"
  614. stop
  615. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is player:
  616. send "{@tag} &cLider nie moze opuscic gildii!"
  617. stop
  618. else:
  619. broadcast "{@tag} Gracz &e%player% &7opuscil gildie &e%{skGuilds::inGuild::%player%}%"
  620. remove "%player%" from {skGuilds::Czlonkowie::%{skGuilds::inGuild::%player%}%::*}
  621. edit tag of player to ""
  622. clear {skGuilds::inGuild::%player%}
  623. stop
  624. if arg 1 is "wyrzuc" or "kick":
  625. if arg 2 is not set:
  626. send "{@tag} &cWpisz nick gracza!"
  627. stop
  628. if {skGuilds::inGuild::%player%} is not set:
  629. send "{@tag} &cNie jestes w zadnej gildii!"
  630. stop
  631. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  632. send "{@tag} &cTylko lider gildii moze wyrzucac graczy!"
  633. stop
  634. if arg 2 is player:
  635. send "{@tag} &cNie mozesz wyrzucic siebie z gildii!"
  636. stop
  637. if "%{skGuilds::inGuild::%player%}%" is not "%{skGuilds::inGuild::%arg 2%}%":
  638. send "{@tag} &cGracz &4%arg 2% &cnie jest w twojej gildii!"
  639. stop
  640. else:
  641. broadcast "{@tag} Gracz &e%arg 2% &7zostal wyrzucony z gildii &e%{skGuilds::inGuild::%player%}%"
  642. edit tag of arg 2 parsed as player to ""
  643. remove "%arg 2%" from {skGuilds::Czlonkowie::%{skGuilds::inGuild::%player%}%::*}
  644. clear {skGuilds::inGuild::%arg 2%}
  645. stop
  646. if arg 1 is "powieksz" or "bigger":
  647. arg 2 is set:
  648. send "{@tag} &cZa duzo argumentow!"
  649. stop
  650. arg 3 is set:
  651. send "{@tag} &cZa duzo argumentow!"
  652. stop
  653. if {skGuilds::inGuild::%player%} is not set:
  654. send "{@tag} &cNie jestes w zadnej gildii!"
  655. stop
  656. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not player:
  657. send "{@tag} &cTylko lider gildii moze powiekszac teren!"
  658. stop
  659. set {_gildia} to {skGuilds::inGuild::%player%}
  660. set {_name} to {skGuilds::inGuild::%player%}
  661. set {_rg} to Region.getAt{location of player};
  662. if {_rg} is {skGuilds::inGuild::%player%}:
  663. if {skGuilds::%{_gildia}%::Powieksz::LVL::1} is false:
  664. if player doesn't have {@powieksz.item.1}:
  665. send "{@tag} &cNie masz wymaganych przedmiotow!"
  666. send "{@tag} &cPotrzebujesz: &7{@powieksz.item.1}"
  667. stop
  668. remove {@powieksz.item.1} from player
  669. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 60
  670. "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
  671. set {skGuilds::%{_gildia}%::Powieksz::LVL::1} to true
  672. set {skGuilds::%{_gildia}%::Powieksz::LVL::2} to false
  673. send "{@tag} &eTeren gildii zostal powiekszony!"
  674. send "{@tag} &eObecna wielkosc: &660 kratek"
  675. send "{@tag} &ePoziom: &61"
  676. stop
  677. if {skGuilds::%{_gildia}%::Powieksz::LVL::2} is false:
  678. if player doesn't have {@powieksz.item.2}:
  679. send "{@tag} &cNie masz wymaganych przedmiotow!"
  680. send "{@tag} &cPotrzebujesz: &7{@powieksz.item.2}"
  681. stop
  682. remove {@powieksz.item.2} from player
  683. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 70
  684. "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
  685. set {skGuilds::%{_gildia}%::Powieksz::LVL::2} to true
  686. set {skGuilds::%{_gildia}%::Powieksz::LVL::3} to false
  687. send "{@tag} &eTeren gildii zostal powiekszony!"
  688. send "{@tag} &eObecna wielkosc: &670 kratek"
  689. send "{@tag} &ePoziom: &62"
  690. stop
  691. if {skGuilds::%{_gildia}%::Powieksz::LVL::3} is false:
  692. if player doesn't have {@powieksz.item.3}:
  693. send "{@tag} &cNie masz wymaganych przedmiotow!"
  694. send "{@tag} &cPotrzebujesz: &7{@powieksz.item.3}"
  695. stop
  696. remove {@powieksz.item.3} from player
  697. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 80
  698. "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
  699. set {skGuilds::%{_gildia}%::Powieksz::LVL::3} to true
  700. set {skGuilds::%{_gildia}%::Powieksz::LVL::4} to false
  701. send "{@tag} &eTeren gildii zostal powiekszony!"
  702. send "{@tag} &eObecna wielkosc: &680 kratek"
  703. send "{@tag} &ePoziom: &63"
  704. stop
  705. if {skGuilds::%{_gildia}%::Powieksz::LVL::4} is false:
  706. if player doesn't have {@powieksz.item.4}:
  707. send "{@tag} &cNie masz wymaganych przedmiotow!"
  708. send "{@tag} &cPotrzebujesz: &7{@powieksz.item.4}"
  709. stop
  710. remove {@powieksz.item.4} from player
  711. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 90
  712. "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
  713. set {skGuilds::%{_gildia}%::Powieksz::LVL::4} to true
  714. set {skGuilds::%{_gildia}%::Powieksz::LVL::5} to false
  715. send "{@tag} &eTeren gildii zostal powiekszony!"
  716. send "{@tag} &eObecna wielkosc: &690 kratek"
  717. send "{@tag} &ePoziom: &64"
  718. stop
  719. if {skGuilds::%{_gildia}%::Powieksz::LVL::5} is false:
  720. if player doesn't have {@powieksz.item.5}:
  721. send "{@tag} &cNie masz wymaganych przedmiotow!"
  722. send "{@tag} &cPotrzebujesz: &7{@powieksz.item.5}"
  723. stop
  724. remove {@powieksz.item.5} from player
  725. set {skGuilds::Cuboid::Large::%{_Gildia}%} to 100
  726. "%{_name}%".Region.selectLS{{skGuilds::Cuboid::Center::%{_Gildia}%} , {skGuilds::Cuboid::Large::%{_Gildia}%} };
  727. set {skGuilds::%{_gildia}%::Powieksz::LVL::5} to true
  728. send "{@tag} &eTeren gildii zostal powiekszony!"
  729. send "{@tag} &eObecna wielkosc: &6100 kratek"
  730. send "{@tag} &ePoziom: &65 (Ostatni)"
  731. stop
  732. else:
  733. send "{@tag} &cOsiagnales maksymalny rozmiar terenu! (p.5) (100 kratek)"
  734. else:
  735. send "{@tag} &cMusisz znajdowac sie na terenie gildii by to zrobic!"
  736. stop
  737. if arg 1 is "ranking" or "rank":
  738. if arg 2 is not set:
  739. send "&8╔═══════ &6%player% &8════════╗"
  740. send "&8╠&6 Ranking: &e%{skGuilds::Ranking::%player%}%"
  741. send "&8╠&6 Zabojstwa: &e%{skGuilds::Zabojstwa::%player%}%"
  742. send "&8╠&6 Zgony: &e%{skGuilds::Zgony::%player%}%"
  743. if {skGuilds::inGuild::%player%} is not set:
  744. send "&8╠&6 Gildia: &cBrak!"
  745. send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%player%}%"
  746. else:
  747. send "&8╠&6 Gildia: &e%{skGuilds::inGuild::%player%}%"
  748. send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%player%}%"
  749. send "&8╚════════════════════╝"
  750. stop
  751. if arg 2 is set:
  752. if arg 2 parsed as player is online:
  753. send "&8╔═══════ &6%arg 2% &8════════╗"
  754. send "&8╠&6 Ranking: &e%{skGuilds::Ranking::%arg 2%}%"
  755. send "&8╠&6 Zabojstwa: &e%{skGuilds::Zabojstwa::%arg 2%}%"
  756. send "&8╠&6 Zgony: &e%{skGuilds::Zgony::%arg 2%}%"
  757. if {skGuilds::inGuild::%arg 2%} is not set:
  758. send "&8╠&6 Gildia: &cBrak!"
  759. send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%arg 2%}%"
  760. else:
  761. send "&8╠&6 Gildia: &e%{skGuilds::inGuild::%arg 2%}%"
  762. send "&8╠&6 Ostatnie wejscie: &e%{skGuilds::LastJoin::%arg 2%}%"
  763. send "&8╚════════════════════╝"
  764. stop
  765. else:
  766. send "{@tag} &cTen gracz nie jest na serwerze!"
  767. stop
  768. if arg 1 is "war" or "wojna" or "bitwa":
  769. if arg 2 is not set:
  770. send "{@tag} &cPodaj z jaka gildia chcesz walczyc!"
  771. stop
  772. if arg 3 parsed as integer is not set:
  773. send "{@tag} &cPodaj godzine spotkania!"
  774. stop
  775. if arg 4 is not set:
  776. send "{@tag} &cPodaj dodatkowy tekst!"
  777. stop
  778. if {skGuilds::TagGildii::%arg 2%} is not set:
  779. send "{@tag} &cNie ma takiej gildii!"
  780. stop
  781. if {skGuilds::inGuild::%player%} is not set:
  782. send "{@tag} &cNie jestes w zadnej gildii!"
  783. stop
  784. if {skGuilds::War::%arg 2%} is {skGuilds::inGuild::%player%}:
  785. send "{@tag} &cTa gildia juz walczy z nami!"
  786. stop
  787. if {skGuilds::War::%arg 2%} is not set:
  788. set {skGuilds::War::%arg 2%} to {skGuilds::inGuild::%player%}
  789. broadcast "{@tag} &eGildia &6%{skGuilds::inGuild::%player%}%&e wyzwala gildie &6%arg 2% &ena wojne!"
  790. broadcast "{@tag} &eDodatkowe informacje: &6%arg 4%"
  791. broadcast "{@tag} &eMiejsce: &6%location of player%"
  792. broadcast "{@tag} &eGodzina: &6%arg 3%:00"
  793. loop {skGuilds::Czlonkowie::%arg 2%::*}:
  794. send "{@tag} &4&lTwoja gildia zostala wyzwana na wojne!" to loop-value
  795. stop
  796. wait 50 minutes
  797. delete {skGuilds::War::%arg 2%}
  798. broadcast "&cBitwa pomiedzy &4%{skGuilds::inGuild::%player%}% &ca &4%arg 2%&c dobiegla konca!"
  799. else:
  800. send "{@tag} &cTa gildia juz jest z kims/z nami w walce!"
  801. if arg 1 is "efekt" or "effect":
  802. open chest with 3 rows named "&cEfekty:" to player
  803. wait 1 tick
  804. format slot 0 of player with 1 of white stained glass pane named "&f" to be unstealable
  805. format slot 1 of player with 1 of white stained glass pane named "&f" to be unstealable
  806. format slot 2 of player with 1 of white stained glass pane named "&f" to be unstealable
  807. format slot 3 of player with 1 of white stained glass pane named "&f" to be unstealable
  808. format slot 4 of player with 1 of white stained glass pane named "&f" to be unstealable
  809. format slot 5 of player with 1 of white stained glass pane named "&f" to be unstealable
  810. format slot 6 of player with 1 of white stained glass pane named "&f" to be unstealable
  811. format slot 7 of player with 1 of white stained glass pane named "&f" to be unstealable
  812. format slot 8 of player with 1 of white stained glass pane named "&f" to be unstealable
  813. format slot 9 of player with 1 of white stained glass pane named "&f" to be unstealable
  814.  
  815. format slot 10 of player with 1 of potion of:8237 named "&9Oddychanie pod woda" with lore "&eCena: {@potion.shop.waterbreath}" to run "potionshop %player% 1"
  816. format slot 11 of player with 1 of potion of:8227 named "&4Ochrona przed ogniem" with lore "&eCena: {@potion.shop.fireresistance}" to run "potionshop %player% 2"
  817. format slot 12 of player with 1 of potion of:8238 named "&bNiewidzialnosc" with lore "&eCena: {@potion.shop.invisible}" to run "potionshop %player% 3"
  818. format slot 13 of player with 1 of potion of:8201 named "&4Sila" with lore "&eCena: {@potion.shop.strength}" to run "potionshop %player% 4"
  819. format slot 14 of player with 1 of potion of:8194 named "&bSzybkosc" with lore "&eCena: {@potion.shop.speed}" to run "potionshop %player% 5"
  820. format slot 15 of player with 1 of potion of:8193 named "&dRegeneracja Zycia" with lore "&eCena: {@potion.shop.regeneration}" to run "potionshop %player% 6"
  821. format slot 16 of player with 1 of potion of:8230 named "&1Widzenie w ciemnosci" with lore "&eCena: {@potion.shop.nightvision}" to run "potionshop %player% 7"
  822.  
  823.  
  824. format slot 17 of player with 1 of white stained glass pane named "&f" to be unstealable
  825. format slot 18 of player with 1 of white stained glass pane named "&f" to be unstealable
  826. format slot 19 of player with 1 of white stained glass pane named "&f" to be unstealable
  827. format slot 20 of player with 1 of white stained glass pane named "&f" to be unstealable
  828. format slot 21 of player with 1 of white stained glass pane named "&f" to be unstealable
  829. format slot 22 of player with 1 of white stained glass pane named "&f" to be unstealable
  830. format slot 23 of player with 1 of white stained glass pane named "&f" to be unstealable
  831. format slot 24 of player with 1 of white stained glass pane named "&f" to be unstealable
  832. format slot 25 of player with 1 of white stained glass pane named "&f" to be unstealable
  833. format slot 26 of player with 1 of white stained glass pane named "&f" to be unstealable
  834. format slot 27 of player with 1 of white stained glass pane named "&f" to be unstealable
  835. stop
  836.  
  837. if arg 1 is "pomoc" or "pomocy" or "helpme":
  838. if {skGuilds::inGuild::%player%} is not set:
  839. send "{@tag} &cNie jestes w zadnej gildii!"
  840. if arg 2 is not set:
  841. send "{@tag} &cMusisz podac z jaka gildia walczysz!"
  842. stop
  843. if {skGuilds::Wait::%player%} is not set:
  844. loop {skGuilds::Czlonkowie::%{skGuilds::Sojusz::%{skGuilds::inGuild::%player%}%}%::*}:
  845. send "{@tag} &6Gracz &e%player% &6potrzebuje pomocy!" to loop-value
  846. send "{@tag} &6Walczy z gildia: &e%arg 2%" to loop-value
  847. send "{@tag} &6Jego koordynaty: &e%location of player%" to loop-value
  848. set {skGuilds::Wait::%player%} to true
  849. wait 3 minutes
  850. delete {skGuilds::Wait::%player%}
  851. send "{@tag} &cJuz mozesz zglosic sie o pomoc!"
  852. stop
  853. else:
  854. send "{@tag} &cZglaszac pomoc mozna co 3 minuty!" to player
  855. stop
  856. if arg 1 is "1":
  857. send "&8============ {@tag} &8============"
  858. send "&e/g zaloz &8- &7Zaklada gildie."
  859. send "&e/g zapros &8- &7Zaprasza do gildii."
  860. send "&e/g dolacz &8- &7Dolacza do gildii."
  861. send "&e/g wyrzuc &8- &7Wyrzuca z gildii."
  862. send "&e/g baza &8- &7Teleportuje do bazy."
  863. send "&e/g ustawbaze &8- &7Zaklada baze gildii."
  864. send "&e/g info &8- &7Informacje o gildii."
  865. send "&e/g ranking &8- &7Ranking graczy."
  866. send "&e/g lider &8- &7Przekazywanie lidera."
  867. send "&e/g pomoc &8- &7Zglasza pomoc do sojusznikow/czlonkow."
  868. send "&8============ 1/2 &8============"
  869. if arg 1 is "2":
  870. send "&8============ {@tag} &8============"
  871. send "&e/g lista &8- &7Lista gildii."
  872. send "&e/g pvp &8- &7Zmienia ogien sojuszniczy."
  873. send "&e/g opis &8- &7Zmienia opis gildii."
  874. send "&e/g usun &8- &7Usuwa gildie."
  875. send "&e/g powieksz &8- &7Powieksza teren gildii."
  876. send "&e/guildchat &8- &7Chat gildii."
  877. send "&e/top10 &8- &7Top 10 graczy"
  878. send "&e/gtop10 &8- &7Top 10 gildii"
  879. if player has permission "skguilds.admin" or "skguilds.*":
  880. send "&4/ga resetuj &8- &cResetuje wszystkie zmienne."
  881. send "&4/ga ustawspawn &8- &cUstawia globalny spawn."
  882. send "&4/ga przeladuj &8- &cPrzeladowywuje gildie."
  883. send "&4/ga zbanuj &8- &cBanuje gildie na zawsze."
  884. send "&8============ 2/2 &8============"
  885. else:
  886. send "&8============ 2/2 &8============"
  887. if arg 1 is not set:
  888. send "{@tag} &cNie znaleziono komendy!"
  889. send "{@tag} &cWpisz &e/g 1/2 &caby dowiedziec sie wiecej!"
  890. stop
  891.  
  892. # ====================== GADMIN ========================
  893. command /gadmin [<text>] [<text>] [<text>]:
  894. aliases: ga, guildadmin, gildiaadmin, gildiadmin
  895. trigger:
  896. if player has permission "skguilds.admin" or "skguilds.*":
  897. if arg 1 is "przeladuj" or "reload":
  898. send "{@tag} &ePrzeladowywanie pliku..."
  899. execute console command "/sk reload %script%"
  900. wait 10 ticks
  901. send "{@tag} &ePomyslnie przeladowano plik!"
  902. if arg 1 is "setspawn" or "ustawspawn":
  903. set {skGuilds::Spawn} to location of player
  904. send "{@tag} Pomyslnie ustawiles globalny spawn gildii!"
  905. stop
  906. if arg 1 is "clear" or "czysc" or "resetuj" or "reset":
  907. if arg 2 is set:
  908. send "{@tag} &cZa duzo argumentow!"
  909. if arg 3 is set:
  910. send "{@tag} &cZa duzo argumentow!"
  911. else:
  912. send "{@tag} Resetowanie &cwszystkich &7danych... zaczekaj chwile."
  913. wait 2 seconds
  914. clear {skGuilds::*}
  915. delete {skGuilds::*}
  916. kick all players due to "&4[skGuilds] &cResetowanie wszystkich danych skryptu..."
  917. stop
  918. if arg 1 is "usun" or "rozwiaz" or "zbanuj":
  919. if arg 2 is not set:
  920. send "{@tag} &cMusisz podac gildie!"
  921. stop
  922. if arg 3 is not set:
  923. send "{@tag} &cMusisz podac powod!"
  924. stop
  925. if {skGuilds::GildiaTag::%arg 2%} is not set:
  926. send "{@tag} &cNie ma takiej gildii!"
  927. stop
  928. if arg 2 is set:
  929. if arg 3 is set:
  930. set {_l} to {skGuilds::Lider::%arg 2%}
  931. set {_arg2} to arg 2
  932. set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
  933. edit tag of {_l} to ""
  934. delete {skGuilds::GildiaTag::%{_arg2}%}
  935. delete {skGuilds::GildiaNazwa::%{_arg3}%}
  936. delete {skGuilds::TagGildii::%{_arg2}%}
  937. clear {skGuilds::inGuild::%{_l}%}
  938. remove {_arg3} from {skGuilds::Gildie::*}
  939. remove {_arg2} from {skGuilds::Tagi::*}
  940. delete {skGuilds::Czlonkowie::%{_arg2}%::*}
  941. delete {skGuilds::PVP::%{_arg2}%}
  942. delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
  943. delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
  944. delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
  945. delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
  946. delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
  947. delete {skGuilds::Opis::%{_arg2}%}
  948. delete {skGuilds::Lider::%{_arg2}%}
  949. delete {skGuilds::Zycia::%{_arg2}%}
  950. set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
  951. delete {skGuilds::Baza::%{_arg2}%}
  952. delete {skGuilds::Polozenie::%{_arg2}%}
  953. delete {skGuilds::PodbiteGildie::%{_arg2}%}
  954. delete {skGuilds::Podbicia::%{_arg2}%}
  955. delete {skGuilds::Zabojstwa::%{_arg2}%}
  956. set {_Gildia} to {_arg2}
  957. remove {_Gildia} from {skGuilds::Cuboids::*}
  958. delete {skGuilds::Cuboid::Large::%{_Gildia}%}
  959. set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
  960. delete {skGuilds::Cuboid::Center::%{_Gildia}%}
  961. delete {skGuilds::DataZalozenia::%{_Gildia}%}
  962. "%{_arg2}%".Region.delete{};
  963. broadcast ""
  964. broadcast "&4Gildia %arg 2% zostala zbanowana!"
  965. broadcast "&4Powod: &c%arg 3%"
  966. broadcast ""
  967. send "{@tag} &cPoprawnie zbanowales/usunales gildie!"
  968. else:
  969. send "{@tag} &cNie masz do tego uprawnien!"
  970.  
  971.  
  972. # ====================== SOJUSZ ===========================
  973. command /sojusz [<text>] [<text>]:
  974. trigger:
  975. if {skGuilds::inGuild::%player%} is set:
  976. if arg 1 is not set:
  977. send "&8============ {@tag} &8============"
  978. send "&e/sojusz zapros &8- &7Wysyla zaproszenie do sojuszu"
  979. send "&e/sojusz akceptuj &8- &7Akceptuje zaproszenie do sojuszu"
  980. send "&e/sojusz zerwij &8- &7Zrywa sojusz z gildia"
  981. send "&8============ {@tag} &8============"
  982. stop
  983. if arg 1 is "zapros" or "invite" or "inv":
  984. if arg 2 is not set:
  985. send "{@tag} &cMusisz podac tag gildii!"
  986. stop
  987. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
  988. send "{@tag} &cNie jestes liderem zadnej gildii!"
  989. stop
  990. if {skGuilds::GildiaTag::%arg 2%} is not set:
  991. send "{@tag} &cNie ma takiej gildii!"
  992. stop
  993. if {skGuilds::ZDS::%arg 2%} is true:
  994. send "{@tag} &cTa gildia jest juz zaproszona do sojuszu!"
  995. stop
  996. if {skGuilds::Sojusz::%{skGuilds::inGuild::%player%}%} is "%arg 2%":
  997. send "{@tag} &cTa gildia juz jest z wami w sojuszu!"
  998. stop
  999. if {skGuilds::Lider::%arg 2%} parsed as player is offline:
  1000. send "{@tag} &cLider gildii %arg 2% nie jest online!"
  1001. stop
  1002. if arg 2 is {skGuilds::inGuild::%player%}:
  1003. send "{@tag} &cNie mozesz zawrzec sojuszu z wlasna gildia!"
  1004. stop
  1005. if {skGuilds::inGuild::%player%} is not set:
  1006. send "{@tag} &cNie jestes w zadnej gildii!"
  1007. stop
  1008. set {_g} to {skGuilds::inGuild::%player%}
  1009. set {_lider} to {skGuilds::Lider::%arg 2%} parsed as player
  1010. send "{@tag} Wyslales zaproszenie do sojuszu, dla gildii &e%arg 2%"
  1011. send "{@tag} &eTwoja gildia zostala zaproszona do sojuszu!" to {_lider}
  1012. send "{@tag} &eAkceptuj komenda &6/sojusz akceptuj %{_g}%&e!" to {_lider}
  1013. set {skGuilds::ZDS::%arg 2%} to true
  1014. wait 120 second
  1015. set {skGuilds::ZDS::%arg 2%} to false
  1016. stop
  1017. if arg 1 is "akceptuj":
  1018. if arg 2 is not set:
  1019. send "{@tag} &cMusisz podac tag gildii!"
  1020. stop
  1021. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
  1022. send "{@tag} &cNie jestes liderem zadnej gildii!"
  1023. stop
  1024. if {skGuilds::GildiaTag::%arg 2%} is not set:
  1025. send "{@tag} &cNie ma takiej gildii!"
  1026. stop
  1027. if {skGuilds::ZDS::%arg 2%} is false:
  1028. send "{@tag} &cNie masz zaproszenia od tej gildii!"
  1029. stop
  1030. if {skGuilds::Sojusz::%{skGuilds::inGuild::%player%}%} is "%arg 2%":
  1031. send "{@tag} &cTa gildia jest juz z wami w sojuszu!"
  1032. stop
  1033. set {_nick} to {skGuilds::Lider::%arg 2%} parsed as player
  1034. set {_g} to {skGuilds::inGuild::%player%}
  1035. set {skGuilds::Sojusz::%{_g}%} to "%arg 2%"
  1036. delete {skGuilds::ZDS::%arg 2%}
  1037. add "%arg 2%" to {skGuilds::Sojusz::%{_g}%::*}
  1038. add "%{_g}%" to {skGuilds::Sojusz::%arg 2%::*}
  1039. broadcast "{@tag} &7Gildia &e%{_g}% &7zawarla sojusz z gildia &e%arg 2%"
  1040. if arg 1 is "zerwij":
  1041. if arg 2 is not set:
  1042. send "{@tag} &cMusisz podac tag gildii!"
  1043. stop
  1044. if {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is not set:
  1045. send "{@tag} &cNie jestes liderem zadnej gildii!"
  1046. stop
  1047. if {skGuilds::GildiaTag::%arg 2%} is not set:
  1048. send "{@tag} &cTaka gildia nie istnieje!"
  1049. stop
  1050. if {skGuilds::Sojusz::%arg 2%} is not set:
  1051. send "{@tag} &cNie jestes w sojuszu z ta gildia!"
  1052. stop
  1053. set {_nick} to {skGuilds::Lider::%arg 2%} parsed as player
  1054. delete {skGuilds::Sojusz::%arg 2%}
  1055. remove "%arg 2%" from {skGuilds::Sojusz::%{_g}%::*}
  1056. remove "%{_tag}%" from {skGuilds::Sojusz::%arg 2%::*}
  1057. broadcast "{@tag} Gildia &e%{skGuilds::inGuild::%player%}% &7zerwala sojusz z gildia &e%arg 2%"
  1058. else:
  1059. send "{@tag} &cNie masz zadnej gildii!"
  1060.  
  1061. # ====================== CHAT GILDYJNY ===========================
  1062. command /guildchat [<text>]:
  1063. aliases: c, chat, gchat, gc
  1064. trigger:
  1065. if arg 1 is not set:
  1066. send "{@tag} &cMusisz podac wiadomosc!"
  1067. stop
  1068. if {skGuilds::inGuild::%player%} is set:
  1069. set {_g} to {skGuilds::inGuild::%player%}
  1070. if {skGuilds::Lider::%{_g}%} is player:
  1071. loop {skGuilds::Czlonkowie::%{_g}%::*}:
  1072. loop all players:
  1073. loop-value is loop-player:
  1074. set {_guildchatlider} to {guildchat.lider}
  1075. replace all "{TAG}" with "%{skGuilds::inGuild::%player%}%" in {_guildchatlider}
  1076. replace all "{NICK}" with "%player%" in {_guildchatlider}
  1077. replace all "{MSG}" with "%arg 1%" in {_guildchatlider}
  1078. send "%{_guildchatlider}%" to loop-player
  1079. stop
  1080. else:
  1081. loop {skGuilds::Czlonkowie::%{_g}%::*}:
  1082. loop all players:
  1083. loop-value is loop-player:
  1084. set {_guildchatnormal} to {guildchat.normal}
  1085. replace all "{TAG}" with "%{skGuilds::inGuild::%player%}%" in {_guildchatnormal}
  1086. replace all "{NICK}" with "%player%" in {_guildchatnormal}
  1087. replace all "{MSG}" with "%arg 1%" in {_guildchatnormal}
  1088. send "%{_guildchatnormal}%" to loop-player
  1089. stop
  1090. else:
  1091. send "{@tag} &cNie jestes w zadnej gildii!"
  1092. stop
  1093. on load:
  1094. set {guildchat.lider} to "{@chat.format.lider}"
  1095. set {guildchat.normal} to "{@chat.format.normal}"
  1096.  
  1097. # ====================== TOP 10 - Pomógł PiratJaskiniowy. Dzięki! ===========================
  1098.  
  1099.  
  1100. command /top10:
  1101. trigger:
  1102. send "{@tag} &8{ &cTOP 10 GRACZY &8}"
  1103. loop {skGuilds::Ranking::*}:
  1104. set {_lista::%loop-index%} to loop-value
  1105. set {_num} to size of {_lista::*}
  1106. loop {_num} times:
  1107. loop {_lista::*}:
  1108. {_value.%loop-number%} is not set:
  1109. set {_value.%loop-number%} to loop-value
  1110. set {_index.%loop-number%} to loop-index
  1111. loop-value is more than {_value.%loop-number%}:
  1112. set {_value.%loop-number%} to loop-value
  1113. set {_index.%loop-number%} to loop-index
  1114. delete {_lista::%{_index.%loop-number%}%}
  1115. loop 10 times:
  1116. if loop-number is less than or equal to {_num}:
  1117. send "&6%loop-number%. &f%{skGuilds::Nick::%{_index.%loop-number%}%}% &8(&e%{_value.%loop-number%}%&8)"
  1118.  
  1119.  
  1120. command /gtop10:
  1121. trigger:
  1122. send "{@tag} &8{ &cTOP 10 GILDII &8}"
  1123. loop {skGuilds::GuildPoints::*}:
  1124. set {_lista::%loop-index%} to loop-value
  1125. set {_num} to size of {_lista::*}
  1126. loop {_num} times:
  1127. loop {_lista::*}:
  1128. {_value.%loop-number%} is not set:
  1129. set {_value.%loop-number%} to loop-value
  1130. set {_index.%loop-number%} to loop-index
  1131. loop-value is more than {_value.%loop-number%}:
  1132. set {_value.%loop-number%} to loop-value
  1133. set {_index.%loop-number%} to loop-index
  1134. delete {_lista::%{_index.%loop-number%}%}
  1135. loop 10 times:
  1136. if loop-number is less than or equal to {_num}:
  1137. send "&6%loop-number%. &f%{skGuilds::TagGildii::%{_index.%loop-number%}%}% &8(&e%{_value.%loop-number%}%&8)"
  1138.  
  1139. every 1 second:
  1140. if {@tab} is true:
  1141. loop {skGuilds::GuildPoints::*}:
  1142. set {_lista::%loop-index%} to loop-value
  1143. set {_num} to size of {_lista::*}
  1144. loop {_num} times:
  1145. loop {_lista::*}:
  1146. {_value.%loop-number%} is not set:
  1147. set {_value.%loop-number%} to loop-value
  1148. set {_index.%loop-number%} to loop-index
  1149. loop-value is more than {_value.%loop-number%}:
  1150. set {_value.%loop-number%} to loop-value
  1151. set {_index.%loop-number%} to loop-index
  1152. delete {_lista::%{_index.%loop-number%}%}
  1153. loop 10 times:
  1154. if loop-number is less than or equal to {_num}:
  1155. set {g.tab.%loop-number%} to "&6%loop-number%. &f%{skGuilds::TagGildii::%{_index.%loop-number%}%}%"
  1156. else:
  1157. set {g.tab.%loop-number%} to "&6%loop-number%. "
  1158. every 1 second:
  1159. if {@tab} is true:
  1160. loop {skGuilds::Ranking::*}:
  1161. set {_lista::%loop-index%} to loop-value
  1162. set {_num} to size of {_lista::*}
  1163. loop {_num} times:
  1164. loop {_lista::*}:
  1165. {_value.%loop-number%} is not set:
  1166. set {_value.%loop-number%} to loop-value
  1167. set {_index.%loop-number%} to loop-index
  1168. loop-value is more than {_value.%loop-number%}:
  1169. set {_value.%loop-number%} to loop-value
  1170. set {_index.%loop-number%} to loop-index
  1171. delete {_lista::%{_index.%loop-number%}%}
  1172. loop 10 times:
  1173. if loop-number is less than or equal to {_num}:
  1174. set {p.tab.%loop-number%} to "&6%loop-number%. &f%{skGuilds::Nick::%{_index.%loop-number%}%}%"
  1175. else:
  1176. set {p.tab.%loop-number%} to "&6%loop-number%. "
  1177.  
  1178. # ====================== TAB ===========================
  1179. on join:
  1180. set {_Tab} to "tab"
  1181. set {_gt} to {skGuilds::inGuild::%player%}
  1182. "{_Tab}".Tab.set{1, "&8&l <<<<<<<<<<<"};
  1183. "{_Tab}".Tab.set{2, "&8&l<><><><><><>"};
  1184. "{_Tab}".Tab.set{3, "&8&l>>>>>>>>>>>"};
  1185. "{_Tab}".Tab.set{4, "&e&lTOP GRACZY"};
  1186. "{_Tab}".Tab.set{5, "&e&l INFORMACJE"};
  1187. "{_Tab}".Tab.set{6, "&e&lTOP GILDII"};
  1188. "{_Tab}".Tab.set{7, "&8&l<<<<<<<<<<<<"};
  1189. "{_Tab}".Tab.set{8, "&8&l <><><><><>"};
  1190. "{_Tab}".Tab.set{9, "&8&l>>>>>>>>>>>>"};
  1191. "{_Tab}".Tab.set{10, ""};
  1192. "{_Tab}".Tab.set{11, ""};
  1193. "{_Tab}".Tab.set{12, ""};
  1194. "{_Tab}".Tab.set{13, "%{p.tab.1}%"};
  1195. "{_Tab}".Tab.set{14, "&3Twoj nick:"};
  1196. "{_Tab}".Tab.set{15, "%{g.tab.1}%&1"};
  1197. "{_Tab}".Tab.set{16, "%{p.tab.2}%"};
  1198. "{_Tab}".Tab.set{17, "&b%player%"};
  1199. "{_Tab}".Tab.set{18, "%{g.tab.2}%&2"};
  1200. "{_Tab}".Tab.set{19, "%{p.tab.3}%"};
  1201. "{_Tab}".Tab.set{20, ""};
  1202. "{_Tab}".Tab.set{21, "%{g.tab.3}%&3"};
  1203. "{_Tab}".Tab.set{22, "%{p.tab.4}%"};
  1204. "{_Tab}".Tab.set{23, "&3Punkty:"};
  1205. "{_Tab}".Tab.set{24, "%{g.tab.4}%&4"};
  1206. "{_Tab}".Tab.set{25, "%{p.tab.5}%"};
  1207. "{_Tab}".Tab.set{26, "&b%{skGuilds::Ranking::%player%}%"};
  1208. "{_Tab}".Tab.set{27, "%{g.tab.5}%&5"};
  1209. "{_Tab}".Tab.set{28, "%{p.tab.6}%"};
  1210. "{_Tab}".Tab.set{29, ""};
  1211. "{_Tab}".Tab.set{30, "%{g.tab.6}%&6"};
  1212. "{_Tab}".Tab.set{31, "%{p.tab.7}%"};
  1213. "{_Tab}".Tab.set{32, "&3Zgony:"};
  1214. "{_Tab}".Tab.set{33, "%{g.tab.7}%&7"};
  1215. "{_Tab}".Tab.set{34, "%{p.tab.8}%"};
  1216. "{_Tab}".Tab.set{35, "&b%{skGuilds::Zgony::%player%}%"};
  1217. "{_Tab}".Tab.set{36, "%{g.tab.8}%&8"};
  1218. "{_Tab}".Tab.set{37, "%{p.tab.9}%"};
  1219. "{_Tab}".Tab.set{38, ""};
  1220. "{_Tab}".Tab.set{39, "%{g.tab.9}%&9"};
  1221. "{_Tab}".Tab.set{40, "%{p.tab.10}%"};
  1222. "{_Tab}".Tab.set{41, "&3Zabojstwa:"};
  1223. "{_Tab}".Tab.set{42, "%{g.tab.10}%&0"};
  1224. "{_Tab}".Tab.set{43, ""};
  1225. "{_Tab}".Tab.set{44, "&b%{skGuilds::Zabojstwa::%player%}%"};
  1226. "{_Tab}".Tab.set{45, ""};
  1227. "{_Tab}".Tab.set{46, "{@tab.info1naglowek}"};
  1228. "{_Tab}".Tab.set{47, ""};
  1229. "{_Tab}".Tab.set{48, "{@tab.info2naglowek}"};
  1230. "{_Tab}".Tab.set{49, "{@tab.info1}"};
  1231. "{_Tab}".Tab.set{50, "&3Aktualna gildia:"};
  1232. "{_Tab}".Tab.set{51, "{@tab.info2}"};
  1233. "{_Tab}".Tab.set{52, ""};
  1234. if {skGuilds::inGuild::%player%} is set:
  1235. "{_Tab}".Tab.set{53, "&b%{skGuilds::inGuild::%player%}%"};
  1236. else:
  1237. "{_Tab}".Tab.set{53, "&bBrak!"};
  1238. "{_Tab}".Tab.set{54, ""};
  1239. "{_Tab}".Tab.set{55, ""};
  1240. "{_Tab}".Tab.set{56, ""};
  1241. "{_Tab}".Tab.set{57, ""};
  1242. "{_Tab}".Tab.set{58, ""};
  1243. "{_Tab}".Tab.set{59, ""};
  1244. "{_Tab}".Tab.set{60, ""};
  1245. "{_Tab}".Tab.send{player};
  1246.  
  1247. # ====================== RELOG ==========================
  1248. on join:
  1249. if {skGuilds::Wait::%player%} is set:
  1250. delete {skGuilds::Wait::%player%}
  1251. stop
  1252.  
  1253.  
  1254. # ====================== LADOWANIE CUBOIDOW I CHATU ===========================
  1255. on load:
  1256. set {guild.chat} to "{@guild.chat}"
  1257. loop {skGuilds::Cuboids::*}:
  1258. "%loop-value%".Region.selectLS{{skGuilds::Cuboid::Center::%loop-value%}, {skGuilds::Cuboid::Large::%loop-value%}};
  1259.  
  1260. # ====================== KLIKANIE / NISZCZENIE BLOKU GILDYJNEGO ===========================
  1261. on rightclick:
  1262. if clicked block is {@guild.item}:
  1263. set {_region} to Region.getAt{location of player};
  1264. if {_region} is not set:
  1265. stop
  1266. if {_region} is set:
  1267. cancel event
  1268. loop {skGuilds::Czlonkowie::%{_region}%::*}:
  1269. if loop-value is not player:
  1270. if {skGuilds::inGuild::%player%} is set:
  1271. if {skGuilds::JuzPodbito::%player%::%{_region}%} is not set:
  1272. if {skGuilds::Zycia::%{_region}%} is 3:
  1273. set {skGuilds::Zycia::%{_region}%} to 2
  1274. set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
  1275. send "{@tag} Podbiles gildie &e%{_region}%&7! Pozostalo jej &6%{skGuilds::Zycia::%{_region}%}%&7 zyc!"
  1276. stop
  1277. if {skGuilds::Zycia::%{_region}%} is 2:
  1278. set {skGuilds::Zycia::%{_region}%} to 1
  1279. set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
  1280. send "{@tag} Podbiles gildie &e%{_region}%&7! Pozostalo jej &6%{skGuilds::Zycia::%{_region}%}%&7 zyc!"
  1281. stop
  1282. if {skGuilds::Zycia::%{_region}%} is 1:
  1283. set {skGuilds::JuzPodbito::%player%::%{_region}%} to true
  1284. set {_l} to {skGuilds::Lider::%{_region}%} parsed as player
  1285. set {_arg2} to {_region}
  1286. set {_arg3} to {skGuilds::NazwaGildii::%{_arg2}%}
  1287. edit tag of {_l} to ""
  1288. delete {skGuilds::GildiaTag::%{_arg2}%}
  1289. delete {skGuilds::GildiaNazwa::%{_arg3}%}
  1290. delete {skGuilds::TagGildii::%{_arg2}%}
  1291. clear {skGuilds::inGuild::%loop-value%}
  1292. remove {_arg3} from {skGuilds::Gildie::*}
  1293. remove {_arg2} from {skGuilds::Tagi::*}
  1294. delete {skGuilds::Czlonkowie::%{_arg2}%::*}
  1295. delete {skGuilds::PVP::%{_arg2}%}
  1296. delete {skGuilds::%{_arg2}%::Powieksz::LVL::1}
  1297. delete {skGuilds::%{_arg2}%::Powieksz::LVL::2}
  1298. delete {skGuilds::%{_arg2}%::Powieksz::LVL::3}
  1299. delete {skGuilds::%{_arg2}%::Powieksz::LVL::4}
  1300. delete {skGuilds::%{_arg2}%::Powieksz::LVL::5}
  1301. delete {skGuilds::Opis::%{_arg2}%}
  1302. delete {skGuilds::Lider::%{_arg2}%}
  1303. set {skGuilds::GuildPoints::%{_arg2}%} to "Brak!"
  1304. delete {skGuilds::Baza::%{_arg2}%}
  1305. delete {skGuilds::Polozenie::%{_arg2}%}
  1306. delete {skGuilds::PodbiteGildie::%{_arg2}%}
  1307. delete {skGuilds::Podbicia::%{_arg2}%}
  1308. delete {skGuilds::Zabojstwa::%{_arg2}%}
  1309. set {_Gildia} to {_arg2}
  1310. remove {_Gildia} from {skGuilds::Cuboids::*}
  1311. delete {skGuilds::Cuboid::Large::%{_Gildia}%}
  1312. set block at {skGuilds::Cuboid::Center::%{_Gildia}%} to air
  1313. delete {skGuilds::Cuboid::Center::%{_Gildia}%}
  1314. delete {skGuilds::DataZalozenia::%{_Gildia}%}
  1315. "%{_arg2}%".Region.delete{};
  1316. broadcast "{@tag} &3Gildia &b%{_arg3}% [%{_region}%] &3zostala podbita przez &b%player%&3!"
  1317. stop
  1318. else:
  1319. send "{@tag} &cJuz podbiles ta gildie!"
  1320. else:
  1321. send "{@tag} &cMusisz byc w gildii!"
  1322. else:
  1323. send "{@tag} &cNie mozesz podbic wlasnej gildii!"
  1324.  
  1325. on leftclick:
  1326. if clicked block is {@guild.item}:
  1327. cancel event
  1328. on break of {@guild.item}:
  1329. cancel event
  1330.  
  1331. # ====================== WIADOMOSCI PO WEJSCIU DO GILDII + INTRUZ (nie dziala nadal ;-;) ===========================
  1332. on anymove:
  1333. if {skGuilds::%player%::Gildia} is not set:
  1334. set {skGuilds::%player%::Gildia} to "&cBRAK DANYCH :("
  1335. if Region.getAt{location of player} is not set:
  1336. set {_guild} to "&cBRAK DANYCH :("
  1337. else:
  1338. set {_guild} to Region.getAt{location of player}
  1339. if {_guild} is not {skGuilds::%player%::Gildia}:
  1340. if {_guild} is "None" or "<none>" or "&cBRAK DANYCH :(":
  1341. set {_lider} to {skGuilds::Lider::%{skGuilds::%player%::Gildia}%}
  1342. send "{@tag} Wyszedles z terenu gildii &e%{skGuilds::%player%::Gildia}%" to player
  1343. send "{@tag} &4Intruz na terenie gildii! &c(%player%)" to {_lider}
  1344. else:
  1345. set {_lider} to {skGuilds::Lider::%{_guild}%}
  1346. send "{@tag} Wszedles na teren gildii &e%{_guild}%" to player
  1347. send "{@tag} &4Intruz na terenie gildii! &c(%player%)" to {_lider}
  1348. set {skGuilds::%player%::Gildia} to {_guild}
  1349.  
  1350. # ====================== NISZCZENIE OBSYDIANU :) ===========================
  1351. # COMING SOON
  1352.  
  1353.  
  1354. # ====================== CHAT ===========================
  1355.  
  1356. on chat:
  1357. set {_chat} to {guild.chat}
  1358. {skGuilds::inGuild::%player%} is set:
  1359. set {_tag} to {skGuilds::inGuild::%player%}
  1360. {skGuilds::Lider::%{skGuilds::inGuild::%player%}%} is set:
  1361. set {_tag} to {skGuilds::inGuild::%player%}
  1362. if {_tag} is not set:
  1363. replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
  1364. replace all "{NICK}" with "%player%" in {_chat}
  1365. replace all "{MSG}" with "%message%" in {_chat}
  1366. replace all "{TAG}" with "" in {_chat}
  1367. replace all "Â" with "" in {_chat}
  1368. broadcast "%{_chat}%"
  1369. cancel event
  1370. stop
  1371. replace all "{RANK}" with "%{skGuilds::Ranking::%player%}%" in {_chat}
  1372. replace all "{NICK}" with "%player%" in {_chat}
  1373. replace all "{MSG}" with "%message%" in {_chat}
  1374. replace all "Â" with "" in {_chat}
  1375. replace all "{TAG}" with "{@guild.tagformat}" in {_chat}
  1376. broadcast "%{_chat}%"
  1377. cancel event
  1378. stop
  1379.  
  1380. # ====================== NISZCZENIE KLOCKOW ===========================
  1381. on break:
  1382. if player doesn't have permission "skguilds.admin":
  1383. if location of event-block is in any region:
  1384. set {_region} to Region.getAt{location of player};
  1385. if "%{_region}%" is "%{skGuilds::inGuild::%player%}%":
  1386. stop
  1387. else:
  1388. cancel event
  1389. send "&cTo jest teren innej gildi!"
  1390. stop
  1391.  
  1392. # ====================== STAWIANIE KLOCKOW ===========================
  1393. on place:
  1394. if player doesn't have permission "skguilds.admin":
  1395. if location of event-block is in any region:
  1396. set {_region} to Region.getAt{location of player};
  1397. if "%{_region}%" is "%{skGuilds::inGuild::%player%}%":
  1398. stop
  1399. else:
  1400. cancel event
  1401. send "&cTo jest teren innej gildi!"
  1402. stop
  1403.  
  1404. # ====================== PVP W GILDII ===========================
  1405. on damage of player:
  1406. if {skGuilds::inGuild::%attacker%} is set:
  1407. if {skGuilds::inGuild::%victim%} is set:
  1408. if {skGuilds::Czlonkowie::%{skGuilds::inGuild::%attacker%}%::*} contain victim:
  1409. if {skGuilds::PVP::%{skGuilds::inGuild::%attacker%}%} is false:
  1410. cancel event
  1411. show damage animation on victim but exclude self
  1412. show damage animation to victim
  1413. stop
  1414. if {skGuilds::Czlonkowie::%{skGuilds::inGuild::%victim%}%::*} contain attacker:
  1415. if {skGuilds::PVP::%{skGuilds::inGuild::%victim%}%} is false:
  1416. cancel event
  1417. stop
  1418. # ====================== RANKING / ON DEATH ===========================
  1419. on death:
  1420. if victim is a player:
  1421. if attacker is a player:
  1422. add 1 to {skGuilds::Zabojstwa::%attacker%}
  1423. add 1 to {skGuilds::Zgony::%victim%}
  1424. set {_agt} to {skGuilds::inGuild::%attacker%}
  1425. set {_vgt} to {skGuilds::inGuild::%victim%}
  1426. if {skGuilds::inGuild::%victim%} is set:
  1427. if {skGuilds::inGuild::%attacker%} is set:
  1428. set {_pktattacker} to random integer between 1 and 100
  1429. add {_pktattacker} to {skGuilds::GuildPoints::%{_agt}%}
  1430. add {_pktattacker} to {skGuilds::Ranking::%attacker%}
  1431. set {_pktvictim} to random integer between -1 and -50
  1432. add {_pktvictim} to {skGuilds::GuildPoints::%{_vgt}%}
  1433. add {_pktvictim} to {skGuilds::Ranking::%victim%}
  1434. set death message to "&cGracz %victim% [%{_vgt}%] zostal zabity przez %attacker% [%{_agt}%] (%{_pktattacker}%)"
  1435. stop
  1436. stop
  1437. if {skGuilds::inGuild::%attacker%} is set:
  1438. set {_pktattacker} to random integer between 1 and 100
  1439. add {_pktattacker} to {skGuilds::GuildPoints::%{_agt}%}
  1440. add {_pktattacker} to {skGuilds::Ranking::%attacker%}
  1441. set {_pktvictim} to random integer between -1 and -50
  1442. add {_pktvictim} to {skGuilds::Ranking::%victim%}
  1443. set death message to "&cGracz %victim% zostal zabity przez %attacker% [%{_agt}%] (%{_pktattacker}%)"
  1444. stop
  1445. if {skGuilds::inGuild::%victim%} is set:
  1446. set {_pktvictim} to random integer between -1 and -50
  1447. add {_pktvictim} to {skGuilds::GuildPoints::%{_vgt}%}
  1448. add {_pktvictim} to {skGuilds::Ranking::%victim%}
  1449. set {_pktattacker} to random integer between 1 and 100
  1450. add {_pktattacker} to {skGuilds::Ranking::%attacker%}
  1451. set death message to "&cGracz %victim% [%{_vgt}%] zostal zabity przez %attacker% (%{_pktattacker}%)"
  1452. stop
  1453. else:
  1454. set {_pktvictim} to random integer between -1 and -50
  1455. add {_pktvictim} to {skGuilds::Ranking::%victim%}
  1456. set {_pktattacker} to random integer between 1 and 100
  1457. add {_pktattacker} to {skGuilds::Ranking::%attacker%}
  1458. set death message to "&cGracz %victim% zostal zabity przez %attacker% (%{_pktattacker}%)"
  1459. else:
  1460. if attacker is a creeper or a zombie or a enderman or a spider or a ghast or a skeleton or a slime or a witch or a cave spider or a wolf or a zombie pigman or a blaze or a magma cube or a silverfish or a wither skeleton:
  1461. strike lightning effect at the player
  1462. add 1 to {skGuilds::Zgony::%victim%}
  1463. add -30 to {skGuilds::GuildPoints::%{_vgt}%}
  1464. add -30 to {skGuilds::Ranking::%victim%}
  1465. set death message to "{@tag} %victim% umarl..."
  1466. else:
  1467. strike lightning effect at the player
  1468. add 1 to {skGuilds::Zgony::%victim%}
  1469. add -30 to {skGuilds::GuildPoints::%{_vgt}%}
  1470. add -30 to {skGuilds::Ranking::%victim%}
  1471. set death message to "{@tag} %victim% umarl..."
  1472. # ====================== POTION SHOP ===========================
  1473. command /potionshop [<player>] [<text>]:
  1474. executable by: console
  1475. trigger:
  1476. if arg 1 is set:
  1477. if arg 2 is "1":
  1478. if player-arg has {@potion.shop.waterbreath}:
  1479. remove {@potion.shop.waterbreath} from the player-arg
  1480. apply water breathing to player-arg for 3 minutes
  1481. send "{@tag} Kupiles efekt: &9Oddychanie pod woda" to player-arg
  1482. else:
  1483. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1484. stop
  1485. if arg 2 is "2":
  1486. if player-arg has {@potion.shop.fireresistance}:
  1487. remove {@potion.shop.fireresistance} from the player-arg
  1488. apply fire resistance to player-arg for 3 minutes
  1489. send "{@tag} Kupiles efekt: &4Ochrona przed ogniem" to player-arg
  1490. else:
  1491. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1492. stop
  1493. if arg 2 is "3":
  1494. if player-arg has {@potion.shop.invisible}:
  1495. remove {@potion.shop.invisible} from the player-arg
  1496. apply invisibility to player-arg for 3 minutes
  1497. send "{@tag} Kupiles efekt: &bNiewidzialnosc" to player-arg
  1498. else:
  1499. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1500. stop
  1501. if arg 2 is "4":
  1502. if player-arg has {@potion.shop.strength}:
  1503. remove {@potion.shop.strength} from the player-arg
  1504. apply strength to player-arg for 3 minutes
  1505. send "{@tag} Kupiles efekt: &4Sila" to player-arg
  1506. else:
  1507. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1508. stop
  1509. if arg 2 is "5":
  1510. if player-arg has {@potion.shop.speed}:
  1511. remove {@potion.shop.speed} from the player-arg
  1512. apply speed to player-arg for 3 minutes
  1513. send "{@tag} Kupiles efekt: &bSzybkosc" to player-arg
  1514. else:
  1515. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1516. stop
  1517. if arg 2 is "6":
  1518. if player-arg has {@potion.shop.regeneration}:
  1519. remove {@potion.shop.regeneration} from the player-arg
  1520. apply regeneration to player-arg for 45 seconds
  1521. send "{@tag} Kupiles efekt: &dRegeneracja Zycia" to player-arg
  1522. else:
  1523. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1524. stop
  1525. if arg 2 is "7":
  1526. if player-arg has {@potion.shop.nightvision}:
  1527. remove {@potion.shop.nightvision} from the player-arg
  1528. apply night vision to player-arg for 3 minutes
  1529. send "{@tag} Kupiles efekt: &1Widzenie w ciemnosci" to player-arg
  1530. else:
  1531. send "{@tag} &cNie masz wymaganych przedmiotow!" to player-arg
  1532. stop
  1533.  
  1534.  
  1535.  
  1536. # ====================== ZAPISYWANIE/ODPISYWANIE ISTNIEJACEGO GRACZA ===========================
  1537. on join:
  1538. if {skGuilds::Gracze::*} contains player:
  1539. stop
  1540. else:
  1541. add player to {skGuilds::Gracze::*}
  1542. on quit:
  1543. remove player from {skGuilds::Gracze::*}
  1544. # ====================== FUNKCJE GRACZA ===========================
  1545. on first join:
  1546. set {skGuilds::Ranking::%player%} to 1000
  1547. set {skGuilds::Zgony::%player%} to 0
  1548. set {skGuilds::Zabojstwa::%player%} to 0
  1549. delete {skGuilds::inGuild::%player%}
  1550. send "{@tag} Ten serwer uzywa skryptu &eskGuilds&7 by &eAdamGrzegorz&7!" to player
  1551. stop
  1552. on join:
  1553. if {skGuilds::Ranking::%player%} is not set:
  1554. set {skGuilds::Ranking::%player%} to 1000
  1555. if {skGuilds::Zgony::%player%} is not set:
  1556. set {skGuilds::Zgony::%player%} to 0
  1557. if {skGuilds::Zabojstwa::%player%} is not set:
  1558. set {skGuilds::Zabojstwa::%player%} to 0
  1559. if {skGuilds::inGuild::%player%} is not set:
  1560. clear {skGuilds::inGuild::%player%}
  1561. set {skGuilds::LastJoin::%player%} to now
  1562. set {skGuilds::TPCooldown::%player%} to false
  1563. if {skGuilds::inGuild::%player%} is set:
  1564. edit tag of the player to "&6[&e%{skGuilds::inGuild::%player%}%&6] &e"
  1565. stop
  1566. on join:
  1567. set {skGuilds::Nick::%player%} to player
  1568. stop
  1569.  
  1570.  
  1571.  
  1572.  
  1573. #[] ===========================================================================[]
  1574. #[] ========================== KONIEC SKRYPTU =================================[]
  1575. #[] ===========================================================================[]
  1576. # (this) Script by AdamGrzegorz (c) skGuilds Copyright - All Rights Reserved
  1577. #[] ===========================================================================[]
  1578. #[] ===========================================================================[]
Advertisement
Add Comment
Please, Sign In to add comment