Merhaba,
Bugün sizlere AlphaChest'den daha kullanışlı olan sınırsız chest skripti ile karşınızdayım. Chest limitini siz ayarlayabiliyorsunuz. Oyunculara hangi chest permissionlarını verirseniz oyuncularda o chestleri kullanabilirler.
Komutlar,
Kod:
/chest - sandığınızı açar.
/chest <rakam> - istediğiniz sandığınızı açar.
Yetkiler,
Kod:
extrachest.1 - 1'ci chesti açabilirsiniz.
Gerekenler,
Kod:
Skript 2.2
TuSKe
Resimler,
Video,
Kodumuz,
Kod:
#OPTİONS
options:
ekstra-chest-limiti: 5
#ExtraChest
command /extrachest [<number>]:
aliases: /chest
trigger:
#CHEST 1
arg-1 isn't set:
execute player command "/chest 1"
stop trigger
arg-1 is less than or equal to {@ekstra-chest-limiti}:
player does not have permission "extrachest.%arg-1%":
close player's inventory
message "&c&lCHEST: &6%arg-1%'nci chesti açmak için yetkiniz yok."
stop trigger
set {_x} to arg 1 + 1
set {_y} to arg 1 - 1
open virtual chest with size 4 named "&8&lChest [ %arg-1%/%{_x}% ]" to player
set {inv.%player%} to arg-1
loop {extrachest.%arg-1%::%player%::*}:
add loop-value to slot loop-index parsed as integer of current inventory of player
make gui slot 35 of player with lava bucket named "&6Next Page - %{_x}%" with lore "&7Click here to next page." to run player command "/chest %{_x}%"
make gui slot 34 of player with water bucket named "&6Back to Page - 1" with lore "&7Click here to back to main page." to run player command "/chest 1"
else:
message "&c&lCHEST: &6En {@ekstra-chest-limiti} kadar chest kullanılabilir ayarlardan değişebilirsiniz."
#CLOSE
on inventory close:
{inv.%player%} is set:
loop 34 times:
set {extrachest.%{inv.%player%}%::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
delete {inv.%player%}