Skocz do zawartości
  • 0

Pomoże mi ktoś z błędami?


Pytanie

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
52 minuty temu, KrejzolekPRO napisał:

Jakim cudem? Daj ss.

sekunda A może ty zmienisz bo może źle robie :P

 

 

52 minuty temu, KrejzolekPRO napisał:

Jakim cudem? Daj ss.

Jak możesz to ty zmień

Łączę //Michma1707

Odnośnik do komentarza
https://skript.pl/temat/16989-pomo%C5%BCe-mi-kto%C5%9B-z-b%C5%82%C4%99dami/#findComment-116203
Udostępnij na innych stronach

  • 0
34 minuty temu, Hvgdc napisał:

Dałeś mi bez zmiany xD

 

Jak to? Są zmiany tylko edytor jest zbugowany... 

 

Spoiler

options:
    cena.stworzenie: 500
    cena.1.ulepszenie: 1000
    cena.2.ulepszenie: 1500
command /magazyn [<text="null">]:
    aliases: /deposit
    trigger:
        if arg 1 is not "stworz" or "powieksz" or "otworz" or "usun":
            send "&7Komendy dla wyrazenia &cMagazyn&7:"
            send "&6/magazyn stworz &8- &7Tworzy magazyn"
            send "&6/magazyn powieksz &8- &7Powieksza magazyn o 9 slotow"
            send "&6/magazyn otworz &8- &7Otwiera magazyn"
            send "&6/magazyn usun &8- &7Usuwa magazyn"
        if arg 1 is "stworz":
            if {magazyn.%player%} is not set:
                set {_u} to {@cena.stworzenie} - 0.01
                if player's balance is more than {_u}:
                    set {magazyn.%player%} to 1
                    send "&aTwoj magazyn zostal stworzony!"
                    subtract {@cena.stworzenie} from player's money
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.stworzenie}$&7)"
            else:
                send "&4Stworzyles juz swoj magazyn wpisz &6/magazyn otowrz &4aby otowrzyc magazyn."
        if arg 1 is "powieksz":
            if {magazyn.%player%} is 1:
                set {_u} to {@cena.1.ulepszenie} - 0.01
                if player's balance is more than {_u}:
                    send "&aTwoj magazyn zostal powiekszony: &618 slotow&a!"
                    subtract {@cena.1.ulepszenie} from player's money
                    set {magazyn.%player%} to 2
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.1.ulepszenie}$&7)"
            if {magazyn.%player%} is 2:
                set {_u} to {@cena.2.ulepszenie} - 0.01
                if player's balance is more than {_u}:
                    send "&aTwoj magazyn zostal powiekszony: &627 slotow&a!"
                    subtract {@cena.2.ulepszenie} from player's money
                    set {magazyn.%player%} to 3
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.2.ulepszenie}$&7)"
            if {magazyn.%player%} is 3:
                send "&3Twojego magazynu nie da sie juz powiekszyc!"
        if arg 1 is "otworz":
            if {magazyn.%player%} is 1:
                open chest with 1 rows named "&lTwoj magazyn: &69 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is 2:
                open chest with 2 rows named "&lTwoj magazyn: &618 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is 3:
                open chest with 3 rows named "&lTwoj magazyn: &627 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is not set:
                send "&4Nie masz stworzonego magazynu!"
        if arg 1 is "usun":
            if {magazyn.%player%} is set:
                delete {magazyn.%player%}
                delete {magazyn.%player%::*}
                send "&4Usunoles swoj magazyn!"
                stop
            else:
                send "&4Nie masz swojego magazynu!"
on inventory close:
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &69 slotow":
        set {_m} to 0
        loop 9 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &618 slotow":
        set {_m} to 0
        loop 18 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &627 slotow":
        set {_m} to 0
        loop 27 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop

 

 

Odnośnik do komentarza
https://skript.pl/temat/16989-pomo%C5%BCe-mi-kto%C5%9B-z-b%C5%82%C4%99dami/#findComment-116233
Udostępnij na innych stronach

  • 0
2 minuty temu, KrejzolekPRO napisał:

Jak to? Są zmiany tylko edytor jest zbugowany... 

 

  Ukryj zawartość


options:
    cena.stworzenie: 500
    cena.1.ulepszenie: 1000
    cena.2.ulepszenie: 1500
command /magazyn [<text="null">]:
    aliases: /deposit
    trigger:
        if arg 1 is not "stworz" or "powieksz" or "otworz" or "usun":
            send "&7Komendy dla wyrazenia &cMagazyn&7:"
            send "&6/magazyn stworz &8- &7Tworzy magazyn"
            send "&6/magazyn powieksz &8- &7Powieksza magazyn o 9 slotow"
            send "&6/magazyn otworz &8- &7Otwiera magazyn"
            send "&6/magazyn usun &8- &7Usuwa magazyn"
        if arg 1 is "stworz":
            if {magazyn.%player%} is not set:
                set {_u} to {@cena.stworzenie} - 0.01
                if player's balance is more than {_u}:
                    set {magazyn.%player%} to 1
                    send "&aTwoj magazyn zostal stworzony!"
                    subtract {@cena.stworzenie} from player's money
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.stworzenie}$&7)"
            else:
                send "&4Stworzyles juz swoj magazyn wpisz &6/magazyn otowrz &4aby otowrzyc magazyn."
        if arg 1 is "powieksz":
            if {magazyn.%player%} is 1:
                set {_u} to {@cena.1.ulepszenie} - 0.01
                if player's balance is more than {_u}:
                    send "&aTwoj magazyn zostal powiekszony: &618 slotow&a!"
                    subtract {@cena.1.ulepszenie} from player's money
                    set {magazyn.%player%} to 2
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.1.ulepszenie}$&7)"
            if {magazyn.%player%} is 2:
                set {_u} to {@cena.2.ulepszenie} - 0.01
                if player's balance is more than {_u}:
                    send "&aTwoj magazyn zostal powiekszony: &627 slotow&a!"
                    subtract {@cena.2.ulepszenie} from player's money
                    set {magazyn.%player%} to 3
                    stop
                else:
                    send "&4Nie masz tylu pieniedzy! &7(&6Koszt: &c{@cena.2.ulepszenie}$&7)"
            if {magazyn.%player%} is 3:
                send "&3Twojego magazynu nie da sie juz powiekszyc!"
        if arg 1 is "otworz":
            if {magazyn.%player%} is 1:
                open chest with 1 rows named "&lTwoj magazyn: &69 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is 2:
                open chest with 2 rows named "&lTwoj magazyn: &618 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is 3:
                open chest with 3 rows named "&lTwoj magazyn: &627 slotow" to player
                wait a tick
                loop {magazyn.%player%::*}:
                    set player's current inventory's slot loop-index parsed as integer to loop-value
                stop
            if {magazyn.%player%} is not set:
                send "&4Nie masz stworzonego magazynu!"
        if arg 1 is "usun":
            if {magazyn.%player%} is set:
                delete {magazyn.%player%}
                delete {magazyn.%player%::*}
                send "&4Usunoles swoj magazyn!"
                stop
            else:
                send "&4Nie masz swojego magazynu!"
on inventory close:
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &69 slotow":
        set {_m} to 0
        loop 9 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &618 slotow":
        set {_m} to 0
        loop 18 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop
    if "%inventory name of player's current inventory%" is "&lTwoj magazyn: &627 slotow":
        set {_m} to 0
        loop 27 times:
            set {magazyn.%player%::%{_m}%} to player's current inventory's slot {_m}
            add 1 to {_m}
        stop

 

 

Nadal błędy tylko teraz z player's money na player's balance

Odnośnik do komentarza
https://skript.pl/temat/16989-pomo%C5%BCe-mi-kto%C5%9B-z-b%C5%82%C4%99dami/#findComment-116235
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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