patison234

PVPGuild 1.5

Jul 3rd, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.35 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by Patek #
  3. # Name: PVPGuild #
  4. # Version: 1.5 #
  5. # Skript: 2.1/2.1.2 #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. # Licencja PVPGuild by Patek! #
  12. # + Nie zezwalam na: #
  13. # - Usuwanie tresci o autorze! #
  14. # - Udostepnaniu skryptu innym! #
  15. # - Podszywanie sie pod autora! #
  16. # - Uzywanie kodu skryptu w swoich skryptach! #
  17. # - Zarabianie na skrypcie! #
  18. # + Zezwalam na: #
  19. # - Dodawanie kodu na swoja potrzebe! #
  20. # - Modyfikowanie wiadomosci! #
  21. #=============================================#
  22. options:
  23. tag: &7[&4PVP&8Guild&7]
  24.  
  25. on load:
  26. send "&7[&4PVP&8Guild&7] PVPGuild &aEnabled!" to console
  27. send "&7[&4PVP&8Guild&7] PVPGuild by Patek" to console
  28.  
  29. command /pvpguild [<text>] [<text>] [<text>]:
  30. aliases: g, guild, gildia
  31. trigger:
  32. if arg 1 is not set:
  33. send "&8========&6PVPGuild&8========"
  34. send "&e/gildia &a- &7Wszystkie komendy dla gildi!"
  35. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  36. send "&e/gildia usun &a- &7Usuwa gildie!"
  37. send "&e/gildia info [Nazwa] &a- &7Informacje o gildi!"
  38. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildi!"
  39. send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildi!"
  40. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildi!"
  41. stop
  42. if arg 1 is "pomoc" or "help" or "?":
  43. send "&8========&6PVPGuild&8========"
  44. send "&e/gildia &a- &7Wszystkie komendy dla gildi!"
  45. send "&e/gildia stworz [TAG] [Nazwa] &a- &7Tworzy gildie!"
  46. send "&e/gildia usun &a- &7Usuwa gildie!"
  47. send "&e/gildia info [Nazwa] &a- &7Informacje o gildi!"
  48. send "&e/gildia zapros [Nick] &a- &7Zaprasza gracza do gildi!"
  49. send "&e/gildia wypros [Nick] &a- &7Usuwa gracza z gildi!"
  50. send "&e/gildia oficer [Nick] &a- &7Nadaje oficera gildi!"
  51. stop
  52. if arg 1 is "stworz" or "create" or "c":
  53. if player has permission "pvpguild.create" or "pvpguild.admin" or "pvpguild.gracz":
  54. if {pvpguild.guild::%arg 3%} is not set:
  55. if {pvpguild.inguild::%name of player%} is not set:
  56. if arg 2 is set:
  57. if length of argument 2 is smaller than 5:
  58. if arg 3 is set:
  59. if length of arg 3 is smaller than 21:
  60. set {pvpguild.guild::%arg 3%} to true
  61. set {pvpguild.%arg 3%.lider} to "%name of player%"
  62. set {pvpguild.%arg 3%.tag} to "%arg 2%"
  63. set {pvpguild.inguild::%name of player%} to "%arg 3%"
  64. add "%arg 2%" to {pvpguild.taglist::*}
  65. add "%arg 3%" to {pvpguild.guildlist::*}
  66. broadcast "{@tag} &7%name of player% &aUtworzyÂł gildie o nazwie &9%arg 3% &a i tagu &9%arg 2%"
  67. stop
  68. send "{@tag} &cNazwa gildi nie moze miec wiecej niz 20 znakow!"
  69. stop
  70. send "{@tag} &cPodaj nazwe swojej gildi!"
  71. stop
  72. send "{@tag} &cTag gildi nie moze miec wiecej niz 4 znaki!"
  73. stop
  74. send "{@tag} &cPodaj tag gildi!"
  75. stop
  76. send "{@tag} &cAby zalozyc gildie najpierw musisz oposcic aktualna!"
  77. stop
  78. send "{@tag} &cTaka gildia juz istnieje!"
  79. stop
  80. send "{@tag} &cNie masz uprwanien do tej komendy!"
  81. stop
  82. if arg 1 is "info" or "informacje" or "i":
  83. if player has permission "pvpguild.info" or "pvpguild.admin" or "pvpguild.gracz":
  84. if arg 2 is set:
  85. if {pvpguild.guild::%arg 2%} is set:
  86. if {pvpguild.%arg 2%.members::*} is set:
  87. if {pvpguild.%arg 2%.oficers::*} is set:
  88. send "&7Nazwa gildi: &9%arg 2%"
  89. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  90. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  91. send "&7Oficerowie gildi: &9%{pvpguild.%arg 2%.oficers::*}%"
  92. send "&7Czlonkowie gildi: &9%{pvpguild.%arg 2%.members::*}%"
  93. stop
  94. send "&7Nazwa gildi: &9%arg 2%"
  95. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  96. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  97. send "&7Oficerowie gildi: &9Brak"
  98. send "&7Czlonkowie gildi: &9%{pvpguild.%arg 2%.members::*}%"
  99. stop
  100. send "&7Nazwa gildi: &9%arg 2%"
  101. send "&7Tag gildi: &9%{pvpguild.%arg 2%.tag}%"
  102. send "&7Lider gildi: &9%{pvpguild.%arg 2%.lider}%"
  103. send "&7Oficerowie gildi: &9Brak"
  104. send "&7Czlonkowie gildi: &9Brak"
  105. stop
  106. send "{@tag} &cTaka gildia nie istnieje!"
  107. stop
  108. else:
  109. if {pvpguild.inguild::%name of player%} is set:
  110. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is set:
  111. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is set:
  112. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  113. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  114. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  115. send "&7Oficerowie gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}%"
  116. send "&7Czlonkowie gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}%"
  117. stop
  118. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  119. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  120. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  121. send "&7Oficerowie gildi: &9Brak"
  122. send "&7Czlonkowie gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}%"
  123. stop
  124. send "&7Nazwa gildi: &9%{pvpguild.inguild::%name of player%}%"
  125. send "&7Tag gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  126. send "&7Lider gildi: &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.lider}%"
  127. send "&7Oficerowie gildi: &9Brak"
  128. send "&7Czlonkowie gildi: &9Brak"
  129. stop
  130. send "{@tag} &cNie posiadasz gildi!"
  131. stop
  132. send "{@tag} &cNie masz uprwanien do tej komendy!"
  133. stop
  134. if arg 1 is "usun" or "delete" or "u":
  135. if player has permission "pvpguild.delete" or "pvpguild.admin" or "pvpguild.gracz":
  136. if {pvpguild.inguild::%name of player%} is set:
  137. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  138. remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  139. remove "%{pvpguild.inguild::%name of player%}%" from {pvpguild.guildlist::*}
  140. broadcast "{@tag} &7%name of player% &aUsunal gildie o nazwie &9%{pvpguild.inguild::%name of player%}% &a i tagu &9%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%"
  141. clear {pvpguild.guild::%{pvpguild.inguild::%name of player%}%}
  142. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.lider}
  143. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.tag}
  144. remove "%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%" from {pvpguild.taglist::*}
  145. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is greater than 0:
  146. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  147. clear {pvpguild.inguild::%loop-value%}
  148. remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  149. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} is greater than 0:
  150. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}:
  151. clear {pvpguild.inguild::%loop-value%}
  152. remove "%loop-value%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  153. clear {pvpguild.inguild::%name of player%}
  154. stop
  155. send "{@tag} &cTylko lider gildi moze tego uzywac!"
  156. stop
  157. send "{@tag} &cNie posiadasz gildi!"
  158. stop
  159. send "{@tag} &cNie masz uprwanien do tej komendy!"
  160. stop
  161. if arg 1 is "list" or "lista" or "l":
  162. if player has permission "pvpguild.list" or "pvpguild.admin" or "pvpguild.gracz":
  163. set {_strona} to arg 2 parsed as number
  164. if {_strona} is not set:
  165. set {_strona} to 1
  166. set {_liczbawpisow} to size of {pvpguild.guildlist::*}
  167. set {_liczba-stron} to ceil({_liczbawpisow}/10)
  168. if {_liczba-stron} is smaller than 1:
  169. set {_liczba-stron} to 1
  170. if {_strona} is smaller than 1:
  171. send "{@tag} &cNie ma takiej strony!"
  172. stop
  173. if {_strona} is greater than {_liczba-stron}:
  174. send "{@tag} &cNie ma takiej strony!"
  175. stop
  176. if size of {pvpguild.guildlist::*} is smaller than 1:
  177. send "{@tag} &cBrak gildi!"
  178. stop
  179. loop {pvpguild.guildlist::*}:
  180. add loop-value to {_pvpguild.guildlist::*}
  181. loop {pvpguild.taglist::*}:
  182. add loop-value to {_pvpguild.taglist::*}
  183. send "&8Lista gildii: &2%{_strona}%&6/&2%{_liczba-stron}%"
  184. loop {_liczbawpisow} times:
  185. set {_lista} to ({_strona}-1)*10
  186. add loop-number to {_lista}
  187. if {_pvpguild.guildlist::%{_lista}%} is not set:
  188. stop
  189. if loop-number is 11:
  190. stop
  191. send "&8%{_lista}%. &4%{_pvpguild.guildlist::%{_lista}%}% &7[&9%{_pvpguild.taglist::%{_lista}%}%&7]"
  192. stop
  193. send "{@tag} &cNie masz uprawnien do tej komendy!"
  194. stop
  195. if arg 1 is "invite" or "zapros" or "inv":
  196. if player has permission "pvpguild.invite" or "pvpguild.admin" or "pvpguild.gracz":
  197. if {pvpguild.inguild::%name of player%} is set:
  198. if arg 2 is set:
  199. set {_player} to arg 2 parsed as player
  200. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  201. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  202. send "&8===================================================" to {_player}
  203. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  204. send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  205. send "&8===================================================" to {_player}
  206. send "&8==================================================="
  207. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  208. send "&8==================================================="
  209. wait 1 minute
  210. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  211. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  212. stop
  213. stop
  214. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  215. set {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%} to true
  216. send "&8===================================================" to {_player}
  217. send "&eGildia &a%{pvpguild.inguild::%name of player%}% &e wysyla ci zaproszenie" to {_player}
  218. send "&eWpisz &a/g accept %{pvpguild.inguild::%name of player%}% &eaby zaakceptowac!" to {_player}
  219. send "&8===================================================" to {_player}
  220. send "&8==================================================="
  221. send "&eZaproszenie zostalo wyslane do &a%{_player}%"
  222. send "&8==================================================="
  223. wait 1 minute
  224. if {pvpguild.inguild::%{_player}%} is not {pvpguild.inguild::%name of player%}:
  225. clear {invite.%{pvpguild.inguild::%name of player%}%.%{_player}%}
  226. stop
  227. stop
  228. send "{@tag} &cTylko lider/oficer moze zapraszac do gildi!"
  229. stop
  230. send "{@tag} &cPodaj nick gracza!"
  231. stop
  232. send "{@tag} Musisz być w gildi!"
  233. stop
  234. send "{@tag} &cNie masz uprawnien do tej komendy!"
  235. stop
  236. if arg 1 is "accept" or "akceptuj" or "acpt":
  237. if player has permission "pvpguild.accept" or "pvpguild.admin" or "pvpguild.gracz":
  238. if {pvpguild.inguild::%name of player%} isn't set:
  239. if arg 2 is set:
  240. if {pvpguild.guild::%arg 2%} is true:
  241. if {invite.%arg 2%.%name of player%} is true:
  242. set {pvpguild.inguild::%name of player%} to "%arg 2%"
  243. clear {invite.%arg 2%.%name of player%}
  244. add "%name of player%" to {pvpguild.%arg 2%.members::*}
  245. broadcast "{@tag} &7%player% &aDolaczyl do gildi &9%arg 2%"
  246. stop
  247. send "{@tag} &cNie masz zaproszenia od tej gildi!"
  248. stop
  249. send "{@tag} &cTaka gildia nie istnieje!"
  250. stop
  251. send "{@tag} &cPodaj nazwe gildi!"
  252. stop
  253. send "{@tag} &cNajpierw opusc gildie!"
  254. stop
  255. send "{@tag} &cNie masz uprawnien do tej komendy!"
  256. stop
  257. if arg 1 is "opusc" or "leave" or "lv":
  258. if player has permission "pvpguild.leave" or "pvpguild.admin" or "pvpguild.gracz":
  259. if {pvpguild.inguild::%name of player%} is set:
  260. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  261. send "{@tag} &cLider nie moze opuscic klanu! Uzyj: &4/g usun"
  262. stop
  263. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  264. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  265. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  266. broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  267. clear {pvpguild.inguild::%name of player%}
  268. stop
  269. remove "%player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  270. broadcast "{@tag} &7%player% &aOpuscil gildie &9%{pvpguild.inguild::%name of player%}%"
  271. clear {pvpguild.inguild::%name of player%}
  272. stop
  273. send "{@tag} &cNie masz gildi!"
  274. stop
  275. send "{@tag} &cNie masz uprawnien do tej komendy!"
  276. stop
  277. if arg 1 is "wyrzuc" or "kick" or "idz":
  278. if player has permission "pvpguild.kick" or "pvpguild.admin" or "pvpguild.gracz":
  279. if {pvpguild.inguild::%name of player%} is set:
  280. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  281. if arg 2 is set:
  282. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  283. loop-value is argument 2:
  284. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer} is loop-value:
  285. clear {pvpguild.%{pvpguild.inguild::%name of player%}%.%argument 2 parsed as offline player%.oficer}
  286. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  287. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  288. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  289. broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  290. stop
  291. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  292. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  293. broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  294. stop
  295. send "{@tag} &cTen gracz nie jest w naszej gildi!"
  296. stop
  297. send "{@tag} &cPodaj nick gracza!"
  298. stop
  299. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%name of player%.oficer} is player:
  300. if arg 2 is set:
  301. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  302. loop-value is argument 2 parsed as offline player:
  303. loop-value is not {pvpguild.%{pvpguild.inguild::%name of player%}%.%loop-value%.oficer}:
  304. clear {pvpguild.inguild::%name of argument 2 parsed as offline player%}
  305. remove "%argument 2 parsed as player%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}
  306. broadcast "{@tag} &7%arg 2% &aZostal wyzucony z gildi &9%{pvpguild.inguild::%name of player%}% &a przez &c%player%"
  307. stop
  308. send "{@tag} &cNie mozesz wyrzucic oficera gildi!"
  309. stop
  310. send "{@tag} &cTen gracz nie jest w naszej gildi!"
  311. stop
  312. send "{@tag} &cPodaj nick gracza!"
  313. stop
  314. send "{@tag} &cTylko lider/oficer gildi może wyrzucac graczy!"
  315. stop
  316. send "{@tag} &cNie masz gildi!"
  317. stop
  318. send "{@tag} &cNie masz uprwanien do tej komendy!"
  319. stop
  320. if arg 1 is "chat":
  321. if player has permission "pvpguild.chat" or "pvpguild.admin" or "pvpguild.gracz":
  322. if {pvpguild.inguild::%name of player%} is set:
  323. if arg 2 is set:
  324. if {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*} contain player:
  325. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  326. set {_p} to loop-value parsed as player
  327. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  328. if arg 3 is set:
  329. set {_} to coloured arg 3
  330. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  331. send "&2Guild >> &e*&7%player%: &f%coloured argument 2% %{_}%" to {_l}
  332. stop
  333. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain player:
  334. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  335. set {_p} to loop-value parsed as player
  336. set {_l} to {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} parsed as player
  337. set {_} to ""
  338. if arg 3 is set:
  339. set {_} to coloured arg 3
  340. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_p}
  341. send "&2Guild >> &7%player%: &f%coloured argument 2% %{_}%" to {_l}
  342. stop
  343. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  344. if size of {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} is bigger than 0:
  345. loop {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*}:
  346. set {_p} to loop-value parsed as player
  347. set {_} to ""
  348. if arg 3 is set:
  349. set {_} to coloured arg 3
  350. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to {_p}
  351. send "&2Guild >> &e**&7%player%: &f%coloured argument 2% %{_}%" to player
  352. stop
  353. send "{@tag} &cW twojej gildi jest za malo czlonkow by wyslac wiadomosc!"
  354. stop
  355. send "{@tag} &cPodaj wiadomosc!"
  356. stop
  357. send "{@tag} &cMusisz byc w gildi!"
  358. stop
  359. send "{@tag} &cNie masz uprwanien do tej komendy!"
  360. stop
  361. if arg 1 is "oficer":
  362. if player has permission "pvpguild.oficer" or "pvpguild.admin" or "pvpguild.gracz":
  363. if {pvpguild.inguild::%name of player%} is set:
  364. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  365. if arg 2 is set:
  366. set {_p} to arg 2 parsed as player
  367. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  368. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  369. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is not set:
  370. add "%{_p}%" to {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  371. set {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} to {_p}
  372. send "{@tag} &aGracz &6%{_p}% &ajest oficerem naszej gildi!"
  373. stop
  374. send "{@tag} &cTen gracz jest juz oficerem!"
  375. stop
  376. send "{@tag} &cTen gracz nie jest w naszej gildi!"
  377. stop
  378. send "{@tag} &cLider nie moze zostac oficerem!"
  379. stop
  380. send "{@tag} &cPodaj nick gracza!"
  381. stop
  382. send "{@tag} &cTylko lider moze mianowac graczy!"
  383. stop
  384. send "{@tag} &cNie jestes w gildi!"
  385. stop
  386. send "{@tag} &cNie masz uprwanien do tej komendy!"
  387. stop
  388. if arg 1 is "pvp":
  389. if player has permission "pvpguild.pvp" or "pvpguild.admin" or "pvpguild.gracz":
  390. if {pvpguild.inguild::%name of player%} is set:
  391. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  392. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is not set:
  393. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  394. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is false:
  395. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to true
  396. send "{@tag} &AWlaczyles pvp miedzy czlonkami gildii!"
  397. stop
  398. if {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} is true:
  399. set {pvpguild.%{pvpguild.inguild::%name of player%}%.pvp} to false
  400. send "{@tag} &AWylaczyles pvp miedzy czlonkami gildii!"
  401. stop
  402. stop
  403. send "{@tag} Tylko lider moze wylaczac pvp!"
  404. stop
  405. send "{@tag} &cNie posiadasz gildii!"
  406. stop
  407. send "{@tag} &cNie masz uprwanien do tej komendy!"
  408. stop
  409. if arg 1 is "degrad" or "degraduj":
  410. if player has permission "pvpguild.degrad" or "pvpguild.admin" or "pvpguild.gracz":
  411. if {pvpguild.inguild::%name of player%} is set:
  412. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is player:
  413. if arg 2 is set:
  414. set {_p} to arg 2 parsed as player
  415. if {pvpguild.%{pvpguild.inguild::%name of player%}%.lider} is not {_p}:
  416. if {pvpguild.%{pvpguild.inguild::%name of player%}%.members::*} contain {_p}:
  417. if {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer} is {_p}:
  418. remove "%{_p}%" from {pvpguild.%{pvpguild.inguild::%name of player%}%.oficers::*}
  419. delete {pvpguild.%{pvpguild.inguild::%name of player%}%.%{_p}%.oficer}
  420. send "{@tag} &aGracz &6%{_p}% &azostal zdegradowany z oficera naszej gildi!"
  421. stop
  422. send "{@tag} &cTen gracz nie jest oficerem!"
  423. stop
  424. send "{@tag} &cTen gracz nie jest w naszej gildi!"
  425. stop
  426. send "{@tag} &cLider nie moze byc zdegradowany!"
  427. stop
  428. send "{@tag} &cPodaj nick gracza!"
  429. stop
  430. send "{@tag} &cTylko lider moze mianowac graczy!"
  431. stop
  432. send "{@tag} &cNie jestes w gildi!"
  433. stop
  434. send "{@tag} &cNie masz uprwanien do tej komendy!"
  435. stop
  436. send "{@tag} &cNieznana komenda! Wpisz &6/g pomoc &c aby uzyskac wszystkie komendy!"
  437. stop
  438.  
  439.  
  440. on damage of player:
  441. if {pvpguild.inguild::%name of attacker%} is set:
  442. if {pvpguild.inguild::%name of victim%} is set:
  443. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.members::*} contain victim:
  444. if {pvpguild.%{pvpguild.inguild::%name of attacker%}%.pvp} is false:
  445. cancel event
  446. stop
  447. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.members::*} contain attacker:
  448. if {pvpguild.%{pvpguild.inguild::%name of victim%}%.pvp} is false:
  449. cancel event
  450. stop
  451.  
  452.  
  453. on chat:
  454. if {pvpguild.inguild::%name of player%} is set:
  455. cancel event
  456. broadcast "&7[&6%{pvpguild.%{pvpguild.inguild::%name of player%}%.tag}%&7] %player%: &f%message%"
  457. stop
Advertisement
Add Comment
Please, Sign In to add comment