########################################################## # Skrypt na magazyn # # By Wungiel # # wiem że to nic nie daje ale # # zakaz kradnięcia xD # ########################################################## options: #Koszt za stworzenie cena.stworzenie: 2500 #Kost za ulepszenie nr 1 cena.1.ulepszenie: 5000 #Koszt za ulepszenie nr 2 cena.2.ulepszenie: 7500 command /magazyn []: 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 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 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 #co ty tu robisz #przecież tu nic na dole nie ma # # # # ##Skrypt by Wungiel # # # # #yoooooo nie kradnij hamie #wgl skrypt by Wungiel