GrimoN

Untitled

Feb 22nd, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.71 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 30 second
  97. clear {aukcja::Status}
  98. stop
  99. else:
  100. if {aukcja::KupTeraz} is set:
  101. give {aukcja::Item} to {aukcja::Kupujacy}
  102. add {aukcja::KupTeraz::Status} to player's account
  103. remove {aukcja::KupTeraz::Status} from {aukcja::Kupujacy}'s account
  104. clear {aukcja::Cena}
  105. clear {aukcja::Item}
  106. clear {aukcja::KupTeraz::Status}
  107. clear {aukcja::KupTeraz}
  108. clear {aukcja::Item::Name}
  109. if {aukcja::Pkt::%player%} is not set:
  110. set {aukcja::Pkt::%player%} to 0
  111. add 1 to {aukcja::Pkt::%player%}
  112. clear {aukcja::Sprzedajacy}
  113. set {aukcja::Kupujacy} to "&fBrak"
  114. set {aukcja::Status} to false
  115. wait 30 second
  116. clear {aukcja::Status}
  117. stop
  118. else:
  119. give {aukcja::Item} to {aukcja::Kupujacy}
  120. add {aukcja::Cena} to player's account
  121. remove {aukcja::Cena} from {aukcja::Kupujacy}'s account
  122. clear {aukcja::Cena}
  123. clear {aukcja::Item}
  124. clear {aukcja::KupTeraz::Status}
  125. clear {aukcja::KupTeraz}
  126. clear {aukcja::Item::Name}
  127. if {aukcja::Pkt::%player%} is not set:
  128. set {aukcja::Pkt::%player%} to 0
  129. add 1 to {aukcja::Pkt::%player%}
  130. clear {aukcja::Sprzedajacy}
  131. set {aukcja::Kupujacy} to "&fBrak"
  132. set {aukcja::Status} to false
  133. wait 30 second
  134. clear {aukcja::Status}
  135. stop
  136. else:
  137. send "&cCena nie moze byc mniejsza niz 0"
  138. stop
  139. else:
  140. send "&cNie mozesz wystawic tego przedmiotu na aukcje"
  141. stop
  142. else:
  143. send "&cNie mozesz wystawiac przedmiotow na aukcje"
  144. stop
  145. else:
  146. send "&cMusisz trzymac przedmiot w rece"
  147. stop
  148. if {aukcja::Status} is false:
  149. send "&cMusisz odczekac 30 sekund od zakonczenia ostatniej aukcji"
  150. stop
  151. if {aukcja::Status} is true:
  152. send "&cAukcja juz trwa"
  153. stop
  154. else:
  155. send "&cMusisz podac cene przedmiotu"
  156. stop
  157. command /podbij [<number>]:
  158. permission: aukcja.podbij
  159. permission message: &cNie masz do tego uprawnien
  160. trigger:
  161. if {aukcja::Status} is true:
  162. if {aukcja::KupTeraz} is not set:
  163. if arg 1 is set:
  164. if arg 1 is greater or equal to 1:
  165. if player's balance is greater or equal to {aukcja::Cena}+arg 1:
  166. if player is {aukcja::Sprzedajacy}:
  167. send "&cNie mozesz podbic wlasnej aukcji"
  168. stop
  169. else:
  170. set {aukcja::Cena} to {aukcja::Cena}+arg 1
  171. set {aukcja::Kupujacy} to player
  172. broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  173. stop
  174. else:
  175. send "&cNie masz tyle kasy"
  176. stop
  177. else:
  178. send "&cNie mozesz podbic o mniej niz 1"
  179. stop
  180. if arg 1 is not set:
  181. if player's balance is greater or equal to {aukcja::Cena}+1:
  182. if player is {aukcja::Sprzedajacy}:
  183. send "&cNie mozesz podbic wlasnej aukcji"
  184. stop
  185. else:
  186. set {aukcja::Cena} to {aukcja::Cena}+1
  187. set {aukcja::Kupujacy} to player
  188. broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  189. stop
  190. else:
  191. send "&cNie masz tyle kasy"
  192. stop
  193. else:
  194. send "&cKtos kupil ten przedmiot przez opcje Kup Teraz"
  195. stop
  196. if {aukcja::Status} is false:
  197. send "&cNie trwa rzadna aukcja"
  198. stop
  199. if {aukcja::Status} is not set:
  200. send "&cNie trwa rzadna aukcja"
  201. stop
  202. command /aukcja [<text>]:
  203. permission: aukcja.info
  204. permission message: &cNie masz do tego uprawnien
  205. trigger:
  206. if arg 1 is not set:
  207. if {aukcja::Status} is true:
  208. send "&6Aukcja&f:"
  209. send "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  210. send "&6Przedmiot: &2%{aukcja::Item}%"
  211. send "&6Cena: &2%{aukcja::Cena}%"
  212. send "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  213. send "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  214. send "&6Autor: &2GrimoN"
  215. else:
  216. send "&cNie ma rzadnej aukcji"
  217. send "&6Autor: &2GrimoN"
  218. if arg 1 is "top" or "top10":
  219. set {_num} to size of {aukcja::Pkt::*}
  220. loop {_num} times:
  221. loop {aukcja::Pkt::*}:
  222. {_v.%loop-number%} is not set:
  223. set {_v.%loop-number%} to loop-value
  224. set {_n.%loop-number%} to loop-index
  225. loop-value is greater than {_v.%loop-number%}:
  226. set {_v.%loop-number%} to loop-value
  227. set {_n.%loop-number%} to loop-index
  228. remove {_v.%loop-number%} from {aukcja::Pkt::*}
  229. loop {_num} times:
  230. loop-number is less than or equal to 10:
  231. send "%loop-number%. &6%{_n.%loop-number%}% &4(&2%{_v.%loop-number%}%&4)"
  232. set {aukcja::Pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
  233. {_num} is less than 10:
  234. set {_r} to {_num}
  235. loop 10 - {_num} times:
  236. add 1 to {_r}
  237. send "%{_r}%. &fPusto"
  238. stop
  239. command /aukcjaadmin [<text>] [<text>] [<text>]:
  240. permission: aukcja.admin
  241. permission message: &cNie masz do tego uprawnien
  242. aliases: aa, aadmin, aukcjaa
  243. trigger:
  244. if arg 1 is "playerblacklist" or "pbl":
  245. if arg 2 is "add" or "dodaj":
  246. if arg 3 is set:
  247. set {_player} to arg 3 parsed as player
  248. if {aukcja::Blacklist::Player::%{_player}%} is not set:
  249. set {aukcja::Blacklist::Player::%{_player}%} to true
  250. broadcast "&4[Aukcje]&6Gracz &2%{_player}% &6zostal dodany na czarna liste."
  251. stop
  252. else:
  253. send "&cTen gracz jest juz na czarnej liscie"
  254. stop
  255. else:
  256. send "&cMusisz podac nick gracza, ktorego chcesz dodac na czarna liste"
  257. stop
  258. if arg 2 is "usun" or "remove":
  259. if arg 3 is set:
  260. set {_player} to arg 3 parsed as player
  261. if {aukcja::Blacklist::Player::%{_player}%} is true:
  262. clear {aukcja::Blacklist::Player::%{_player}%}
  263. send "&6Gracz &2%{_player}%&6 zostal usuniety z czarnej listy."
  264. stop
  265. else:
  266. send "&cTego gracza nie ma na czarnej liscie"
  267. stop
  268. else:
  269. send "&cMusisz podac nick gracza, ktorego chcesz usunac z czarnej listy"
  270. stop
  271. if arg 1 is "itemblacklist" or "ibl":
  272. if arg 2 is "add" or "dodaj":
  273. if player's tool is air:
  274. send "&cNie mozna dodac powietrza na czarna liste"
  275. stop
  276. else:
  277. set {_item} to type of player's tool
  278. if {aukcja::Blacklist::Item::%{_item}%} is not set:
  279. set {aukcja::Blacklist::Item::%{_item}%} to true
  280. send "&6Przedmiot &2%{_item}% &6zostal dodany na czarna liste"
  281. stop
  282. else:
  283. send "&cTen przedmiot jest juz dodany na czarna liste"
  284. stop
  285. if arg 2 is "usun" or "remove":
  286. if player's tool is air:
  287. send "&cNie mozna usunac powietrza z czarnej listy"
  288. stop
  289. else:
  290. set {_item} to type of player's tool
  291. if {aukcja::Blacklist::Item::%{_item}%} is true:
  292. clear {aukcja::Blacklist::Item::%{_item}%}
  293. send "&6Przedmiot &2%{_item}% &6zostal usuniety z czarnej listy"
  294. stop
  295. else:
  296. send "&cTego przedmiotu nie ma na czarnej liscie"
  297. stop
  298. command /kupteraz:
  299. permission: aukcja.kupteraz
  300. permission message: &cNie masz do tego uprawnien
  301. trigger:
  302. if {aukcja::Status} is true:
  303. if {aukcja::KupTeraz} is not set:
  304. if {aukcja::KupTeraz::Status} is "&fNie":
  305. send "&cNie ma ceny Kup Teraz"
  306. stop
  307. else:
  308. if player's balance is greater or equal to {aukcja::KupTeraz::Status}:
  309. if player is {aukcja::Sprzedajacy}:
  310. send "&cNie mozesz kupic wlasnej aukcji"
  311. stop
  312. else:
  313. set {aukcja::Kupujacy} to player
  314. set {aukcja::KupTeraz} to player
  315. broadcast "&2%player% &6uzyl opcji Kup Teraz"
  316. stop
  317. else:
  318. send "&cNie masz tyle kasy"
  319. stop
  320. else:
  321. send "&cKtos juz uzyl opcji Kup Teraz"
  322. stop
  323. else:
  324. send "&cNie trwa rzadna aukcja"
  325. stop
  326. on skript start:
  327. clear {aukcja::Cena}
  328. clear {aukcja::Item}
  329. clear {aukcja::Item::Name}
  330. clear {aukcja::Sprzedajacy}
  331. set {aukcja::Kupujacy} to "&fBrak"
  332. clear {aukcja::Status}
  333. clear {aukcja::KupTeraz}
  334. clear {aukcja::KupTeraz::Status}
  335.  
  336. on skript stop:
  337. clear {aukcja::Cena}
  338. clear {aukcja::Item}
  339. clear {aukcja::Item::Name}
  340. clear {aukcja::Sprzedajacy}
  341. set {aukcja::Kupujacy} to "&fBrak"
  342. clear {aukcja::Status}
Advertisement
Add Comment
Please, Sign In to add comment