ShadowEk 60 Opublikowano 26 lipca 2017 Udostępnij Opublikowano 26 lipca 2017 (edytowane) Siemka, właśnie napisałem skrypt na kity i nie wiem jak do niego dodać czas, np: Jak nie minęło tyle czasu to nie może wziąć tego kita, czas jest podany w skrypcie: Link: Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! 10 min - Gracz 20 min - Drewno 12h - Vip 12h - Svip 12h - Sponsor Edytowane 26 lipca 2017 przez ShadowEk Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 26 lipca 2017 Udostępnij Opublikowano 26 lipca 2017 Przy użyciu kitu ustaw zmienną czasu (w minutach) coś takiego command /kit blabla: trigger: if {kitczas::%player%} =< 0: dawanie kitów etc.. set {kitczas::%player%} to czas else: message "nie mozesz teraz" i potem dajesz every minute: loop all players: if {kitczas::%loop-player%} > 0: add -1 to {kitczas::%loop-player%} Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 ShadowEk 60 Opublikowano 26 lipca 2017 Autor Udostępnij Opublikowano 26 lipca 2017 1 minutę temu, esej napisał: Przy użyciu kitu ustaw zmienną czasu (w minutach) coś takiego command /kit blabla: trigger: if {kitczas::%player%} =< 0: dawanie kitów etc.. set {kitczas::%player%} to czas else: message "nie mozesz teraz" i potem dajesz every minute: loop all players: if {kitczas::%loop-player%} > 0: add -1 to {kitczas::%loop-player%} możesz mi dodać to do skryptu? bo nie rozumiem troche ;/ Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 KrejzolekPRO 599 Opublikowano 26 lipca 2017 Udostępnij Opublikowano 26 lipca 2017 (edytowane) 3 minuty temu, ShadowEk napisał: możesz mi dodać to do skryptu? bo nie rozumiem troche ;/ command /kit [<text>]: trigger: if arg 1 is not set: set {_x::*} to configuration section "kits" get of "plugins/MineCast-Tools/config.yml" set {_num} to 0 open chest with 1 rows named "&eZestawy: " to player set {rift::%player%} to true wait 2 tick loop {_x::*}: if {kits::%loop-value%::%player%} is not set: set {kits::%loop-value%::%player%} to now remove 20 day from {kits::%loop-value%::%player%} send "&7Wykonaj ponowanie komende." else: set {_x} to single value "kits.%loop-value%.delay" get of "plugins/MineCast-Tools/config.yml" parsed as number loop {_x} times: remove 1 hour from {kits::%arg 1%::%player%} clear {rift::%player%} set {_nazwa} to coloured single value "kits.%loop-value%.name" get of "plugins/MineCast-Tools/config.yml" parsed as text set {_item} to coloured single value "kits.%loop-value%.item" get of "plugins/MineCast-Tools/config.yml" parsed as item set {_lore} to coloured single value "kits.%loop-value%.lore" get of "plugins/MineCast-Tools/config.yml" parsed as text format slot {_num} of player with 1 of {_item} named "%{_nazwa}%" with lore "%{_lore}%" to close then run [execute player command "kit %loop-value%"] add 1 to {_num} if arg 1 is set: send "%arg 1%" set {_waited} to difference between {kits::%arg 1%::%player%} and now set {_x} to single value "kits.%arg 1%.delay" get of "plugins/MineCast-Tools/config.yml" parsed as number set {_x} to "%{_x}% hours" parsed as a timespan set {_rank} to single value "kits.%arg 1%.permission" get of "plugins/MineCast-Tools/config.yml" parsed as text if player has permission "%{_rank}%": if {_waited} is greater than {_x}: set {kits::%arg 1%::%player%} to now loop 36 times: set {_item.%loop-number%} to single value "kits.%arg 1%.items.%loop-number-2%" get of "plugins/MineCast-Tools/config.yml" parsed as item if player can hold {_item.%loop-number%}: give player {_item.%loop-number%} else: drop {_item.%loop-number%} at location of player send "&e&lZestawy: &7Otrzymales zestaw: &e%arg 1%&7." else: send "&c&lBlad: &7Musisz jeszcze troche zaczekac..." else: send "&c&lBlad: &7Nie masz uprawnien." on rightclick: if {rift::%player%} is set: cancel event I config.yml, wklejsz do plugins/MineCast-Tools/config.yml: kits: STEAK: permission: 'minecast.kits.steak' delay: 0 name: '&eZestaw mieso:' item: 'steak' lore: '&7Klknij i odbierz: &eKIT MIESO||&7Opoznienie: &eBrak opoznienia&7.' items: 1: '64 steak' 2: '64 steak' GRACZ: permission: 'minecast.kits.gracz' delay: 12 name: '&eZestaw gracza:' item: 'stone pickaxe' lore: '&7Klknij i odbierz: &eKIT GRACZ||&7Opoznienie: &e12 godzin&7.' items: 1: 'stone pickaxe' 2: '64 steak' 3: '64 steak' 4: 'ender chest' VIP: permission: 'minecast.kits.vip' delay: 2 name: '&eZestaw vipa:' item: 'diamond pickaxe' lore: '&7Klknij i odbierz: &eKIT VIP||&7Opoznienie: &e24 godziny&7.' items: 1: 'diamond sword of sharpness 5 and fire aspect 2' 2: '4 enchanted golden apple' 3: '16 golden apple' 4: 'diamond sword of knockback 2' 5: 'diamond chestplate of protection 4 and unbreaking 3' 6: 'diamond helmet of protection 4 and unbreaking 3' 7: 'diamond leggings of protection 4 and unbreaking 3' 8: 'diamond boots of protection 4 and unbreaking 3' 9: 'diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3' 10: '4 ender pearl' Delay w configu jest podawany w godzinach. Edytowane 26 lipca 2017 przez KrejzolekPRO Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 ShadowEk 60 Opublikowano 26 lipca 2017 Autor Udostępnij Opublikowano 26 lipca 2017 1 minutę temu, KrejzolekPRO napisał: command /kit [<text>]: trigger: if arg 1 is not set: set {_x::*} to configuration section "kits" get of "plugins/MineCast-Tools/config.yml" set {_num} to 0 open chest with 1 rows named "&eZestawy: " to player set {rift::%player%} to true wait 2 tick loop {_x::*}: replace all "&5" with "" in {_n.%loop-value%} replace all "&o" with "" in {_n.%loop-value%} if {kits::%loop-value%::%player%} is not set: set {kits::%loop-value%::%player%} to now remove 20 day from {kits::%loop-value%::%player%} send "&7Wykonaj ponowanie komende." else: set {_x} to single value "kits.%loop-value%.delay" get of "plugins/MineCast-Tools/config.yml" parsed as number loop {_x} times: remove 1 hour from {kits::%arg 1%::%player%} clear {rift::%player%} set {_nazwa} to coloured single value "kits.%loop-value%.name" get of "plugins/MineCast-Tools/config.yml" parsed as text set {_item} to coloured single value "kits.%loop-value%.item" get of "plugins/MineCast-Tools/config.yml" parsed as item set {_lore} to coloured single value "kits.%loop-value%.lore" get of "plugins/MineCast-Tools/config.yml" parsed as text format slot {_num} of player with 1 of {_item} named "%{_nazwa}%" with lore "%{_lore}%||%loop-value%" to close then run [execute player command "kit %loop-value%"] add 1 to {_num} if arg 1 is set: send "%arg 1%" set {_waited} to difference between {kits::%arg 1%::%player%} and now set {_x} to single value "kits.%arg 1%.delay" get of "plugins/MineCast-Tools/config.yml" parsed as number set {_x} to "%{_x}% hours" parsed as a timespan set {_rank} to single value "kits.%arg 1%.permission" get of "plugins/MineCast-Tools/config.yml" parsed as text if player has permission "%{_rank}%": if {_waited} is greater than {_x}: set {kits::%arg 1%::%player%} to now loop 36 times: set {_item.%loop-number%} to single value "kits.%arg 1%.items.%loop-number-2%" get of "plugins/MineCast-Tools/config.yml" parsed as item if player can hold {_item.%loop-number%}: give player {_item.%loop-number%} else: drop {_item.%loop-number%} at location of player send "&e&lZestawy: &7Otrzymales zestaw: &eVIP&7." else: send "&c&lBlad: &7Musisz jeszcze troche zaczekac..." else: send "&c&lBlad: &7Nie masz uprawnien." on rightclick: if {rift::%player%} is set: cancel event I config.yml, wklejsz do plugins/MineCast-Tools/config.yml: kits: STEAK: permission: 'minecast.kits.steak' delay: 0 name: '&eZestaw mieso:' item: 'steak' lore: '&7Klknij i odbierz: &eKIT MIESO||&7Opoznienie: &eBrak opoznienia&7.' items: 1: '64 steak' 2: '64 steak' GRACZ: permission: 'minecast.kits.gracz' delay: 12 name: '&eZestaw gracza:' item: 'stone pickaxe' lore: '&7Klknij i odbierz: &eKIT GRACZ||&7Opoznienie: &e12 godzin&7.' items: 1: 'stone pickaxe' 2: '64 steak' 3: '64 steak' 4: 'ender chest' VIP: permission: 'minecast.kits.vip' delay: 2 name: '&eZestaw vipa:' item: 'diamond pickaxe' lore: '&7Klknij i odbierz: &eKIT VIP||&7Opoznienie: &e24 godziny&7.' items: 1: 'diamond sword of sharpness 5 and fire aspect 2' 2: '4 enchanted golden apple' 3: '16 golden apple' 4: 'diamond sword of knockback 2' 5: 'diamond chestplate of protection 4 and unbreaking 3' 6: 'diamond helmet of protection 4 and unbreaking 3' 7: 'diamond leggings of protection 4 and unbreaking 3' 8: 'diamond boots of protection 4 and unbreaking 3' 9: 'diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3' 10: '4 ender pearl' Delay w configu jest podawany w godzinach. Dodaj mi to do skryptu... nie jestem zaawansowany Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 KrejzolekPRO 599 Opublikowano 26 lipca 2017 Udostępnij Opublikowano 26 lipca 2017 Teraz, ShadowEk napisał: Dodaj mi to do skryptu... nie jestem zaawansowany Człowieku ja ci to najbardziej jak mogłem ukróciłem. NIE POTRAFISZ ZE WZORU DODAĆ WŁASNYCH KITÓW TO ZNAK, ŻE CZAS WYJŚĆ NA DWÓR. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 ShadowEk 60 Opublikowano 26 lipca 2017 Autor Udostępnij Opublikowano 26 lipca 2017 Teraz, KrejzolekPRO napisał: Człowieku ja ci to najbardziej jak mogłem ukróciłem. NIE POTRAFISZ ZE WZORU DODAĆ WŁASNYCH KITÓW TO ZNAK, ŻE CZAS WYJŚĆ NA DWÓR. Przykre, jeżeli nie rozumiesz słowa "dodaj do skryptu" to nic nie pisz Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
0 KrejzolekPRO 599 Opublikowano 26 lipca 2017 Udostępnij Opublikowano 26 lipca 2017 Teraz, ShadowEk napisał: Przykre, jeżeli nie rozumiesz słowa "dodaj do skryptu" to nic nie pisz Skrypt, który sprzedawałem po 20 zł i daje Ci go za darmo a ty nie chcesz ;`) Jeżeli nie potrafisz wkleić dwóch plików do folderu to jesteś kompletnym BEZMÓZGIEM - poproszę o warna innego słowa nie dało się znaleźć. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
ShadowEk 60
Siemka, właśnie napisałem skrypt na kity i nie wiem jak do niego dodać czas, np: Jak nie minęło tyle czasu to nie może wziąć tego kita, czas jest podany w skrypcie:
Link:
Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
10 min - Gracz
20 min - Drewno
12h - Vip
12h - Svip
12h - Sponsor
Edytowane przez ShadowEkOdnośnik do komentarza
Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi