Guest User

Untitled

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