TheMrkoia

KGuilds!

Oct 21st, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.07 KB | None | 0 0
  1. # ===================================== #
  2. # Skript by TheMrkoia #
  3. # Name: KGuilds #
  4. # Version: 1.0 #
  5. # #
  6. # ===================================== #
  7. # Nie zezwalam na: #
  8. # * Usuwanie komendy dotyczącej autora #
  9. # * Zarabiania na skrypcie #
  10. # * Udostepnianie go bez mojej zgody #
  11. # * Podszywania sie pod autora #
  12. # * Przywlaszczania skryptu #
  13. # * Przerabiania skryptu #
  14. # ===================================== #
  15. # Zezwalam na: #
  16. # * Dopisywania fragmentow #
  17. # * Edycje wiadomosci na wlasne #
  18. # potrzeby #
  19. # ===================================== #
  20. # #
  21. # KORZYSTAJAC Z TEGO SKRYPTU #
  22. # AKCEPTUJESZ LICENJE UZYTKOWANIA! #
  23. # #
  24. # ===================================== #
  25.  
  26.  
  27.  
  28. options:
  29.  
  30. # ============================= #
  31. # #
  32. # GLOBAL #
  33. # #
  34. # ==============================#
  35.  
  36. # ====================== #
  37.  
  38. #Tag wyswietlany przed wiadomosciami:
  39. tag: &2[&4K&7Guilds&2]
  40.  
  41. #Nick gdy gracz nie ma gildii:
  42. nick.guilds.1: &7%player%
  43.  
  44. # ====================== #
  45.  
  46. # ============================= #
  47. # #
  48. # ITEMS #
  49. # #
  50. # ==============================#
  51.  
  52. # ====================== #
  53.  
  54. #Jakie itemy maja byc za gildie:
  55. #Wpisz "none" aby zostawić puste
  56. item1: 1 dirt
  57. item2: none
  58. item3: none
  59. item4: none
  60. item5: none
  61. item6: none
  62. item7: none
  63. item8: none
  64. item9: none
  65.  
  66. # ============================= #
  67. # #
  68. # END CONFIG #
  69. # #
  70. # ==============================#
  71.  
  72.  
  73. # ======================================================================== #
  74.  
  75. command /gildia [<text>] [<text>] [<text>]:
  76. aliases: g
  77. trigger:
  78. if arg 1 is not set:
  79. send "&7|================================|"
  80. send "&a/gildia zaloz <tag> <nazwa> - &fZaklada gildie"
  81. send "&a/gildia zapros <tag twojej gildii> <gracz> - &fZaprasza gracza do gildii"
  82. send "&a/gildia dolacz <tag> - &fDolacza do gildii"
  83. send "&a/gildia opusc <tag> - &fOpuszcza gildie"
  84. send "&a/gildia usun <tag> - &fUsuwa gildie"
  85. send "&a/gildia info <tag> - &fInformacje na temat danej gildii"
  86. send "&a/gildia dom <tag> - &fTeleportuje do domu gildii"
  87. send "&a/gildia ustawdom <tag> - &fUstawia dom gildii"
  88. send "&a/gildia lista - &fWszystkie gildie na serwerze"
  89. send "&a/gildia autor - &fInformacje o autorze"
  90. send "&7|================================|"
  91. stop
  92. if arg 1 is "autor":
  93. send "&7|=====================|"
  94. send "&6Autorem skryptu jest: &7TheMrkoia"
  95. send "&6Kanal YouTube: &7http://www.youtube.com/channel/UCo-oEah5lJ9UuYj9v58GdGg"
  96. send "&6Nazwa skryptu: &7 KGuilds"
  97. send "&7|=====================|"
  98. stop
  99.  
  100. if arg 1 is "ustawdom":
  101. if arg 2 is set:
  102. if arg 3 is not set:
  103. if {Gildie.%arg 2%.tag} is set:
  104. if {Gildie.%arg 2%.zalozyciel} is set:
  105. send "&6Dom gildii zostal ustawiony!"
  106. set {Gildie.%arg 2%.home} to location of player
  107. stop
  108. else:
  109. send "{@tag}&cTylko zalozyciel moze zmienic dom gildii!"
  110. stop
  111. else:
  112. send "{@tag}&cTaka gildia nie istnieje!"
  113. stop
  114. else:
  115. send "{@tag}&cPodaj tag gildii!"
  116. stop
  117.  
  118. if arg 1 is "dom":
  119. if arg 2 is set:
  120. if arg 3 is not set:
  121. if {Gildie.%arg 2%.tag} is set:
  122. if {Gildie.%arg 2%.home} is set:
  123. send "&6Teleportacja..."
  124. wait 1 seconds
  125. send "&65..."
  126. wait 1 seconds
  127. set {Gildie.%name of player%.ruch} to true
  128. if {Gildie.%name of player%.ruch} is true:
  129. send "&64..."
  130. wait 1 seconds
  131. if {Gildie.%name of player%.ruch} is true:
  132. send "&63..."
  133. wait 1 seconds
  134. if {Gildie.%name of player%.ruch} is true:
  135. send "&62..."
  136. wait 1 seconds
  137. if {Gildie.%name of player%.ruch} is true:
  138. send "&61..."
  139. wait 1 seconds
  140. if {Gildie.%name of player%.ruch} is true:
  141. send "&6Witaj w domu!"
  142. teleport player to {Gildie.%arg 2%.home}
  143. stop
  144. else:
  145. send "&cWykryto ruch! Teleportacja anulowana"
  146. stop
  147. else:
  148. send "&cWykryto ruch! Teleportacja anulowana"
  149. stop
  150. else:
  151. send "&cWykryto ruch! Teleportacja anulowana"
  152. stop
  153. else:
  154. send "&cWykryto ruch! Teleportacja anulowana"
  155. stop
  156. else:
  157. send "&cWykryto ruch! Teleportacja anulowana"
  158. stop
  159. else:
  160. send "&cNie ma ustawionego domu gildii!"
  161. stop
  162. else:
  163. send "&cTaka gildia nie istnieje!"
  164. stop
  165.  
  166. if arg 1 is "opusc":
  167. if arg 2 is set:
  168. if arg 3 is not set:
  169. if {Gildie.%arg 2%.tag} is set:
  170. if {Gildie.%arg 2%.gracz} is set:
  171. remove player from {Gildie.%arg 2%.gracz}
  172. clear {Gildie.%name of player%.chat}
  173. remove player from {Gildie.%arg 2%::*}
  174. broadcast "&6Gracz &7%player% &6wyszedl z gildii &7%arg 2%&6!"
  175. stop
  176. else:
  177. send "{@tag}&cNie jestes w zadnej gildii"
  178. stop
  179. if {Gildie.%arg 2%.zalozyciel} is set:
  180. send "{@tag}&cJestes zalozycielem gildii i nie mozesz wyjsc!"
  181. stop
  182. else:
  183. send "{@tag}&cTaka gildia nie istnieje!"
  184. stop
  185.  
  186. if arg 1 is "dolacz":
  187. if arg 2 is set:
  188. if arg 3 is not set:
  189. if {Gildie.%name of player%.addplayer} is true:
  190. if {Gildie.%arg 2%.tag} is set:
  191. set {Gildie.%name of player%.chat} to arg 2
  192. add player to {Gildie.%arg 2%::*}
  193. set {Gildie.%name of player%.gracz} to player
  194. broadcast "&6Gracz &7%player% &6doszedl do gildii: &7%arg 2%& 6!"
  195. stop
  196. else:
  197. send "{@tag}&cTaka gildia nie istnieje!"
  198. stop
  199. else:
  200. send "{@tag}&cNie zostales zaproszony do tej gildii!"
  201. stop
  202. else:
  203. send "{@tag}&cNie ma takiej komendy!"
  204. stop
  205. else:
  206. send "{@tag}&cPodaj tag gildii!"
  207. stop
  208.  
  209. if arg 1 is "zapros":
  210. if arg 2 is set:
  211. if arg 3 is set:
  212. if {Gildie.%arg 2%.zalozyciel} is set:
  213. set {Gildie.%arg 3%.addplayer} to true
  214. send "{@tag}&6Zaprosiles gracza &7%arg 3% &6do swojej gildii!"
  215. send "{@tag}&6Dostales zaproszenie do gildii: &7%arg 3%"
  216. stop
  217. else:
  218. send "{@tag}&cNie posiadasz gildii!"
  219. stop
  220. else:
  221. send "{@tag}&cPodaj tag twojej gildii!"
  222. stop
  223. else:
  224. send "{@tag}&cPodaj nick gracza!"
  225. stop
  226.  
  227. if arg 1 is "pomoc":
  228. if arg 2 is not set:
  229. if arg 3 is not set:
  230. send "&7|================================|"
  231. send "&6Aby zalozyc gildie potrzebujesz:"
  232. send "&7 * {@item1}"
  233. send "&7 * {@item2}"
  234. send "&7 * {@item3}"
  235. send "&7 * {@item4}"
  236. send "&7 * {@item5}"
  237. send "&7 * {@item6}"
  238. send "&7 * {@item7}"
  239. send "&7 * {@item8}"
  240. send "&7 * {@item9}"
  241. send "&7|================================|"
  242. stop
  243.  
  244. if arg 1 is "usun":
  245. if arg 2 is set:
  246. if arg 3 is not set:
  247. if player has permission "Gildie.*" or "Gildie.player" or "Gildie.usun":
  248. if {Gildie.%arg 2%.zalozyciel} is set:
  249. remove {Gildie.%arg 2%.tag} from {KGuild::*}
  250. clear {Gildie.%arg 2%.tag}
  251. clear {Gildie.%arg 2%.name}
  252. clear {Gildie.%arg 2%.kills}
  253. clear {Gildie.%arg 2%.deaths}
  254. clear {Gildie.%arg 2%.zalozyciel}
  255. clear {Gildie.%arg 2%.gracz}
  256. clear {Gildie.%name of player%.chat}
  257. broadcast "&6Gracz &7%player% &6Usunal gildie &7%arg 2%"
  258. stop
  259. else:
  260. send "{@tag}&cNie posiadasz gildii!"
  261. stop
  262. else:
  263. send "{@tag}&cNie masz uprawnien!"
  264. stop
  265. else:
  266. send "{@tag}&cNie ma takiej komendy!"
  267. stop
  268. else:
  269. send "{@tag}&cPodaj tag gildii!"
  270. stop
  271.  
  272. if arg 1 is "lista":
  273. if arg 2 is not set:
  274. if arg 3 is not set:
  275. if player has permission "Gildie.*" or "Gildie.player" or "Gildie.lista":
  276. send "&7|================================|"
  277. send "&6%{Gildie::*}%"
  278. send "&7|================================|"
  279. stop
  280. else:
  281. send "{@tag}&cNie masz uprawnien!"
  282. stop
  283. else:
  284. send "{@tag}&c}Nie ma takiej komendy!"
  285. stop
  286. else:
  287. send "{@tag}&cNie ma takiej komendy!"
  288. stop
  289.  
  290. if arg 1 is "info":
  291. if arg 2 is set:
  292. if arg 3 is not set:
  293. if {Gildie.%arg 2%.tag} is set:
  294. send "&7|==========================|"
  295. send "&6TAG gildii: &7%{Gildie.%arg 2%.tag}%"
  296. send "&6Zabojstwa: &7%{Gildie.%arg 2%.kills}%"
  297. send "&6Zginiecia: &7%{Gildie.%arg 2%.deaths}%"
  298. send "&6Zalozyciel: &7%{Gildie.%arg 2%.zalozyciel}%"
  299. send "&6Gracze w gildii: &7%{KGuilds.%arg 2%::*}%"
  300. send "&7|==========================|"
  301. else:
  302. send "{@tag}&cTaka gildia nie istnieje!"
  303. stop
  304. else:
  305. send "{@tag}&cPodaj tag gildii!"
  306. stop
  307.  
  308. if arg 1 is "zaloz":
  309. if arg 2 is set:
  310. if arg 3 is set:
  311. if player has permission "Gildie.*" or "Gildie.player" or "Gildie.zaloz":
  312. if player has {@item1}:
  313. if player has {@item2}:
  314. if player has {@item3}:
  315. if player has {@item4}:
  316. if player has {@item5}:
  317. if player has {@item6}:
  318. if player has {@item7}:
  319. if player has {@item8}:
  320. if player has {@item9}:
  321. if {Gildie.%arg 2%.tag} is not set:
  322. if {Gildie.%arg 3%.name} is not set:
  323. if {Gildie.%name of player%.gracz} is not set:
  324. if {Gildie.%name of player%.zalozyciel} is not set:
  325. remove {@item1} from player
  326. remove {@item2} from player
  327. remove {@item3} from player
  328. remove {@item4} from player
  329. remove {@item5} from player
  330. remove {@item6} from player
  331. remove {@item7} from player
  332. remove {@item8} from player
  333. remove {@item9} from player
  334. add arg 2 to {Gildie::*}
  335. set {Gildie.%arg 2%.home} to location of player
  336. set {Gildie.%arg 2%.tag} to arg 2
  337. set {Gildie.%arg 3%.name} to arg 3
  338. set {Gildie.%arg 2%.kills} to 0
  339. set {Gildie.%arg 2%.deaths} to 0
  340. set {Gildie.%arg 2%.zalozyciel} to player
  341. add player to {Gildie.%arg 2%::*}
  342. set {Gildie.%name of player%.chat} to arg 2
  343. broadcast "&6Gracz &7%player% &6zalozyl gildie pod nazwa:&7%arg 2% %arg 3%"
  344. stop
  345. else:
  346. send "{@tag}&cMasz juz gildie!"
  347. stop
  348. else:
  349. send "{@tag}&cJestes juz w gildii!"
  350. stop
  351. else:
  352. send "{@tag}&cGildia z ta nazwa juz istnieje!"
  353. stop
  354. else:
  355. send "{@tag}&cGidlia z tym tagiem juz istnieje!"
  356. stop
  357. else:
  358. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  359. stop
  360. else:
  361. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  362. stop
  363. else:
  364. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  365. stop
  366. else:
  367. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  368. stop
  369. else:
  370. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  371. stop
  372. else:
  373. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  374. stop
  375. else:
  376. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  377. stop
  378. else:
  379. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  380. stop
  381. else:
  382. send "{@tag}&cNie masz odpowiednich materialow! Wszystkie itemy na gildie pod komenda: /gildia pomoc!"
  383. stop
  384. else:
  385. send "{@tag}&cNie masz uprawnien!"
  386. stop
  387. else:
  388. send "{@tag}&cPodaj pelna nazwe gildii!"
  389. stop
  390. else:
  391. send "{@tag}&cPodaj tag gildii!"
  392. stop
  393.  
  394. on chat:
  395. if {Gildie.%name of player%.chat} is set:
  396. set player's display name to "&6%{Gildie.%name of player%.chat}% &7%player%"
  397. else:
  398. set player's display name to "{@nick.guilds.1}"
  399.  
  400. on any movement:
  401. if {Gildie.%name of player%.ruch} is true:
  402. set {Gildie.%name of player%.ruch} to false
  403.  
  404. on death:
  405. victim is player
  406. attacker is player:
  407. if {Gildie.%name of player%.chat} is set:
  408. add 1 to {Gildie.%{Gildie.%name of player%.chat}%.kills}
  409. stop
  410. else:
  411. if {Gildie.%name of player%.chat} is set:
  412. add 1 to {Gildie.%{Gildie.%name of player%.chat}%.deaths}
  413. stop
Advertisement
Add Comment
Please, Sign In to add comment