Potrzebuję pomocy nie wiem jak zrobić w tym oto skrypcie to żeby można było robić az 3 magazyny a za trzecim była by blokada
Dodać również że za trzecim powiększeniem swojego magazynu robią się dwie duże skrzynki dwa na dwa oczywiście w gui
Z góry dzięki liczę na szybką pomoc
options:
cena.stworzenie: 2000
cena.1.ulepszenie: 2500
cena.2.ulepszenie: 3500
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 money 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 otworz &4aby otowrzyc magazyn."
if arg 1 is "powieksz":
if {magazyn.%player%} is 1:
set {_u} to {@cena.1.ulepszenie} - 0.01
if player's money 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 money 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 "&4Usunales 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
Pytanie
Maurys2 0
Witam.
Potrzebuję pomocy nie wiem jak zrobić w tym oto skrypcie to żeby można było robić az 3 magazyny a za trzecim była by blokada
Dodać również że za trzecim powiększeniem swojego magazynu robią się dwie duże skrzynki dwa na dwa
oczywiście w gui 
Z góry dzięki liczę na szybką pomoc
options:
Edytowane przez Maurys2cena.stworzenie: 2000
cena.1.ulepszenie: 2500
cena.2.ulepszenie: 3500
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 money 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 otworz &4aby otowrzyc magazyn."
if arg 1 is "powieksz":
if {magazyn.%player%} is 1:
set {_u} to {@cena.1.ulepszenie} - 0.01
if player's money 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 money 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 "&4Usunales 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/18796-skript-o-magazynie-szybka-pomoc/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi