GrimoN

Untitled

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