Advertisement
Guest User

/g dom

a guest
Apr 17th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.62 KB | None | 0 0
  1.  
  2.  
  3. # =======================================
  4. # === Konfiguracja ===
  5. #========================================
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. # =======================================
  13. # === Itemy na Gildie ===
  14. # =======================================
  15.  
  16. options:
  17. pay1: 64 diamond
  18. pay2: 64 emerald
  19. pay3: 64 golden apple
  20. pay4: 64 golden carrot
  21. pay5: 64 bookshelf
  22. pay6: 16 ender pearl
  23.  
  24. # =======================================
  25. # === Tekst Przy Ladowaniu Skryptu ===
  26. # =======================================
  27. on script load:
  28. send "===========================" to the console
  29. send "== MateuszP0L ==" to the console
  30. send "== Gildie ==" to the console
  31. send "===========================" to the console
  32.  
  33.  
  34.  
  35. # =======================================
  36. # === Kod Skryptu ===
  37. # =======================================
  38. command /gildia [<text>] [<text>] [<text>]:
  39. aliases: g
  40. permission: guild.default
  41. trigger:
  42. if arg 1 is not set:
  43. send "&l============================================="
  44. send "&3/gildia zaloz <nazwa> <tag> &2- Zaklada Gildie"
  45. send "&3/gildia usun &2- Usuwa Gildie"
  46. send "&3/gildia zapros <nick> &2- Zaprasza Gracza Do Gildii"
  47. send "&3/gildia wyrzuc <nick> &2- Wyrzuca Gracza Z Gildii"
  48. send "&3/gildia awansuj <nick> &2- Awansuje gracza na moderatora"
  49. send "&3/gildia degraduj <nick> &2- Degraduje moderatora na czlonka"
  50. send "&l============================================="
  51.  
  52. if arg 1 is "przeladuj":
  53. send "&2Rozpoczato przeladowywanie Guild..."
  54. execute console command "sk reload newguild"
  55. send "&2NewGuild przeladowano"
  56. stop
  57. if arg 1 is "itemy":
  58. send "&2Potrzebujesz: &c{@pay1}, {@pay2}, {@pay3}, {@pay4}, {@pay5}, {@pay6}"
  59. stop
  60. if arg 1 is "zaloz":
  61. if arg 2 is set:
  62. if arg 3 is set:
  63. if player has {@pay1}:
  64. if player has {@pay2}:
  65. if player has {@pay3}:
  66. if player has {@pay4}:
  67. if player has {@pay5}:
  68. if player has {@pay6}:
  69. if arg 2 is set:
  70. set {nazwa.%player%} to arg 2
  71. if arg 3 is set:
  72. set {tag.%player%} to arg 3
  73. send "&7 Zabezpieczenie &8- &aTworzenie ..."
  74. set {pos%player%} to location of player
  75. set {pos1%player%} to {pos%player%}
  76. send "&c&lNie ruszaj kamera przez 2 sekundy!"
  77. wait 1 second
  78. execute console command "pex user %player% add worldedit.*"
  79. execute console command "pex user %player% add worldguard.*"
  80. wait 1 tick
  81. execute player command "//pos1"
  82. execute player command "//pos2"
  83. execute player command "//expand 25 n"
  84. execute player command "//expand 24 s"
  85. execute player command "//expand 25 w"
  86. execute player command "//expand 24 e"
  87. execute player command "//expand vert"
  88. execute player command "rg define %name of player%"
  89. execute player command "rg addowner -w world %name of player% %name of player%"
  90. wait 1 tick
  91. execute console command "pex user %player% remove worldguard.*"
  92. execute console command "pex user %player% remove worldedit.*"
  93. set {owner%player%} to 1
  94. send ""
  95. send " "
  96. send " "
  97. send " "
  98. send " "
  99. send " "
  100. send " "
  101. send " "
  102. send " "
  103. send " "
  104. send " "
  105. send " "
  106. send " "
  107. send " "
  108. send " "
  109. send " "
  110. send "x"
  111. send ""
  112. send " "
  113. send " "
  114. send " "
  115. send " "
  116. send " "
  117. send " "
  118. send " "
  119. send " "
  120. send " "
  121. send " "
  122. send " "
  123. send " "
  124. send " "
  125. send " "
  126. send " "
  127. send ""
  128. send " "
  129. send " "
  130. send " "
  131. send " "
  132. send " "
  133. send " "
  134. send " "
  135. send " "
  136. send " "
  137. send " "
  138. send " "
  139. send " "
  140. send " "
  141. send " "
  142. send " "
  143. send "x"
  144. send ""
  145. send " "
  146. send " "
  147. send " "
  148. send " "
  149. send " "
  150. send " "
  151. send " "
  152. send " "
  153. send " "
  154. send " "
  155. send " "
  156. send " "
  157. send " "
  158. send " "
  159. send " "
  160. send ""
  161. send " "
  162. send " "
  163. send " "
  164. send " "
  165. send " "
  166. send " "
  167. send " "
  168. send " "
  169. send " "
  170. send " "
  171. send " "
  172. send " "
  173. send " "
  174. send " "
  175. send " "
  176. send "x"
  177. send ""
  178. send " "
  179. send " "
  180. send " "
  181. send " "
  182. send " "
  183. send " "
  184. send " "
  185. send " "
  186. send " "
  187. send " "
  188. send " "
  189. send " "
  190. send " "
  191. send " "
  192. send " "
  193.  
  194. send "Zabezpieczenie &8- &aStworzone ..."
  195. send "&8Dzialka ma rozmiary &c50 x 50."
  196. send "&8Wiecej informacji pod komenda &a&l/gildia&8."
  197. remove {@pay1} from player
  198. remove {@pay2} from player
  199. remove {@pay3} from player
  200. remove {@pay4} from player
  201. remove {@pay5} from player
  202. remove {@pay6} from player
  203. broadcast "&cGracz &6%player% &cZalozyl gildie o nazwie &3%{nazwa.%player%}% &c[&2%{tag.%player%}%]"
  204. set the player's display name to "&6[&c%{tag.%player%}%&6]&7 %name of player%"
  205. set the player's tablist name to "&c[%{tag.%player%}%]%name of player%"
  206. add 1 to {limit%player%}
  207. stop
  208. else:
  209. send "&cNie posiadasz {@pay6}"
  210. else:
  211. send "&cNie posiadasz {@pay5}"
  212. else:
  213. send "&cNie posiadasz {@pay4}"
  214. else:
  215. send "&cNie posiadasz {@pay3}"
  216. else:
  217. send "&c Nie posiadsz {@pay2}"
  218. else:
  219. send "&cNie posiadasz {@pay1}"
  220. if arg 3 is not set:
  221. send "&cPodaj tag gildii"
  222. if arg 2 is not set:
  223. send "&cPodaj nazwe gildii"
  224.  
  225.  
  226.  
  227. if arg 1 is "zapros":
  228. if {owner%player%} or {moderator%player%} is 1:
  229. if arg 2 is player:
  230. execute player command "rg addmember %arg 2%"
  231. send "&2Zaprosiles gracza &7%arg 2% do gildii"
  232. broadcast "&2Gracz &7%arg 2% &2zostal zaproszony do gildii &c%{nazwa.%player%}%"
  233. set the player's display name to "&6[&c%{tag.%player%}%&6]&7 %name of player%"
  234. set the player's tablist name to "&c[%{tag.%player%}%]%name of player%"
  235. set {czlonek%arg 2%%{nazwa%player%}%} to 1
  236. send {tag.%player%} to {tag.%arg 2%}
  237.  
  238. else:
  239. send "&cPodales bledny nick, lub gracz nie jest online"
  240. if arg 2 is not set:
  241. send "&cPodaj nick gracza"
  242. stop
  243. if arg 1 is "wyrzuc":
  244. if {owner%player%} or {moderator%player%} is 1:
  245. if arg 2 is player:
  246. execute player command "rg removemember %arg 2%"
  247. send "&2Wyrzuciles gracza &7%arg 2% &2z gildii"
  248. broadcast "&2Gracz &7%arg 2% &2zostal wyrzucony z gildii &c%{nazwa.%player%}%"
  249. set the player's display name to "&7%name of player%"
  250. set the player's tablist name to "&7%name of player%"
  251. set {czlonek%arg 2%%{nazwa%player%}%} to 0
  252. else:
  253. send "&cPodales bledny nick, lub gracz nie jest online"
  254. if arg 2 is not set:
  255. send "&cPodaj nick gracza"
  256. stop
  257. if arg 1 is "usun":
  258. if {owner%player%} is 1:
  259. execute console command "rg del %name of player%"
  260. send "&cUsunoles gildie"
  261. broadcast "&2Gracz &7%player% &2usunol gildie &c%{nazwa.%player%}%"
  262. broadcast "&2Koordy terenu usunietej gildii to &6%{pos1%player%}%"
  263. set the player's display name to "&7%name of player%"
  264. set the player's tablist name to "&7%name of player%"
  265. set {limit%player%} to 0
  266. set {owner%player%} to 0
  267. else:
  268. send "&cNie posiadasz gildii"
  269. stop
  270. if arg 1 is "awansuj":
  271. if {owner%player%} is 1:
  272. if arg 2 is player:
  273. set {moderator%arg 2%} to 1
  274. send "Awansowales %arg 2% na moderatora gildii"
  275. else:
  276. send "&cPodales bledny nick gracza, lub gracz nie jest online"
  277. if arg 2 is not set:
  278. send "&cPodaj nick gracza"
  279. else:
  280. send "&cNie jestes zalozycielem gildii"
  281. if arg 1 is "degraduj":
  282. if {owner%player%} is 1:
  283. if arg 2 is player:
  284. if {czlonek%arg 2%%{nazwa%player%}%} is 1:
  285. if {moderator%arg 2%} is 1:
  286. set {moderator%arg 2%} to 0
  287. send "&cDegradowales %arg 2% do rangi czlonka"
  288. else:
  289. send "&cGracz nie jest moderatorem gildii"
  290. else:
  291. send "&cGracz nie jest czlonkiem twojej gildi"
  292. else:
  293. send "&cPodales bledny nick gracza, lub gracz nie jest online"
  294. else:
  295. send "7cNie jestes zalozycielem gildii"
  296. if {owner%player%} is 0:
  297. send "&cNie posiadasz gildii"
  298. on command "/gildia zaloz":
  299. if {owner%player%} is 1:
  300. if {limit%player%} is 1:
  301. send "&cMasz juz jedna gilide"
  302. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement