Facebook
From Booker, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 284
  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 "&fBrak"
  16.                                                                 remove {aukcja::Item} from player
  17.                                                                 set {aukcja::Sprzedajacy} to player
  18.                                                                 set {aukcja::Kupujacy} to "&fBrak"
  19.                                                                 set {aukcja::Item::Lore} to lore of {aukcja::Item}
  20.                                                                 if {aukcja::Item::Lore} is "":
  21.                                                                         set {aukcja::Item::Lore} to "&fBrak"
  22.                                                                 set {aukcja::Item::Durability} to durability of {aukcja::Item}
  23.                                                                 set {aukcja::Status} to true
  24.                                                                 set {aukcja::Item::Stack} to max stack size of {aukcja::Item}
  25.                                                                 if {aukcja::Item::Stack} is equal to 1:
  26.                                                                         set {aukcja::Item::Stack} to "&fNie"
  27.                                                                 if {aukcja::Item::Stack} is greater than 1:
  28.                                                                         if {aukcja::Item::Stack} is equal to 16:
  29.                                                                                 set {aukcja::Item::Stack} to "&fTak, 16"
  30.                                                                         if {aukcja::Item::Stack} is equal to 64:
  31.                                                                                 set {aukcja::Item::Stack} to "&fTak, 64"
  32.                                                                 if arg 2 is set:
  33.                                                                         if arg 2 is greater or equal to 0:
  34.                                                                                 set {aukcja::KupTeraz::Status} to arg 2
  35.                                                                         else:
  36.                                                                                 send "&cCena kup teraz nie moze byc wieksza niz 0"
  37.                                                                                 stop
  38.                                                                 if arg 2 is not set:
  39.                                                                         set {aukcja::KupTeraz::Status} to "&fNie"
  40.                                                                 broadcast "================"
  41.                                                                 broadcast "       &6Aukcja&f:"
  42.                                                                 broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  43.                                                                 broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  44.                                                                 if {aukcja::Item::Name} is not "&fBrak":
  45.                                                                         broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  46.                                                                 if {aukcja::Item::Lore} is not "&fBrak":
  47.                                                                         broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
  48.                                                                 broadcast "&6Cena: &2%{aukcja::Cena}%"
  49.                                                                 broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
  50.                                                                 broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
  51.                                                                 if {aukcja::Kupujacy} is not "&fBrak":
  52.                                                                         broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  53.                                                                 broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  54.                                                                 broadcast "&6Do konca aukcji: &260 sekund"
  55.                                                                 broadcast "================"
  56.                                                                 wait 30 second
  57.                                                                 broadcast "================"
  58.                                                                 broadcast "       &6Aukcja&f:"
  59.                                                                 broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  60.                                                                 broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  61.                                                                 if {aukcja::Item::Name} is not "&fBrak":
  62.                                                                         broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  63.                                                                 if {aukcja::Item::Lore} is not "&fBrak":
  64.                                                                         broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
  65.                                                                 broadcast "&6Cena: &2%{aukcja::Cena}%"
  66.                                                                 broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
  67.                                                                 broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
  68.                                                                 if {aukcja::Kupujacy} is not "&fBrak":
  69.                                                                         broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  70.                                                                 broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  71.                                                                 broadcast "&6Do konca aukcji: &230 sekund"
  72.                                                                 broadcast "================"
  73.                                                                 wait 10 second
  74.                                                                 broadcast "================"
  75.                                                                 broadcast "       &6Aukcja&f:"
  76.                                                                 broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  77.                                                                 broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  78.                                                                 if {aukcja::Item::Name} is not "&fBrak":
  79.                                                                         broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  80.                                                                 if {aukcja::Item::Lore} is not "&fBrak":
  81.                                                                         broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
  82.                                                                 broadcast "&6Cena: &2%{aukcja::Cena}%"
  83.                                                                 broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
  84.                                                                 broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
  85.                                                                 if {aukcja::Kupujacy} is not "&fBrak":
  86.                                                                         broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  87.                                                                 broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  88.                                                                 broadcast "&6Do konca aukcji: &220 sekund"
  89.                                                                 broadcast "================"
  90.                                                                 wait 10 second
  91.                                                                 broadcast "================"
  92.                                                                 broadcast "       &6Aukcja&f:"
  93.                                                                 broadcast "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  94.                                                                 broadcast "&6Przedmiot: &2%{aukcja::Item}%"
  95.                                                                 if {aukcja::Item::Name} is not "&fBrak":
  96.                                                                         broadcast "&6Nazwa przedmiotu: &f%{aukcja::Item::Name}%"
  97.                                                                 if {aukcja::Item::Lore} is not "&fBrak":
  98.                                                                         broadcast "&6Opis przedmiotu: &f%{aukcja::Item::Lore}%"
  99.                                                                 broadcast "&6Cena: &2%{aukcja::Cena}%"
  100.                                                                 broadcast "&6Zuzycie przedmiotu: &2%{aukcja::Item::Durability}%"
  101.                                                                 broadcast "&6Mozliwosc stackowania: %{aukcja::Item::Stack}%"
  102.                                                                 if {aukcja::Kupujacy} is not "&fBrak":
  103.                                                                         broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  104.                                                                 broadcast "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  105.                                                                 broadcast "&6Do konca aukcji: &210 sekund"
  106.                                                                 broadcast "================"
  107.                                                                 wait 5 second
  108.                                                                 broadcast "================"
  109.                                                                 broadcast "&6Aukcja konczy sie za: &25 sekund"
  110.                                                                 broadcast "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  111.                                                                 broadcast "================"
  112.                                                                 wait 5 second
  113.                                                                 broadcast "================"
  114.                                                                 broadcast "&6Aukcja &4ZAKONCZONA"
  115.                                                                 broadcast "&6Aukcje wygral: &2%{aukcja::Kupujacy}%"
  116.                                                                 broadcast "================"
  117.                                                                 if {aukcja::Kupujacy} is "&fBrak":
  118.                                                                         give {aukcja::Item} to player
  119.                                                                         clear {aukcja::Cena}
  120.                                                                         clear {aukcja::Item}
  121.                                                                         clear {aukcja::Item::Name}
  122.                                                                         clear {aukcja::Sprzedajacy}
  123.                                                                         clear {aukcja::KupTeraz}
  124.                                                                         clear {aukcja::Item::Lore}
  125.                                                                         clear {aukcja::KupTeraz::Status}
  126.                                                                         clear {aukcja::Item::Durability}
  127.                                                                         clear {aukcja::Item::Stack}
  128.                                                                         set {aukcja::Status} to false
  129.                                                                         wait 120 second
  130.                                                                         clear {aukcja::Status}
  131.                                                                         stop
  132.                                                                 else:
  133.                                                                         if {aukcja::KupTeraz} is set:
  134.                                                                                 if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
  135.                                                                                         set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
  136.                                                                                         set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
  137.                                                                                         broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
  138.                                                                                         loop all players:
  139.                                                                                                 play raw sound "random.levelup" at loop-player with pitch 1 volume 5
  140.                                                                                 give {aukcja::Item} to {aukcja::Kupujacy}
  141.                                                                                 add {aukcja::KupTeraz::Status} to player's account
  142.                                                                                 remove {aukcja::KupTeraz::Status} from {aukcja::Kupujacy}'s account
  143.                                                                                 clear {aukcja::Cena}
  144.                                                                                 clear {aukcja::Item}
  145.                                                                                 clear {aukcja::KupTeraz::Status}
  146.                                                                                 clear {aukcja::KupTeraz}
  147.                                                                                 clear {aukcja::Item::Lore}
  148.                                                                                 clear {aukcja::Item::Stack}
  149.                                                                                 clear {aukcja::Item::Name}
  150.                                                                                 clear {aukcja::Item::Durability}
  151.                                                                                 if {aukcja::Pkt::%player%} is not set:
  152.                                                                                         set {aukcja::Pkt::%player%} to 0
  153.                                                                                 add 1 to {aukcja::Pkt::%player%}
  154.                                                                                 clear {aukcja::Sprzedajacy}
  155.                                                                                 set {aukcja::Kupujacy} to "&fBrak"
  156.                                                                                 set {aukcja::Status} to false
  157.                                                                                 wait 120 second
  158.                                                                                 clear {aukcja::Status}
  159.                                                                                 stop                   
  160.                                                                         else:
  161.                                                                                 if {aukcja::Cena} is greater than {aukcja::Rekordowa::Stawka}:
  162.                                                                                         set {aukcja::Rekordowa::Stawka} to {aukcja::Cena}
  163.                                                                                         set {aukcja::Rekordzistwa} to {aukcja::Kupujacy}
  164.                                                                                         broadcast "&6&lGracz &2&l%{aukcja::Kupujacy}% &6&lpodbil rekordowa stawke wynoszczaca &2&l%{aukcja::Rekordowa::Stawka}%"
  165.                                                                                         loop all players:
  166.                                                                                                 play raw sound "random.levelup" at loop-player with pitch 1 volume 5
  167.                                                                                 give {aukcja::Item} to {aukcja::Kupujacy}
  168.                                                                                 add {aukcja::Cena} to player's account
  169.                                                                                 remove {aukcja::Cena} from {aukcja::Kupujacy}'s account
  170.                                                                                 clear {aukcja::Cena}
  171.                                                                                 clear {aukcja::Item}
  172.                                                                                 clear {aukcja::Item::Lore}
  173.                                                                                 clear {aukcja::KupTeraz::Status}
  174.                                                                                 clear {aukcja::KupTeraz}
  175.                                                                                 clear {aukcja::Item::Stack}
  176.                                                                                 clear {aukcja::Item::Durability}
  177.                                                                                 clear {aukcja::Item::Name}
  178.                                                                                 if {aukcja::Pkt::%player%} is not set:
  179.                                                                                         set {aukcja::Pkt::%player%} to 0
  180.                                                                                 add 1 to {aukcja::Pkt::%player%}
  181.                                                                                 clear {aukcja::Sprzedajacy}
  182.                                                                                 set {aukcja::Kupujacy} to "&fBrak"
  183.                                                                                 set {aukcja::Status} to false
  184.                                                                                 wait 120 second
  185.                                                                                 clear {aukcja::Status}
  186.                                                                                 stop
  187.                                                         else:
  188.                                                                 send "&cCena nie moze byc mniejsza niz 0"
  189.                                                                 stop
  190.                                                 else:
  191.                                                         send "&cNie mozesz wystawic tego przedmiotu na aukcje"
  192.                                                         stop
  193.                                         else:
  194.                                                 send "&cNie mozesz wystawiac przedmiotow na aukcje"
  195.                                                 stop
  196.                                 else:
  197.                                         send "&cMusisz trzymac przedmiot w rece"
  198.                                         stop
  199.                         if {aukcja::Status} is false:
  200.                                 send "&cMusisz odczekac 120 sekund od zakonczenia ostatniej aukcji"
  201.                                 stop
  202.                         if {aukcja::Status} is true:
  203.                                 send "&cAukcja juz trwa"
  204.                                 stop
  205.                 else:
  206.                         send "&cMusisz podac cene przedmiotu"
  207.                         stop
  208. command /podbij [<number>]:
  209.         permission: aukcja.podbij
  210.         permission message: &cNie masz do tego uprawnien
  211.         trigger:
  212.                 if {aukcja::Status} is true:
  213.                         if {aukcja::KupTeraz} is not set:
  214.                                 if arg 1 is set:
  215.                                         if arg 1 is greater or equal to 1:
  216.                                                 if player's balance is greater or equal to {aukcja::Cena}+arg 1:
  217.                                                         if player is {aukcja::Sprzedajacy}:
  218.                                                                 send "&cNie mozesz podbic wlasnej aukcji"
  219.                                                                 stop
  220.                                                         else:
  221.                                                                 set {aukcja::Cena} to {aukcja::Cena}+arg 1
  222.                                                                 set {aukcja::Kupujacy} to player
  223.                                                                 broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  224.                                                                 stop
  225.                                                 else:
  226.                                                         send "&cNie masz tyle kasy"
  227.                                                         stop
  228.                                         else:
  229.                                                 send "&cNie mozesz podbic o mniej niz 1"
  230.                                                 stop
  231.                                 if arg 1 is not set:
  232.                                         if player's balance is greater or equal to {aukcja::Cena}+1:
  233.                                                 if player is {aukcja::Sprzedajacy}:
  234.                                                         send "&cNie mozesz podbic wlasnej aukcji"
  235.                                                         stop
  236.                                                 else:
  237.                                                         set {aukcja::Cena} to {aukcja::Cena}+1
  238.                                                         set {aukcja::Kupujacy} to player
  239.                                                         broadcast "&2%player% &6podbija do &2%{aukcja::Cena}%"
  240.                                                         stop
  241.                                         else:
  242.                                                 send "&cNie masz tyle kasy"
  243.                                                 stop
  244.                         else:
  245.                                 send "&cKtos kupil ten przedmiot przez opcje Kup Teraz"
  246.                                 stop
  247.                 if {aukcja::Status} is false:
  248.                         send "&cNie trwa zadna aukcja"
  249.                         stop
  250.                 if {aukcja::Status} is not set:
  251.                         send "&cNie trwa zadna aukcja"
  252.                         stop
  253. command /aukcja [<text>]:
  254.         permission: aukcja.info
  255.         permission message: &cNie masz do tego uprawnien
  256.         trigger:
  257.                 if arg 1 is not set:
  258.                         if {aukcja::Status} is true:
  259.                                 send "&6Aukcja&f:"
  260.                                 send "&6Sprzedajacy: &2%{aukcja::Sprzedajacy}%"
  261.                                 send "&6Przedmiot: &2%{aukcja::Item}%"
  262.                                 send "&6Cena: &2%{aukcja::Cena}%"
  263.                                 send "&6Kupujacy: &2%{aukcja::Kupujacy}%"
  264.                                 send "&6Kup teraz: &2%{aukcja::KupTeraz::Status}%"
  265.                                 send "&6Wszelkie pytania z aukcjami kieruj do: &2DrBooker"
  266.                         else:
  267.                                 send "&cNie ma zadnej aukcji"
  268.                                 send "&6Wszelkie pytania z aukcjami kieruj do: &2DrBooker"
  269.                 if arg 1 is "top" or "top10":
  270.                         set {_num} to size of {aukcja::Pkt::*}
  271.                         loop {_num} times:
  272.                                 loop {aukcja::Pkt::*}:
  273.                                         {_v.%loop-number%} is not set:
  274.                                                 set {_v.%loop-number%} to loop-value
  275.                                                 set {_n.%loop-number%} to loop-index
  276.                                         loop-value is greater than {_v.%loop-number%}:
  277.                                                 set {_v.%loop-number%} to loop-value
  278.                                                 set {_n.%loop-number%} to loop-index
  279.                                 remove {_v.%loop-number%} from {aukcja::Pkt::*}
  280.                         loop {_num} times:
  281.                                 loop-number is less than or equal to 10:
  282.                                         send "%loop-number%. &6%{_n.%loop-number%}% &4(&2%{_v.%loop-number%}%&4)"
  283.                                 set {aukcja::Pkt::%{_n.%loop-number%}%} to {_v.%loop-number%}
  284.                         {_num} is less than 10:
  285.                                 set {_r} to {_num}
  286.                                 loop 10 - {_num} times:
  287.                                         add 1 to {_r}
  288.                                         send "%{_r}%. &fPusto"
  289.                         if {aukcja::Rekordzistwa} is not set:
  290.                                 set {aukcja::Rekordzistwa} to "&fBrak"
  291.                         send "&6Liczby w nawiasach &2(np. &4(&21&4)&2)&6 oznaczaja ilosc aukcji."
  292.                 if arg 1 is "pokaz" or "show":
  293.                         if {aukcja::Status} is true:
  294.                                 set {_type} to type of {aukcja::Item}
  295.                                 set {_lore} to lore of {aukcja::Item}
  296.                                 set {_name} to name of {aukcja::Item}
  297.                                 if {_name} is not set:
  298.                                         if {_lore} is "":
  299.                                                 open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
  300.                                                 format slot 4 of player with 1 of {_type} to be unstealable
  301.                                         else:
  302.                                                 open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
  303.                                                 format slot 4 of player with 1 of {_type} with lore "%{_lore}%" to be unstealable
  304.                                 else:
  305.                                         if {_lore} is not "":
  306.                                                 open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
  307.                                                 format slot 4 of player with 1 of {_type} named "%{_name}%" with lore "%{_lore}%" to be unstealable
  308.                                         else:
  309.                                                 open chest with 1 rows named "&6Informacje o przedmiocie aukcyjnym" to player
  310.                                                 format slot 4 of player with 1 of {_type} named "%{_name}%" to be unstealable
  311.                         else:
  312.                                 send "&cNie trwa zadna aukcja"
  313.                                 stop
  314. command /kupteraz:
  315.         permission: aukcja.kupteraz
  316.         permission message: &cNie masz do tego uprawnien
  317.         trigger:
  318.                 if {aukcja::Status} is true:
  319.                         if {aukcja::KupTeraz} is not set:
  320.                                 if {aukcja::KupTeraz::Status} is "&fNie":
  321.                                         send "&cNie ma ceny Kup Teraz"
  322.                                         stop
  323.                                 else:
  324.                                         if player's balance is greater or equal to {aukcja::KupTeraz::Status}:
  325.                                                 if player is {aukcja::Sprzedajacy}:
  326.                                                         send "&cNie mozesz kupic wlasnej aukcji"
  327.                                                         stop
  328.                                                 else:
  329.                                                         set {aukcja::Kupujacy} to player
  330.                                                         set {aukcja::KupTeraz} to player
  331.                                                         broadcast "&2%player% &6uzyl opcji Kup Teraz"
  332.                                                         stop
  333.                                         else:
  334.                                                 send "&cNie masz tyle kasy"
  335.                                                 stop
  336.                         else:
  337.                                 send "&cKtos juz uzyl opcji Kup Teraz"
  338.                                 stop
  339.                 else:
  340.                         send "&cNie trwa zadna aukcja"
  341.                         stop
  342. on skript start:
  343.         clear {aukcja::Cena}
  344.         clear {aukcja::Item}
  345.         clear {aukcja::Item::Name}
  346.         clear {aukcja::Sprzedajacy}
  347.         set {aukcja::Kupujacy} to "&fBrak"
  348.         clear {aukcja::Status}
  349.         clear {aukcja::KupTeraz}
  350.         clear {aukcja::KupTeraz::Status}
  351.         if {aukcja::Rekordowa::Stawka} is not set:
  352.                 set {aukcja::Rekordowa::Stawka} to 0
  353. on skript stop:
  354.         clear {aukcja::Cena}
  355.         clear {aukcja::Item}
  356.         clear {aukcja::Item::Name}
  357.         clear {aukcja::Sprzedajacy}
  358.         set {aukcja::Kupujacy} to "&fBrak"
  359.         clear {aukcja::Status}