Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Skript loteria


MisterCrisu

Rekomendowane odpowiedzi

Opublikowano

Dlaczego po w pisaniu /loteria nic się nie dzieje?

Gdzie tu jest błąd? 

 

 

options:
    1: diamond
    2: emerald
    3: ender pearl 
4: gold ingot
    5: 2 diamond
    6: 2 emerald
    7: 2 ender pearl
8: 2 gold ingot
9: 1 enchanted golden apple
 
variables:
    {loteria.%player%} = false
command /loteria:
    trigger:
if {loteria.%player%} is false:
set {loteria.%player%} to true
                set {loteria.%player%} to false
             wait 1440 minutes
                set {loteria.%player%} to true
            set {_a} to random integer between 1 and 9
            if {_a} is equal to 1:
                give {@1} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &7Diament&9! Stopien nagrody - 1/3"
            if {_a} is equal to 2:
                give {@2} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &7Emerald&9! Stopien nagrody - 1/3"
            if {_a} is equal to 3:
                give {@3} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &7Ender Perle&9! Stopien nagrody - 1/3"
            if {_a} is equal to 4:
                give {@4} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &7Zloto&9! Stopien nagrody - 1/3"
            if {_a} is equal to 5:
                give {@5} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &72 Diamenty&9! Stopien nagrody - 2/3"
            if {_a} is equal to 6:
                give {@6} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &72 Emeraldy&9! Stopien nagrody - 2/3"
            if {_a} is equal to 7:
                give {@7} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &72 Ender Perly&9! Stopien nagrody - 2/3"
            if {_a} is equal to 8:
                give {@8} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &72 Zlota&9! Stopien nagrody - 2/3"
            if {_a} is equal to 9:
                give {@9} to the player
                send "&9Gratulacje %player%! Dzisiaj wylosowales &7Koxa&9! Stopien nagrody - Najwyzszy 3/3"
        else:
            send "&l&7Dzis juz wzieles udzial w loteri!"

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...