Guest User

Untitled

a guest
Dec 24th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.54 KB | None | 0 0
  1. command /wystaw [<number>] [<number>]:
  2. permission: aukcja.wystaw
  3. permission message: &cNie masz do tego uprawnien
  4. trigger:
  5. if arg 1 is set:
  6. if {aukcja::Status} is not set:
  7. if player's tool is not air:
  8. if {aukcja::Blacklist::Player::%player%} is not set:
  9. if {aukcja::Blacklist::Item::%type of player's tool%} is not set:
  10. if arg 1 is greater or equal to 0:
  11. set {aukcja::Cena} to arg 1
  12. set {aukcja::Item} to player's tool
  13. set {aukcja::Item::Name} to name of player's tool
  14. if {aukcja::Item::Name} is not set:
  15. set {aukcja::Item::Name} to "Brak"
  16. remove {aukcja::Item} from player
  17. set {aukcja::Sprzedajacy} to player
  18. set {aukcja::Kupujacy} to "&fBrak"
  19. set {aukcja::Status} to true
  20. if arg 2 is set:
  21. if arg 2 is greater or equal to 0:
  22. set {aukcja::KupTeraz::Status} to arg 2
  23. else:
  24. send "&cCena kup teraz nie moze byc wieksza niz 0"
  25. stop
  26. if arg 2 is not set:
  27. set {aukcja::KupTeraz::Status} to "&fNie"
  28. broadcast "================"
  29. broadcast " &6Aukcja&f:"
  30. broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  31. broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  32. broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  33. broadcast "&6Cena: &2%{aukcja::Cena}%"
  34. broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  35. broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  36. broadcast "&6Do konca aukcji: &260 sekund"
  37. broadcast "================"
  38. create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 30 seconds
  39. wait 50 second
  40. broadcast "================"
  41. broadcast " &6Aukcja&f:"
  42. broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  43. broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  44. broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  45. broadcast "&6Cena: &2%{aukcja::Cena}%"
  46. broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  47. broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  48. broadcast "&6Do konca aukcji: &210 sekund"
  49. broadcast "================"
  50. create timed bar with text "&6Prowadzi: &2%{aukcja::Kupujacy}% &6Cena: &2%{aukcja::Cena}%" to all players for 10 seconds
  51. wait 5 second
  52. broadcast "================"
  53. broadcast "&6Aukcja konczy sie za: &25 sekund"
  54. broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  55. broadcast "================"
  56. create timed bar with text "&6Kupujacy: &2%{aukcja::Kupujacy}%" to all players for 5 seconds
  57. wait 5 second
  58. broadcast "================"
  59. broadcast "&6Aukcja &4ZAKONCZONA"
  60. broadcast "&6Aukcje wygral: &2%{aukcja::Kupujacy}%"
  61. broadcast "================"
  62. create timed bar with text "&6Aukcje wygral: &2%{aukcja::Kupujacy}%" to all players for 15 seconds
  63. if {aukcja::Kupujacy} is "&fBrak":
  64. give {aukcja::Item} to player
  65. clear {aukcja::Cena}
  66. clear {aukcja::Item}
  67. clear {aukcja::Item::Name}
  68. clear {aukcja::Sprzedajacy}
  69. clear {aukcja::KupTeraz}
  70. clear {aukcja::KupTeraz::Status}
  71. set {aukcja::Status} to false
  72. wait 5 second
  73. clear {aukcja::Status}
  74. stop
  75. else:
  76. if {aukcja::KupTeraz} is set:
  77. if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
  78. set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
  79. set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
  80. broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
  81. loop all players:
  82. play raw sound "random.levelup" at loop-player with pitch 1 volume 5
  83. give {aukcja::Item} to {aukcja::Kupujacy}
  84. add {aukcja::KupTeraz::Status} to player's account
  85. remove {aukcja::KupTeraz::Status} from {aukcja::Kupujacy}'s account
  86. clear {aukcja::Cena}
  87. clear {aukcja::Item}
  88. clear {aukcja::KupTeraz::Status}
  89. clear {aukcja::KupTeraz}
  90. clear {aukcja::Item::Name}
  91. if {aukcja::Pkt::%player%} is not set:
  92. set {aukcja::Pkt::%player%} to 0
  93. add 1 to {aukcja::Pkt::%player%}
  94. clear {aukcja::Sprzedajacy}
  95. set {aukcja::Kupujacy} to "&fBrak"
  96. set {aukcja::Status} to false
  97. wait 5 second
  98. clear {aukcja::Status}
  99. stop
  100. else:
  101. if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
  102. set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
  103. set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
  104. broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
  105. loop all players:
  106. play raw sound "random.levelup" at loop-player with pitch 1 volume 5
  107. give {aukcja::Item} to {aukcja::Kupujacy}
  108. add {aukcja::Cena} to player's account
  109. remove {aukcja::Cena} from {aukcja::Kupujacy}'s account
  110. clear {aukcja::Cena}
  111. clear {aukcja::Item}
  112. clear {aukcja::KupTeraz::Status}
  113. clear {aukcja::KupTeraz}
  114. clear {aukcja::Item::Name}
  115. if {aukcja::Pkt::%player%} is not set:
  116. set {aukcja::Pkt::%player%} to 0
  117. add 1 to {aukcja::Pkt::%player%}
  118. clear {aukcja::Sprzedajacy}
  119. set {aukcja::Kupujacy} to "&fBrak"
  120. set {aukcja::Status} to false
  121. wait 5 second
  122. clear {aukcja::Status}
  123. stop
  124. else:
  125. send "&cCena nie moze byc mniejsza niz 0"
  126. stop
  127. else:
  128. send "&cNie mozesz wystawic tego przedmiotu na aukcje"
  129. stop
  130. else:
  131. send "&cNie mozesz wystawiac przedmiotow na aukcje"
  132. stop
  133. else:
  134. send "&cMusisz trzymac przedmiot w rece"
  135. stop
  136. if {aukcja::Status} is false:
  137. send "&cMusisz odczekac 300 sekund od zakonczenia ostatniej aukcji"
  138. stop
  139. if {aukcja::Status} is true:
  140. send "&cAukcja juz trwa"
  141. stop
  142. else:
  143. send "&cMusisz podac cene przedmiotu"
  144. stop
  145. command /podbij [<number>]:
  146. permission: aukcja.podbij
  147. permission message: &cNie masz do tego uprawnien
  148. trigger:
  149. if {aukcja::Status} is true:
  150. if {aukcja::KupTeraz} is not set:
  151. if arg 1 is set:
  152. if arg 1 is greater or equal to 1:
  153. if player's balance is greater or equal to {aukcja::Cena}+arg 1:
  154. if player is {aukcja::Sprzedajacy}:
  155. send "&cNie mozesz podbic wlasnej aukcji"
  156. stop
  157. else:
  158. set {aukcja::Cena} to {aukcja::Cena}+arg 1
  159. set {aukcja::Kupujacy} to player
  160. broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  161. stop
  162. else:
  163. send "&cNie masz tyle kasy"
  164. stop
  165. else:
  166. send "&cNie mozesz podbic o mniej niz 1"
  167. stop
  168. if arg 1 is not set:
  169. if player's balance is greater or equal to {aukcja::Cena}+1:
  170. if player is {aukcja::Sprzedajacy}:
  171. send "&cNie mozesz podbic wlasnej aukcji"
  172. stop
  173. else:
  174. set {aukcja::Cena} to {aukcja::Cena}+1
  175. set {aukcja::Kupujacy} to player
  176. broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  177. stop
  178. else:
  179. send "&cNie masz tyle kasy"
  180. stop
  181. else:
  182. send "&cKtos kupil ten przedmiot przez opcje Kup Teraz"
  183. stop
  184. if {aukcja::Status} is false:
  185. send "&cNie trwa rzadna aukcja"
  186. stop
  187. if {aukcja::Status} is not set:
  188. send "&cNie trwa rzadna aukcja"
  189. stop
  190. command /aukcja [<text>]:
  191. permission: aukcja.info
  192. permission message: &cNie masz do tego uprawnien
  193. trigger:
  194. if arg 1 is not set:
  195. if {aukcja::Status} is true:
  196. send "&6Aukcja&f:"
  197. send "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  198. send "&6Przedmiot: &2%{aukcja::Item}%"
  199. send "&6Cena: &2%{aukcja::Cena}%"
  200. send "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  201. send "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  202. send "&6Autor: &2GrimoN"
  203. else:
  204. send "&cNie ma rzadnej aukcji"
  205. send "&6Autor: &2GrimoN"
  206. if arg 1 is "top" or "top10":
  207. set {_num} to size of {aukcja::Pkt::*}
  208. loop {_num} times:
  209. loop {aukcja::Pkt::*}:
  210. {_v.%loop-number%} is not set:
  211. set {_v.%loop-number%} to loop-value
  212. set {_n.%loop-number%} to loop-index
  213. loop-value is greater than {_v.%loop-number%}:
  214. set {_v.%loop-number%} to loop-value
  215. set {_n.%loop-number%} to loop-index
  216. remove {_v.%loop-number%} from {aukcja::Pkt::*}
  217. loop {_num} times:
  218. loop-number is less than or equal to 10:
  219. send "%loop-number%. &6%{_n.%loop-number%}% &4(&2%{_v.%loop-number%}%&4)"
  220. set {aukcja::Pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
  221. {_num} is less than 10:
  222. set {_r} to {_num}
  223. loop 10 - {_num} times:
  224. add 1 to {_r}
  225. send "%{_r}%. &fPusto"
  226. if {aukcja::Rekordzistwa} is not set:
  227. set {aukcja::Rekordzistwa} to "&fBrak"
  228. send "&6Rekordzista podbic jest: &2&l%{aukcja::Rekordzistwa}% &6podbil on cene do: &2&l%{aukcja::Rekordowa::Stawka}%"
  229. stop
  230. command /aukcjaadmin [<text>] [<text>] [<text>]:
  231. permission: aukcja.admin
  232. permission message: &cNie masz do tego uprawnien
  233. aliases: aa, aadmin, aukcjaa
  234. trigger:
  235. if arg 1 is "playerblacklist" or "pbl":
  236. if arg 2 is "add" or "dodaj":
  237. if arg 3 is set:
  238. set {_player} to arg 3 parsed as player
  239. if {aukcja::Blacklist::Player::%{_player}%} is not set:
  240. set {aukcja::Blacklist::Player::%{_player}%} to true
  241. broadcast "&4[Aukcje]&6Gracz &2%{_player}% &6zostal dodany na czarna liste."
  242. stop
  243. else:
  244. send "&cTen gracz jest juz na czarnej liscie"
  245. stop
  246. else:
  247. send "&cMusisz podac nick gracza, ktorego chcesz dodac na czarna liste"
  248. stop
  249. if arg 2 is "usun" or "remove":
  250. if arg 3 is set:
  251. set {_player} to arg 3 parsed as player
  252. if {aukcja::Blacklist::Player::%{_player}%} is true:
  253. clear {aukcja::Blacklist::Player::%{_player}%}
  254. send "&6Gracz &2%{_player}%&6 zostal usuniety z czarnej listy."
  255. stop
  256. else:
  257. send "&cTego gracza nie ma na czarnej liscie"
  258. stop
  259. else:
  260. send "&cMusisz podac nick gracza, ktorego chcesz usunac z czarnej listy"
  261. stop
  262. if arg 1 is "itemblacklist" or "ibl":
  263. if arg 2 is "add" or "dodaj":
  264. if player's tool is air:
  265. send "&cNie mozna dodac powietrza na czarna liste"
  266. stop
  267. else:
  268. set {_item} to type of player's tool
  269. if {aukcja::Blacklist::Item::%{_item}%} is not set:
  270. set {aukcja::Blacklist::Item::%{_item}%} to true
  271. send "&6Przedmiot &2%{_item}% &6zostal dodany na czarna liste"
  272. stop
  273. else:
  274. send "&cTen przedmiot jest juz dodany na czarna liste"
  275. stop
  276. if arg 2 is "usun" or "remove":
  277. if player's tool is air:
  278. send "&cNie mozna usunac powietrza z czarnej listy"
  279. stop
  280. else:
  281. set {_item} to type of player's tool
  282. if {aukcja::Blacklist::Item::%{_item}%} is true:
  283. clear {aukcja::Blacklist::Item::%{_item}%}
  284. send "&6Przedmiot &2%{_item}% &6zostal usuniety z czarnej listy"
  285. stop
  286. else:
  287. send "&cTego przedmiotu nie ma na czarnej liscie"
  288. stop
  289. command /kupteraz:
  290. permission: aukcja.kupteraz
  291. permission message: &cNie masz do tego uprawnien
  292. trigger:
  293. if {aukcja::Status} is true:
  294. if {aukcja::KupTeraz} is not set:
  295. if {aukcja::KupTeraz::Status} is "&fNie":
  296. send "&cNie ma ceny Kup Teraz"
  297. stop
  298. else:
  299. if player's balance is greater or equal to {aukcja::KupTeraz::Status}:
  300. if player is {aukcja::Sprzedajacy}:
  301. send "&cNie mozesz kupic wlasnej aukcji"
  302. stop
  303. else:
  304. set {aukcja::Kupujacy} to player
  305. set {aukcja::KupTeraz} to player
  306. broadcast "&2%player% &6uzyl opcji Kup Teraz"
  307. stop
  308. else:
  309. send "&cNie masz tyle kasy"
  310. stop
  311. else:
  312. send "&cKtos juz uzyl opcji Kup Teraz"
  313. stop
  314. else:
  315. send "&cNie trwa rzadna aukcja"
  316. stop
  317. on skript start:
  318. clear {aukcja::Cena}
  319. clear {aukcja::Item}
  320. clear {aukcja::Item::Name}
  321. clear {aukcja::Sprzedajacy}
  322. set {aukcja::Kupujacy} to "&fBrak"
  323. clear {aukcja::Status}
  324. clear {aukcja::KupTeraz}
  325. clear {aukcja::KupTeraz::Status}
  326. if {aukcja::Rekordowa::Stawka} is not set:
  327. set {aukcja::Rekordowa::Stawka} to 0
  328. on skript stop:
  329. clear {aukcja::Cena}
  330. clear {aukcja::Item}
  331. clear {aukcja::Item::Name}
  332. clear {aukcja::Sprzedajacy}
  333. set {aukcja::Kupujacy} to "&fBrak"
  334. clear {aukcja::Status}
Advertisement
Add Comment
Please, Sign In to add comment