Guest User

NewGuild v0.2.1

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