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


Rekomendowane odpowiedzi

Opublikowano

Siemka mam problem dotyczacy skryptu , mianowicie nie dziala komenda na dawanie "Itemku"

options:
        Czas: 3 
        Item: block 36 named "&bLoteria"
on rightclick holding a block 36:
        chance of 50%:
                send "&aZaczekaj {@Czas} sekund, losuje nagrode.."
                remove block 36 from player
                wait {@Czas} second
                give 32 cooked porkchop to player
                send "brawo ..."
                stop
every 1 real hours:
        give 5 block 36 named "&bLoteria" to all players
        send "&8[&cLoteria&8] &bMinela godzina grania, dostajesz 5 losow" to all players
        stop
command /losy [<player>] <integer = 99999>:
        permission: "losy.daj"
        trigger:
                if arg 1 is "player":
                execute console command "give %arg 2% {@Item} to %arg 1%"
                broadcast "&8[&cLoteria&8] &bGracz &c%arg1% &bdostal %arg2% loterii."
 
                if arg 1 is "all":
                execute console command "give %arg 2% {@Item} to all players"
                broadcast "&8[&cLoteria&8] &bWszyscy gracze dostali %arg2% loterii."

sygna_frikos.png

Opublikowano


command /losy [<player>] <integer = 99999>:

permission: "losy.daj"

trigger:

if arg 1 is "player":

execute console command "give %arg 2% {@Item} to %arg 1%"

broadcast "&8[&cLoteria&8] &bGracz &c%arg1% &bdostal %arg2% loterii."

 

if arg 1 is "all":

execute console command "give %arg 2% {@Item} to all players"

broadcast "&8[&cLoteria&8] &bWszyscy gracze dostali %arg2% loterii."

1394047278-U990178.png

Opublikowano

Nie dziala niestety, wywala Errory:

2013-12-16 18:41:34 [SEVERE] '"give %arg 2% block 36 named "&bLoteria" to %arg 1%"' is not a text (Skrypt.sk, line 20: 'execute console command "give %arg 2% {@Item} to %arg 1%"')
2013-12-16 18:41:34 [SEVERE] '"give %arg 2% block 36 named "&bLoteria" to all players"' is not a text (Skrypt.sk, line 24: 'execute console command "give %arg 2% {@Item} to all players"')
2013-12-16 18:41:34 [INFO] loaded 11 scripts with a total of 18 triggers and 11 commands in 0.47 seconds
2013-12-16 18:41:34 [INFO] [Skript] Encountered 6 errors while reloading the config and all scripts!

sygna_frikos.png

Opublikowano

@refresh dalej nie dziala

options:
        Czas: 3
        Przedmiot: stick of infinity 10 named "&2&lLoteria"
command /daj <player> [<integer>]:
        aliases: losy
        trigger:
                if arg 2 is integer:
                        give %arg 2% {@Przedmiot} to player
                        broadcast "&8[&cLoteria&8] &bGracz &c%arg 1% &bdostal %arg 2% losow."
                        loop all players:
                        execute console command "/playsound random.pop %loop-player%"
                        stop
on rightclick holding a stick of infinity 10:
        chance of 50%:
                send "&aZaczekaj {@Czas} sekund, losuje nagrode.."
                remove {@Przedmiot} from player's inventory
                wait {@Czas} second
                give 32 cooked porkchop to the player
                send "hehe"
                stop
every 1 real hours:
        give {@Przedmiot} to all players
        send "&8[&cLoteria&8] &bMinela godzina grania, dostajesz 5 losow" to all players
        stop

sygna_frikos.png

Opublikowano

Zobacz to

options:
Czas: 3
Item: block 36 named "&bLoteria"
on rightclick holding a block 36:
chance of 50%:
send "&aZaczekaj {@Czas} sekund, losuje nagrode.."
remove block 36 from player
wait {@Czas} second
give 32 cooked porkchop to player
send "brawo ..."
stop
every 1 real hours:
give 5 block 36 named "&bLoteria" to all players
send "&8[&cLoteria&8] &bMinela godzina grania, dostajesz 5 losow" to all players
stop
command /losy [<player>]:
permission: "losy.daj"
trigger:
if arg 1 is "player":
execute console command "give %arg 2% {@Item} to %arg 1%"
broadcast "&8[&cLoteria&8] &bGracz &c%arg1% &bdostal %arg2% loterii."
if arg 1 is "all":
execute console command "give %arg 2% {@Item} to all players"
broadcast "&8[&cLoteria&8] &bWszyscy gracze dostali %arg2% loterii."

 

 

 

 

 

Wytabuj dobrze

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...