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] Skrypt na loterię zestawów.


Rekomendowane odpowiedzi

Opublikowano
	

    on rightclick holding gold ingot:
        permissions: rc.gold
        chance: 5%
                send: "&2Zaczekaj losuje nagrode..."
                    remove gold ingot from player
                    execute console command: "/give %player% 310 1"
                    execute console command: "/give %player% 311 1"
                    execute console command: "/give %player% 312 1"
                    execute console command: "/give %player% 313 1"
                    execute console command: "/give %player% 276:19 1"
                    apply regeneration 1 the player for 300 seconds
                    send: "&2Otrzymałeś zestaw PvP!"
                    execute console command: "/broadcast %player% otrzymal zestaw PvP!"
            chance: 25%
               send: "&2Zaczekaj losuje nagrode..."
               remove gold ingot from player
               execute console command: "/give %player% 306 1"
               execute console command: "/give %player% 307 1"
               execute console command: "/give %player% 308 1"
               execute console command: "/give %player% 309 1"
               execute console command: "/give %player% 276:21 1"
               apply speed the player for 300 seconds
               apply jump boost the player for 300 seconds
               execute console command: "/broadcast %player% otrzymal zestaw Survival!"
               send: "&2Otrzymales zestaw Survival!"
            chance: 10%
               send: "&2Zaczekaj losuje nagrode..."
               remove gold ingot from player
               execute console command: "/give %player% 373:16449 4"
               execute console command: "/give %player& 373:16421 4"
               execute console command: "/give %player% 314 1"
               execute console command: "/give %player% 315 1"
               execute console command: "/give %player% 316 1"
               execute console command: "/give %player% 317 1"
               execute console command: "/give %player% 272:19 1"
               send: "&2Otrzymales zestaw Medyka!"
               execute console command: "/broadcast %player% otrzymal zestaw Medyka!"


Co z tym kodem jest nie tak?

Opublikowano

chance 10%:


lub


chance of 10%:


a nie


chance: 10%



Do tego zamiast używać komend np execute console command "/give 310 1"


to używaj


give 1 iron sword to player


Wtedy nie ma takiego spamu w konsoli komendami.




Taby:


chance powinny być na tych samych poziomach a nie 1 chance ma 2 taby a następny 3 itd


Pomogłem?👍

Daj Like! :D

Opublikowano


on rightclick holding gold ingot:

player has permission "rc.gold"

chance of 5%:

send "&2Zaczekaj losuje nagrode..."

remove gold ingot from player

execute console command "/give %player% 310 1"

execute console command "/give %player% 311 1"

execute console command "/give %player% 312 1"

execute console command "/give %player% 313 1"

execute console command "/give %player% 276:19 1"

apply regeneration 1 the player for 300 seconds

send "&2Otrzymałes zestaw PvP!"

broadcast "%player% otrzymal zestaw PvP!"

stop

chance of 25%:

send "&2Zaczekaj losuje nagrode..."

remove gold ingot from player

execute console command "/give %player% 306 1"

execute console command "/give %player% 307 1"

execute console command "/give %player% 308 1"

execute console command "/give %player% 309 1"

execute console command "/give %player% 276:21 1"

apply speed the player for 300 seconds

apply jump boost the player for 300 seconds

send "&2Otrzymales zestaw Survival!"

broadcast "%player% otrzymal zestaw Survival!"

stop

chance of 10%:

send "&2Zaczekaj losuje nagrode..."

remove gold ingot from player

execute console command "/give %player% 373:16449 4"

execute console command "/give %player& 373:16421 4"

execute console command "/give %player% 314 1"

execute console command "/give %player% 315 1"

execute console command "/give %player% 316 1"

execute console command "/give %player% 317 1"

execute console command "/give %player% 272:19 1"

send "&2Otrzymales zestaw Medyka!"

broadcast "%player% otrzymal zestaw Medyka!"

stop

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...