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] Co jest nie tak z tym skryptem?


Rekomendowane odpowiedzi

Opublikowano
on rightclick with nether star:

    if name of player's tool is "&6&lAmulet Boskiego Swiatla":

        remove night vision from player

        apply night vision potion of tier 1 to the player for 1000 second

command /amuletboski:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 nether star of protection 1 named "&6&lAmulet Boskiego Swiatla" to the player

on rightclick with blaze powder:

    if name of player's tool is "&6&lOgnisty Amulet Swiatla":

        remove speed from player

        apply speed potion of tier 3 to the player for 750 second

command /amuletognisty:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 blaze powder named "&6&lOgnisty Amulet Swiatla" to the player

on rightclick with slimeball:

    if name of player's tool is "&6&lAmulet Boskiej Ochrony":

        remove fire resistance from player

        apply fire resistance potion of tier 3 to the player for 1000 second 

command /amuletochrony:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 slimeball named "&6&lAmulet Boskiej Ochrony" to the player

on rightclick with magma cream:

    player's tool is magma cream:

        remove regeneration from player

        apply regeneration 4 to player for 10 seconds

command /amuletmagiczny:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 magma cream named "&6&lAmulet Magicznego Uzdrowienia" to the player

on rightclick:

    player's tool is blaze rod:

        remove power from player

        apply power 2 to player for 16 minutes

command /amuletmocy:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 blaze rod named "&6&lMagiczna Rozdzka mocy" to the player

on rightclick with rose bush:

    if name of player's tool is "&6&lMagiczny medalion zycia":

        apply health boost potion of tier 4 to the player for 100000 second

        remove rose bush named "&6&lMagiczny medalion zycia" from player's inventory

command /amuletzycia:

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

    trigger:

        give 1 rose bush named "&6&lMagiczny medalion zycia" to the player

wait 7 day

execute console command "/effect %player% clear"

        permission: subron.admin

        permission message: &8>> &9Brak uprawnien!

Opublikowano
 

2015-04-09 15:15:49 [sEVERE] Could not find the english aliases file aliases-english.sk

2015-04-09 15:15:49 [sEVERE] Could not load the english aliases config: plugins/Skript/aliases-english.sk (No such file or directory)

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 6: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 7: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 15: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 16: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 24: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 25: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 33: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 34: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 42: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 43: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 51: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 4 spaces, but found 8 spaces (amu.sk, line 52: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 0 spaces, but found 8 spaces (amu.sk, line 57: 'permission: subron.admin')

2015-04-09 15:15:49 [sEVERE] indentation error: expected 0 spaces, but found 8 spaces (amu.sk, line 58: 'permission message: &8>> &9Brak uprawnien!')

2015-04-09 15:15:49 [sEVERE] 'nether star' is not an item type (amu.sk, line 1: 'on rightclick with nether star:')

2015-04-09 15:15:49 [sEVERE] 'protection 1' is not an item stack (amu.sk, line 9: 'give 1 nether star of protection 1 named "&6&lAmulet Boskiego Swiatla" to the player')

2015-04-09 15:15:49 [sEVERE] 'blaze powder' is not an item type (amu.sk, line 10: 'on rightclick with blaze powder:')

2015-04-09 15:15:49 [sEVERE] '1 blaze powder' is not an item type (amu.sk, line 18: 'give 1 blaze powder named "&6&lOgnisty Amulet Swiatla" to the player')

2015-04-09 15:15:49 [sEVERE] 'slimeball' is not an item type (amu.sk, line 19: 'on rightclick with slimeball:')

2015-04-09 15:15:49 [sEVERE] '1 slimeball' is not an item type (amu.sk, line 27: 'give 1 slimeball named "&6&lAmulet Boskiej Ochrony" to the player')

2015-04-09 15:15:49 [sEVERE] 'magma cream' is not an item type (amu.sk, line 28: 'on rightclick with magma cream:')

2015-04-09 15:15:49 [sEVERE] '1 magma cream' is not an item type (amu.sk, line 36: 'give 1 magma cream named "&6&lAmulet Magicznego Uzdrowienia" to the player')

2015-04-09 15:15:49 [sEVERE] 'blaze rod' is not an entity type (amu.sk, line 38: 'player's tool is blaze rod:')

2015-04-09 15:15:49 [sEVERE] '1 blaze rod' is not an item type (amu.sk, line 45: 'give 1 blaze rod named "&6&lMagiczna Rozdzka mocy" to the player')

2015-04-09 15:15:49 [sEVERE] 'rose bush' is not an item type (amu.sk, line 46: 'on rightclick with rose bush:')

2015-04-09 15:15:49 [sEVERE] '1 rose bush' is not an item type (amu.sk, line 54: 'give 1 rose bush named "&6&lMagiczny medalion zycia" to the player')

2015-04-09 15:15:49 [sEVERE] invalid line - all code has to be put into triggers (amu.sk, line 55: 'wait 7 day')

2015-04-09 15:15:49 [sEVERE] invalid line - all code has to be put into triggers (amu.sk, line 56: 'execute console command "/effect %player% clear"')

2015-04-09 15:15:49 [iNFO] loaded 1 script with a total of 1 trigger and 6 commands in 0.03 seconds

2015-04-09 15:15:49 [iNFO] [skript] Encountered 31 errors while reloading the config and all scripts!

Opublikowano

Aaa nie sory zle przecztalem.. Usun permission: i daj if player have permission "...": i w else mozesz dac wiadomosc wiec i permissions msg bo moze to jest zbugowane

Opublikowano

Tak powinno działać. (Nie chciało mi się instalować pluginu Skript.)
 

on rightclick with nether star:
    if name of player's tool is "&6&lAmulet Boskiego Swiatla":
        remove night vision from player
        apply night vision potion of tier 1 to the player for 1000 second
command /amuletboski:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 nether star of protection 1 named "&6&lAmulet Boskiego Swiatla" to the player
on rightclick with blaze powder:
    if name of player's tool is "&6&lOgnisty Amulet Swiatla":
        remove speed from player
        apply speed potion of tier 3 to the player for 750 second
command /amuletognisty:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 blaze powder named "&6&lOgnisty Amulet Swiatla" to the player
on rightclick with slimeball:
    if name of player's tool is "&6&lAmulet Boskiej Ochrony":
        remove fire resistance from player
        apply fire resistance potion of tier 3 to the player for 1000 second
command /amuletochrony:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 slimeball named "&6&lAmulet Boskiej Ochrony" to the player
on rightclick with magma cream:
    player's tool is magma cream:
        remove regeneration from player
        apply regeneration 4 to player for 10 seconds
command /amuletmagiczny:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 magma cream named "&6&lAmulet Magicznego Uzdrowienia" to the player
on rightclick:
    player's tool is blaze rod:
        remove power from player
        apply power 2 to player for 16 minutes
command /amuletmocy:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 blaze rod named "&6&lMagiczna Rozdzka mocy" to the player
on rightclick with rose bush:
    if name of player's tool is "&6&lMagiczny medalion zycia":
        apply health boost potion of tier 4 to the player for 100000 second
        remove rose bush named "&6&lMagiczny medalion zycia" from player's inventory
command /amuletzycia:
    permission: subron.admin
    permission message: &8>> &9Brak uprawnien!
    trigger:
        give 1 rose bush named "&6&lMagiczny medalion zycia" to the player

Dałem tabulatory zamiast spacji, bo było mi wygodniej. Bardzo pomieszałeś kod swoją drogą, ale obstawiam, że testowałeś różne kombinacje :)

 

P.S.
Może "lajka" dostane? ;p

"Największym szczęściem jest określić

wroga, przygotować wszystko, zemścić się, a

potem pójść spać." ~Josif Dżugaszwili

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...