WItam czy przerobił by mi ktoś ten script tak by osoba z odpowiedniem uprawnieniem(plecal.gracz, plecak.vip) wpisala /plecak i żeby np. vip nie musiał wpisywać /plecak vip tylko /plecak niezależnie od tego czy to jest gracz czy vip.
options:
linijki: 3
nazwaPlecakaWGui: &fPlecak
VIPlinijki: 6
VIPnazwaPlecakaWGui: &fPlecak
command /plecak:
trigger:
open chest with {@linijki} rows named "{@nazwaPlecakaWGui}" to player
wait 1 tick
loop {@linijki}*9 times:
set slot loop-number - 1 of current inventory of player to {nBackpack::%player%::%loop-number%}
on inventory close:
if inventory name of current inventory of player is "{@nazwaPlecakaWGui}":
clear {nBackpack::%player%::*}
loop {@linijki}*9 times:
set {nBackpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
VIPlinijki: 6
VIPnazwaPlecakaWGui: &eVIP&fPlecak
command /vip plecak:
trigger:
open chest with {@VIPlinijki} rows named "{@VIPnazwaPlecakaWGui}" to player
wait 1 tick
loop {@VIPlinijki}*9 times:
set slot loop-number - 1 of current inventory of player to {Backpack::%player%::%loop-number%}
on inventory close:
if inventory name of current inventory of player is "{@VIPnazwaPlecakaWGui}":
clear {Backpack::%player%::*}
loop {@VIPlinijki}*9 times:
set {Backpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
Pytanie
Olix 1
WItam czy przerobił by mi ktoś ten script tak by osoba z odpowiedniem uprawnieniem(plecal.gracz, plecak.vip) wpisala /plecak i żeby np. vip nie musiał wpisywać /plecak vip tylko /plecak niezależnie od tego czy to jest gracz czy vip.
options:
linijki: 3
nazwaPlecakaWGui: &fPlecak
VIPlinijki: 6
VIPnazwaPlecakaWGui: &fPlecak
command /plecak:
trigger:
open chest with {@linijki} rows named "{@nazwaPlecakaWGui}" to player
wait 1 tick
loop {@linijki}*9 times:
set slot loop-number - 1 of current inventory of player to {nBackpack::%player%::%loop-number%}
on inventory close:
if inventory name of current inventory of player is "{@nazwaPlecakaWGui}":
clear {nBackpack::%player%::*}
loop {@linijki}*9 times:
set {nBackpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
VIPlinijki: 6
VIPnazwaPlecakaWGui: &eVIP&fPlecak
command /vip plecak:
trigger:
open chest with {@VIPlinijki} rows named "{@VIPnazwaPlecakaWGui}" to player
wait 1 tick
loop {@VIPlinijki}*9 times:
set slot loop-number - 1 of current inventory of player to {Backpack::%player%::%loop-number%}
on inventory close:
if inventory name of current inventory of player is "{@VIPnazwaPlecakaWGui}":
clear {Backpack::%player%::*}
loop {@VIPlinijki}*9 times:
set {Backpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
command /info plecak:
trigger:
send "TU GRACZ"
send "TU VIP"
Odnośnik do komentarza
Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi