Skocz do zawartości
  • 0

drop


Kurzin
 Udostępnij

Pytanie

Spoiler
options:
 expobs: 12
 exp: 6
 turboexpobs: 24
 turboexp: 12

 diax: 1.8
 zloto: 1.7
 proch: 1.9
 zelazo: 1.9
 redstone: 2.0
 wegiel: 2.0
 lapis: 2.0
 obsydian: 1.7
 perla: 0.002
 ksiazka: 1.0

 turbodiax: 3.0
 turbozloto: 3.0
 turboproch: 3.0
 turbozelazo: 3.0
 turboredstone: 3.0
 turbowegiel: 3.0
 turbolapis: 3.0
 turboobsydian: 3.0
 turboperla: 3.0
 turboksiazka: 3.0


on mine of any ore:
  cancel event
  set block to air
  send "&c&lBLAD: &7Drop z rud jest &c&lWYLACZONY"
  stop

on join:
  wait 1 second
  clear {diax::%player%}
  clear {zloto::%player%}
  clear {proch::%player%}
  clear {zelazo::%player%}
  clear {redstone::%player%}
  clear {wegiel::%player%}
  clear {lapis::%player%}
  clear {obsydian::%player%}
  clear {perla::%player%}
  clear {ksiazka::%player%}
  set {diax::%player%} to "&a&lTAK"
  set {zloto::%player%} to "&a&lTAK"
  set {proch::%player%} to "a&lTAK"
  set {zelazo::%player%} to "&a&lTAK"
  set {redstone::%player%} to "a&lTAK"
  set {wegiel::%player%} to "&a&lTAK"
  set {lapis::%player%} to "a&lTAK"
  set {obsydian::%player%} to "&a&lTAK"
  set {perla::%player%} to "a&lTAK"
  set {ksiazka::%player%} to "a&lTAK"

on first join:
  wait 1 second
  set {diax::%player%} to "&a&lTAK"
  set {zloto::%player%} to "&a&lTAK"
  set {proch::%player%} to "&a&lTAK"
  set {zelazo::%player%} to "&a&lTAK"
  set {redstone::%player%} to "&a&lTAK"
  set {wegiel::%player%} to "&a&lTAK"
  set {lapis::%player%} to "&a&lTAK"
  set {obsydian::%player%} to "&a&lTAK"
  set {perla::%player%} to "&a&lTAK"
  set {ksiazka::%player%} to "&a&lTAK"

every 5 seconds:
  if {turboexp::%player%} is set:
    if now is more than {czasturboexp}:
      clear {turboexp::%player%}
      set {turboexp.status::%player%} to "&c&lBRAK"
      set {czasturboexp::%player%} to "&c&l-"
      set {czasturboexp1::%Player%} to "&c&l-"
      broadcast "&2&lTURBOEXP &7zostal &c&lWYLACZONY &7,poniewaz jego czas &c&lPRZEDAWNIL SIE"
  if {turbodrop::%player%} is set:
    if now is more than {czasturbodrop}:
      clear {turbodrop::%player%}
      set {turbodrop.status::%player%} to "&c&lBRAK"
      set {czasturbodrop::%player%} to "&c&l-"
      set {czasturbodrop1::%player%} to "&c&l-"
      broadcast "&2&lTURBODROP &7zostal &c&lWYLACZONY &7,poniewaz jego czas &c&lPRZEDAWNIL SIE"

on script load:
  clear {turboexp::%player%}
  set {turboexp.status::%player%} to "&c&lBRAK"
  set {czasturboexp::%player%} to "&c&l-"
  set {czasturboexp1::%player%} to "&c&l-"
  clear {turbodrop::%player%}
  set {turbodrop.status::%player%} to "&c&lBRAK"
  set {czasturbodrop::%player%} to "&c&l-"
  set {czasturbodrop1::%player%} to "&c&l-"


command /turbodrop [<text>] [<text>] [<text>]:
  permission: vpsTools.turbo
  permission message: &c&lBLAD: &7Brak uprawnien: &cvpsTools.turbo
  trigger:
    if arg-1 is not set:
      send "&c&lBLAD: &7Poprawne uzycie: &c/turbodrop daj/zabierz nick/all czas(1-2h)"
    if arg-2 is not set:
      send "&c&lBLAD: &7Poprawne uzycie: &c/turbodrop daj/zabierz nick/all czas(1-2h)"
    if arg-3 is not set:
      send "&c&lBLAD: &7Poprawne uzycie: &c/turbodrop daj/zabierz nick/all czas(1-2h)"
    if arg-1 is "daj":
      if arg-2 is player:
        if arg-3 is "1":
          set {turbodrop::%arg 2%} to "&a&lWLACZONY"
          set {turbodrop.status::%arg 2%} to "&a&lWLACZONY"
          add 1 hour to {czasturbodrop::%arg 2%}
          broadcast "&2&lTURBODROP &7dla %arg 2% &7zostal &a&lWLACZONY &7 na &c1H"
        if arg-3 is "2":
          set {turbodrop::%player%} to "&a&lWLACZONY"
          set {turbodrop.status::%arg 2%} to "&a&lWLACZONY"
          add 2 hour to {czasturbodrop::%arg 2%}
          broadcast "&2&lTURBODROP &7dla %arg 2% &7zostal &a&lWLACZONY &7 na &c2H"
      if arg-2 is "all"
        if arg-3 is "1":
          loop all players:
            set {turbodrop::%loop-players%} to "&a&lWLACZONY"
            set {turbodrop.status::%loop-players%} to "&a&lWLACZONY"
            add 1 hour to {czasturbodrop::%loop-players%}
            broadcast "&2&lTURBODROP &7dla calego serwera zostal &a&lWLACZONY &7na &c1H"

 

bledy:

Spoiler
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 8 spaces (rtyrtyrdy.sk, line 122: if arg-3 is "1":')
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 10 spaces (rtyrtyrdy.sk, line 123: loop all players:')
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 124: set {turbodrop::%loop-players%} to "&a&lWLACZONY"')
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 125: set {turbodrop.status::%loop-players%} to "&a&lWLACZONY"')
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 126: add 1 hour to {czasturbodrop::%loop-players%}')
[13:00:21 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 127: broadcast "&2&lTURBODROP &7dla calego serwera zostal &a&lWLACZONY &7na &c1H"')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 8 spaces (rtyrtyrdy.sk, line 122: if arg-3 is "1":')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 10 spaces (rtyrtyrdy.sk, line 123: loop all players:')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 124: set {turbodrop::%loop-players%} to "&a&lWLACZONY"')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 125: set {turbodrop.status::%loop-players%} to "&a&lWLACZONY"')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 126: add 1 hour to {czasturbodrop::%loop-players%}')
[13:00:24 ERROR]: indentation error: expected 6 spaces, but found 12 spaces (rtyrtyrdy.sk, line 127: broadcast "&2&lTURBODROP &7dla calego serwera zostal &a&lWLACZONY &7na &c1H"')
[13:00:24 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (rtyrtyrdy.sk, line 73: if {turboexp::%player%} is set:')
[13:00:24 ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (rtyrtyrdy.sk, line 80: if {turbodrop::%player%} is set:')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 89: clear {turboexp::%player%}')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 90: set {turboexp.status::%player%} to "&c&lBRAK"')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 91: set {czasturboexp::%player%} to "&c&l-"')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 92: set {czasturboexp1::%player%} to "&c&l-"')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 93: clear {turbodrop::%player%}')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 94: set {turbodrop.status::%player%} to "&c&lBRAK"')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 95: set {czasturbodrop::%player%} to "&c&l-"')
[13:00:24 ERROR]: There's no player in an on script load/unload event (rtyrtyrdy.sk, line 96: set {czasturbodrop1::%player%} to "&c&l-"')
[13:00:24 ERROR]: Can't compare 'if arg-2' with a text (rtyrtyrdy.sk, line 121: if arg-2 is "all"')
[13:00:24 INFO]: Loaded 2 scripts with a total of 18 triggers and 14 commands in 3.37 seconds
[13:00:24 INFO]: [Skript] Encountered 25 errors while reloading the config and all scripts!

 

SILNIK: NAJNOWSZY PAPERSPIGOT 1.9.2

WILDSKRIPT:  z Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

SkQuery: z Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Skript: Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! (przedostatni update) na ostatnim to samo

//Pakuję kod i błędy do spoilerów ~Derpy

Odnośnik do komentarza
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

To nie YAML, podwójnych spacji się nie używa tylko tabów

Niektóre eventy nie obsługują graczy, dopóki nie użyjesz pętli

Ostatni error: nie dałeś dwukropka

Chociaż sam już nie wiem od czego zacząć bo wg mnie na taki kod zrobiłeś za dużo błędów

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
12 minut temu, Derpy Hooves napisał:

To nie YAML, podwójnych spacji się nie używa tylko tabów

Niektóre eventy nie obsługują graczy, dopóki nie użyjesz pętli

Ostatni error: nie dałeś dwukropka

Chociaż sam już nie wiem od czego zacząć bo wg mnie na taki kod zrobiłeś za dużo błędów

 

Nigdzie nie zrobiłem ani jednej spacji same taby. potem jeszcze usuwalem to backspacem i robilem od nowa taby i ciagle gowno. to z dwukropkiem poprawilem i nadal pierdyliard bledow.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Atom z tym dodatkiem do skripta. Ustawienia defaultowe oprocz tego dodatku skripta.

 

a jak otwieram np. notepadem to sa spacja a ustawienia takei same

 

 

// Jak otworzylem to w Notepadzie i poprawielm zeby byly taby errory te same nic sie nie zmienilo.. 

Edytowane przez Kurzin
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...