BloodHead2001

Untitled

Oct 30th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.36 KB | None | 0 0
  1. #Autor: Twaq
  2. #Wersja: 1.0 Beta
  3. #Nazwa: TQGuilds
  4. #
  5. # ──────────────────────────────────────────────────────────────────────────────────────
  6. # ██████████████─██████──██████─██████████─██████─────────████████████───██████████████─
  7. # ██████████████-██████──██████──████████──██████─────────█████████████──██████████████─
  8. # ██████████████-██████──██████───██████───██████─────────██████████████─██████████████─
  9. # ██████─────────██████──██████───██████───██████─────────██████──██████─█████──────────
  10. # ██████─────────██████──██████───██████───██████─────────██████──██████─██████████████─
  11. # ██████──██████─██████──██████───██████───██████─────────██████──██████─██████████████─
  12. # ██████──██████─██████──██████───██████───██████─────────██████──██████─██████████████─
  13. # ██████──██████─██████──██████───██████───██████─────────██████──██████──────────█████─
  14. # ██████████████─██████████████───██████───██████████████─█████████████──██████████████─
  15. # ██████████████─██████████████──████████──██████████████─████████████───██████████████─
  16. # ██████████████─██████████████─██████████─██████████████─███████████────██████████████─
  17. # ──────────────────────────────────────────────────────────────────────────────────────
  18. # BY: Twaq
  19. options:
  20. #Itemy na gildie:
  21. item1: 64 diamonds
  22. item2: none
  23. item3: none
  24. item4: none
  25. item5: none
  26. item6: none
  27. item7: none
  28. item8: none
  29. #Opcje gildii:
  30. t: &2[Gildia]&7
  31. odleglosc_od_spawnu: 300 #Kratek
  32. wielkosc_cuboida: 50
  33.  
  34. command /zaloz [<text>] [<text>]:
  35. trigger:
  36. if arg 1 is not set:
  37. send "{@t} poprawne uzycie /zaloz <TAG> <NAZWA>"
  38. stop
  39. if {gildia.tag.%arg 1%} is true:
  40. send "{@t} Gildia o takim tagu juz jest zalozona!"
  41. stop
  42. if {gildia.%player%.owner} is true:
  43. send "{@t} Posiadasz juz gildie!"
  44. stop
  45. if {gildia.%player%.member} is true:
  46. send "{@t} Jestes juz w gildii!"
  47. stop
  48. if arg 1 is not empty:
  49. if arg 2 is not empty:
  50. player don't have {@item1}:
  51. send "&cNie posiadasz itemow na gildie!"
  52. stop
  53. player don't have {@item2}:
  54. send "&7Nie posiadasz {@item2}"
  55. stop
  56. player don't have {@item3}:
  57. send "&7Nie posiadasz {@item3}"
  58. stop
  59. player don't have {@item4}:
  60. send "&7Nie posiadasz {@item4}"
  61. stop
  62. player don't have {@item5}:
  63. send "&7Nie posiadasz {@item5}"
  64. stop
  65. player don't have {@item6}:
  66. send "&7Nie posiadasz {@item6}"
  67. stop
  68. player don't have {@item7}:
  69. send "&7Nie posiadasz {@item7}"
  70. stop
  71. player don't have {@item8}:
  72. send "&7Nie posiadasz {@item8}"
  73. stop
  74. player cannot build at block under player:
  75. send "&CJestes zbyt blisko innej gildii!"
  76. stop
  77. player cannot build at block 100 meters northwest:
  78. send "&CJestes zbyt blisko innej gildii!"
  79. stop
  80. player cannot build at block 100 meters north:
  81. send "&CJestes zbyt blisko innej gildii!"
  82. stop
  83. player cannot build at block 100 meters northeast:
  84. send "&CJestes zbyt blisko innej gildii!"
  85. stop
  86. player cannot build at block 100 meters west:
  87. send "&CJestes zbyt blisko innej gildii!"
  88. stop
  89. player cannot build at block 100 meters east:
  90. send "&CJestes zbyt blisko innej gildii!"
  91. stop
  92. player cannot build at block 100 meters southwest:
  93. send "&CJestes zbyt blisko innej gildii!"
  94. stop
  95. player cannot build at block 100 meters south:
  96. send "&CJestes zbyt blisko innej gildii!"
  97. stop
  98. player cannot build at block 100 meters southeast:
  99. send "&4Teren na poludniowy wschod jest zajety"
  100. stop
  101. if distance between {spawn} and location of player is greater than {@odleglosc_od_spawnu}:
  102. execute console command "pex user %player% add *"
  103. wait 1 tick
  104. execute player command "//pos1"
  105. execute player command "//pos2"
  106. execute player command "//expand {@wielkosc_cuboida} w"
  107. execute player command "//expand {@wielkosc_cuboida} n"
  108. wait 1 tick
  109. execute player command "//expand {@wielkosc_cuboida} e"
  110. execute player command "//expand {@wielkosc_cuboida} s"
  111. execute player command "//expand vert"
  112. execute player command "region define gildia-%arg 1%"
  113. execute player command "rg flag gildia-%arg 1% greeting &6** &7Wchodzisz na teren gildii: %arg 1% %arg 2% &6**"
  114. execute player command "rg flag gildia-%arg 1% farewell &6** &7Opuszczasz teren gildii: %arg 1% %arg 2% &6**"
  115. wait 1 tick
  116. execute player command "region addowner gildia-%arg 1% %name of player%"
  117. execute player command "rg flag %arg 1% blocked-cmds zaloz"
  118. loop 98 times:
  119. send ""
  120. send "&5Zalozyles gildie :)!"
  121. set block under the player to bedrock
  122. set {gildia.tag.%name of player%} to arg 1
  123. set {gildia.%name of player%.owner} to true
  124. set {gildia.home.%arg 1%} to location of player
  125. loop all players:
  126. display "&aGracz %name of player% Zalozyl gildie: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
  127. set {gildia.%name of player%} to true
  128.  
  129. set {_cos} to "%{gildia.tag.%name of player%}%"
  130. add player to {gildia.ownerklanu.%{_cos}%::*}
  131. add arg 1 to {listagildii::*}
  132. edit tag of player to "&7[&c%{gildia.tag.%name of player%}%&7] "
  133. remove {@item1} from the player's inventory
  134. remove {@item2} from the player's inventory
  135. remove {@item3} from the player's inventory
  136. remove {@item4} from the player's inventory
  137. remove {@item5} from the player's inventory
  138. remove {@item6} from the player's inventory
  139. remove {@item7} from the player's inventory
  140. remove {@item8} from the player's inventory
  141. set {gildia.tag.%arg 1%} to true
  142. wait 2 tick
  143. set {baza.%arg 1%} to true
  144. execute console command "pex user %player% remove *"
  145. else:
  146. send "&6Zbyt blisko spawnu!"
  147.  
  148. command /baza:
  149. trigger:
  150. if {baza.%{gildia.tag.%name of player%}%} is true:
  151. send "&5Za 5 sekund zostaniesz przeteleportowany do bazy gildii!"
  152. set {tpg.%name of player%} to true
  153. apply slowness 500 to the player for 6 seconds
  154. apply Mining Fatigue 10 to the player for 6 seconds
  155. wait 5 real second
  156. set {tpg.%name of player%} to false
  157. teleport player to {gildia.home.%{gildia.tag.%name of player%}%}
  158. send "&7Zostales przeteleportowany do bazy!"
  159. stop
  160. send "&cNie posiadasz gildii!"
  161. stop
  162.  
  163. command /zamknij:
  164. trigger:
  165. if {gildia.%name of player%.owner} is true:
  166. set {_tag} to {gildia.tag.%name of player%}
  167. loop {czlonkowie.%{_tag}%::*}:
  168. edit tag of loop-value to ""
  169. delete {gildia.tag.%loop-value%}
  170. set {gildia.%loop-value%.member} to false
  171. execute console command "pex user %name of player% add worldguard.*"
  172. execute player command "rg remove gildia-%{gildia.tag.%player%}%"
  173. execute console command "pex user %name of player% remove worldguard.*"
  174. loop all players:
  175. display "&aGracz %name of player% Zamknol gildie: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
  176. set {gildia.tag.%{gildia.tag.%name of player%}%} to false
  177. wait 1 tick
  178. set {baza.%{gildia.tag.%name of player%}%} to false
  179. set {gildia.tag.%name of player%} to ""
  180. set {gildia.%player%.owner} to false
  181. set {gildia.%name of player%.tagg} to false
  182. edit tag of player to ""
  183.  
  184. command /zapros [<player>]:
  185. trigger:
  186. if arg 1 is not set:
  187. send "&6Poprawne uzycie &a/zapros <nick>"
  188. else:
  189. if {gildia.%name of player%.owner} is true:
  190. send "&2Zaproszono cie do gildi %{gildia.tag.%name of player%}% wpisz &6/dolacz %{gildia.tag.%name of player%}% &7baby dolaczyc" to arg player
  191. send "&2Zaproszono gracza %arg player% do gildii"
  192. set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to true
  193. wait 180 seconds
  194. set {gildia.zapro.%arg player%.%{gildia.tag.%name of player%}%} to false
  195. send "&cZAPROSZENIE ZOSTALO ANULOWANE Z POWODU DLUGIEGO OCZEKIWANIA!" to arg player
  196.  
  197. command /dolacz [<text>]:
  198. trigger:
  199. if arg 1 is not set:
  200. send "&6Porawne uzycie &b/dolacz <tag gildii>"
  201. else:
  202. if {gildia.%name of player%.owner} is true:
  203. send "&4Posiadasz juz gildie!"
  204. if {gildie.%name of player%.member} is true:
  205. send "&4Jestes juz w gildii!"
  206. stop
  207. if {gildia.zapro.%name of player%.%arg 1%} is true:
  208. set {gildia.tag.%name of player%} to arg 1
  209. set {gildia.%name of player%.member} to true
  210. execute console command "pex user %name of player% add worldguard.*"
  211. execute player command "rg addmember gildia-%{gildia.tag.%name of player%}% %player%"
  212. execute console command "pex user %name of player% remove worldguard.*"
  213. remove 24 diamonds from the player's inventory
  214. add player to {czlonkowie.%arg 1%::*}
  215. add player to {members.%{gildia.tag.%name of player%}%::*}
  216. edit tag of player to "&7[&c%{gildia.tag.%name of player%}%&7] "
  217. loop all players:
  218. display "&aGracz %name of player% Dolaczyl do gildii: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
  219. stop
  220. send "&6Nie masz zaproszenia do gildii %arg 1%"
  221.  
  222. command /opusc:
  223. trigger:
  224. if {gildia.%name of player%.owner} is true:
  225. send "&4Masz juz gildie!"
  226. else:
  227. set {gildia.%name of player%.member} to false
  228. execute console command "pex user %name of player% add worldguard.*"
  229. execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %player%"
  230. execute console command "pex user %name of player% remove worldguard.*"
  231. set {gildia.tag.%name of player%} to ""
  232. edit tag of player to ""
  233. loop all players:
  234. display "&aGracz %name of player% Opuscil gildiec%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
  235.  
  236. command /wyrzuc [<player>]:
  237. trigger:
  238. if arg 1 is not set:
  239. send "&6Poprawne uzycie &b/wyrzuc <nick>"
  240. else:
  241. if {gildia.%name of player%.owner} is true:
  242. if {gildia.tag.%name of player%} is {gildia.tag.%arg player%}:
  243. if {gildia.%arg player%.owner} is true:
  244. send "&cNie mozesz wyrzucic siebie sam."
  245. stop
  246. execute console command "pex user %name of player% add worldguard.*"
  247. execute player command "rg removemember gildia-%{gildia.tag.%name of player%}% %arg player%"
  248. execute console command "pex user %name of player% remove worldguard.*"
  249. set {gildia.%arg player%.member} to false
  250. edit tag of player to ""
  251. loop all players:
  252. display "&aGracz %name of player% Zostal wyrzucony z gildii: &o%{gildia.tag.%name of player%}%" on bossbar with 100 percent by 20 seconds for loop-player
  253.  
  254. command /ustawbaza:
  255. trigger:
  256. if {gildia.%name of player%.owner} is true:
  257. set {gildia.home.%{gildia.tag.%name of player%}%} to location of player
  258. send "&2[Gildia] &7ustawiles baze gildii!"
  259. set {gildia.%name of player%.tagg} to true
  260. else:
  261. send "&6Nie jestes zalozycielem nie mozesz przestawiac bazy!"
  262.  
  263. command /gildia:
  264. aliases: f, g, guild, guilds
  265. trigger:
  266. send "&6<-------------------- &2[Gildie] &6-------------------->"
  267. send "&9/zaloz <tag> <nazwa> &7- Zakladasz gildie"
  268. send "&9/wyrzuc <nick> &7- Wywalasz wybrana osobe z gildii"
  269. send "&9/zapros <nick> &7- Zapraszasz wybrana osobe do gildii"
  270. send "&9/ginfo <tag> &7- Informacje o wybranej gildii"
  271. send "&9/dolacz <tag> &7- Dolaczasz do wybranej gildii"
  272. send "&9/setbaza &7- Ustawiasz baze gildii w miejscu stania"
  273. send "&9/baza &7- Teleport Do Gildii"
  274. send "&9/opusc &7- Opuszczasz Gildie"
  275. send "&9/zamknij &7- Usuwasz swoja gildie"
  276. send "&6<-------------------- &2[Gildie] &6-------------------->"
  277.  
  278. command /ginfo [<text>]:
  279. trigger:
  280. if arg 1 is not set:
  281. send "&6Poprawne uzycie &a/ginfo <TAG GILDII>"
  282. else:
  283. if size of {members.%arg 1%::*} is 0:
  284. send "&6Czlonkowie: &cBrak"
  285. send "&6Zalozona przez : %{gildia.ownerklanu.%arg 1%::*}%"
  286. stop
  287. send "&6Czlonkowie: &a%{members.%arg 1%::*}%"
  288. send "&6Gildia - &9%arg 1%"
  289. send "&6Zalozona przez : %{gildia.ownerklanu.%arg 1%::*}%"
Advertisement
Add Comment
Please, Sign In to add comment