Guest User

NewGuild v0.2

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