Sol Reklam
Sağ Reklam

Kit Kaydetme Skript Lazım?

Durum
Mesaj gönderimine kapalı.

Baranios75

Birisi mi Spawnlandı?
Katılım
22 Haziran 2017
Mesajlar
3
Elmaslar
0
Puanlar
0
Yaş
30
  • Merhaba. PVP Sunucusu Tasarlıyorum fakat bunun için kit kaydetme skript lazım. Bildiğiniz güzel kit kaydetme skript varsa yardımcı olurmusunuz?
 

NightWish™ ℂ⋆

Somon Balığı Selam Vermeye Geldi
Katılım
15 Haziran 2017
Mesajlar
14
Elmaslar
2
Puanlar
0
Yaş
24
Kod:
command /starterkit [<text>] [<player>]:
    trigger:
        if arg 1 is not "load" or "save" or "unsave" or "unsaveall" or "saveplace":
            send "{@prefix} &cYou did something wrong&8."
            stop
        if arg 1 is not set:
            send "{@prefix} &6Starterkit Commands"
            if player has the permission "starterkit.give":
                send "{@prefix} &7/starterkit load &8(&7<player>&8)"
                send "{@prefix} &7/starterkit unsaveall"
            send "{@prefix} &7/starterkit save"
            send "{@prefix} &7/starterkit unsave"
            send "{@prefix} &7/starterkit saveplace"
            stop
        if arg 1 is "load":
            if player has the permission "starterkit.give":
                if arg 2 is not set:
                    if {kitinv.saved.%player%} is not set:
                        clear the player's inventory
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to player
                        set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                        set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                        set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                        set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
                        set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                        equip player with {@helmet.mat} helmet
                        equip player with {@chestplate.mat} chestplate
                        equip player with {@leggings.mat} leggings
                        equip player with {@boots.mat} boots
                        stop
                    else if {kitinv.saved.%player%} is set:
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to player
                        clear the player's inventory
                        equip player with {@helmet.mat} helmet
                        equip player with {@chestplate.mat} chestplate
                        equip player with {@leggings.mat} leggings
                        equip player with {@boots.mat} boots
                        set {_slot} to 0
                        loop 36 times:
                            set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
                            add 1 to {_slot}
                        set slot 0 of player to {kitinv.slotzero.%player%}
                        stop
                if arg 2 is set:
                    if {kitinv.saved.%arg 2%} is not set:
                        clear the arg 2's inventory
                        message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
                        set slot {@sword.slot} of arg 2 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                        set slot {@fns.slot} of arg 2 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                        set slot {@fishingrod.slot} of arg 2 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                        set slot {@bow.slot} of arg 2 to bow named "{@bow.name}" with lore "{@bow.lorename}"
                        set slot {@arrow.slot} of arg 2 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                        equip arg 2 with {@helmet.mat} helmet
                        equip arg 2 with {@chestplate.mat} chestplate
                        equip arg 2 with {@leggings.mat} leggings
                        equip arg 2 with {@boots.mat} boots
                        stop
                    else if {kitinv.saved.%arg 2%} is true:
                        message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
                        clear the arg 2's inventory
                        equip arg 2 with {@helmet.mat} helmet
                        equip arg 2 with {@chestplate.mat} chestplate
                        equip arg 2 with {@leggings.mat} leggings
                        equip arg 2 with {@boots.mat} boots
                        set {_slot} to 0
                        loop 36 times:
                            set slot {_slot} of arg 2 to {kitinv.%{_slot}%.%arg 2%}
                            add 1 to {_slot}
                        set slot 0 of arg 2 to {kitinv.slotzero.%arg 2%}
                        stop
            else:
                send "{@prefix} {@noperm}"
        if arg 1 is "saveplace":
            teleport player to {warp.saveplace}
            send "{@prefix} &2You are teleported to starterkit saveplace!"
            set {save.available.%player%} to true
            clear the player's inventory
        if arg 1 is "save":
            if arg 2 is not set:
                if {save.available.%player%} is true:
                    if player has 1 {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}":
                        if player has 1 flint and steel named "{@fns.name}" with lore "{@fns.lorename}":
                            if player has 1 bow named "{@bow.name}" with lore "{@bow.lorename}":
                                if player has {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}":
                                    set {_kitinvslot} to 0
                                    loop 36 times:
                                        set {kitinv.%{_slot}%.%player%} to slot {_slot} of player
                                        add 1 to {_slot}
                                    set {kitinv.saved.%player%} to true
                                    set {kitinv.slotzero.%player%} to slot 0 of player
                                    wait 5 ticks
                                    send "{@prefix} &cLoading..."
                                    wait 10 ticks
                                    send "{@prefix} &eYou've successfully saved your inventory!"
                                    stop
                                else:
                                    send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                            else:
                                send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                        else:
                            send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                    else:
                        send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                else:
                    send "{@prefix} &cYou cannot save your inventory in unavailable!"
        if arg 1 is "unsave":
            delete {kitinv.saved.%player%}
            wait 5 ticks
            send "{@prefix} &cLoading..."
            wait 10 ticks
            clear the player's inventory
            set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
            set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
            set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
            set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
            set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
            equip player with {@helmet.mat} helmet
            equip player with {@chestplate.mat} chestplate
            equip player with {@leggings.mat} leggings
            equip player with {@boots.mat} boots
            send "{@prefix} &eYou've successfully unsaved your inventory!"
            stop
        if arg 1 is "unsaveall":
            if player has the permission "strtrkt.give":
                loop all players:
                    delete {kitinv.saved.%loop-player%}
                wait 5 ticks
                send "{@prefix} &cLoading..."
                wait 10 ticks
                loop all players:
                    clear the loop-player's inventory
                    set slot {@sword.slot} of loop-player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                    set slot {@fns.slot} of loop-player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                    set slot {@fishingrod.slot} of loop-player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                    set slot {@bow.slot} of loop-player to bow named "{@bow.name}" with lore "{@bow.lorename}"
                    set slot {@arrow.slot} of loop-player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                    equip loop-player with {@helmet.mat} helmet
                    equip loop-player with {@chestplate.mat} chestplate
                    equip loop-player with {@leggings.mat} leggings
                    equip loop-player with {@boots.mat} boots
                send "{@prefix} &eYou've successfully unsaved your inventory!"
                stop
            else:
                send "{@prefix} {@noperm}"

command /strtdsjfsdfs [<player>]:
    permission: console.anan
    executable by: console
    trigger:
        if {kitinv.saved.%arg 1%} is not set:
            clear the arg 1's inventory
            message "{@prefix} &2%arg 1%'s starter kit succesfully loaded&8." to player
            message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
            set slot {@sword.slot} of arg 1 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
            set slot {@fns.slot} of arg 1 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
            set slot {@fishingrod.slot} of arg 1 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
            set slot {@bow.slot} of arg 1 to bow named "{@bow.name}" with lore "{@bow.lorename}"
            set slot {@arrow.slot} of arg 1 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
            equip arg 1 with {@helmet.mat} helmet
            equip arg 1 with {@chestplate.mat} chestplate
            equip arg 1 with {@leggings.mat} leggings
            equip arg 1 with {@boots.mat} boots
            stop
        else if {kitinv.saved.%arg 1%} is true:
            message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
            clear the arg 1's inventory
            equip arg 1 with {@helmet.mat} helmet
            equip arg 1 with {@chestplate.mat} chestplate
            equip arg 1 with {@leggings.mat} leggings
            equip arg 1 with {@boots.mat} boots
            set {_slot} to 0
            loop 36 times:
                set slot {_slot} of arg 1 to {kitinv.%{_slot}%.%arg 1%}
                add 1 to {_slot}
            set slot 0 of arg 1 to {kitinv.slotzero.%arg 1%}
                        stop
[DOUBLEPOST=1500565300,1500565264][/DOUBLEPOST]Alıntıdır.
 

EmirReizTR

Bir "Reiz"
Katılım
21 Ekim 2016
Mesajlar
923
Elmaslar
297
Puanlar
0
Yer
Antalya
Yanlış bilmiyorsam StarterKit'in plugini var. Hem çok RAM tüketmez. Ama ille de skript istiyorsan arkadaşınkıni kullanabilirsin.
Kod:
command /starterkit [<text>] [<player>]:
    trigger:
        if arg 1 is not "load" or "save" or "unsave" or "unsaveall" or "saveplace":
            send "{@prefix} &cYou did something wrong&8."
            stop
        if arg 1 is not set:
            send "{@prefix} &6Starterkit Commands"
            if player has the permission "starterkit.give":
                send "{@prefix} &7/starterkit load &8(&7<player>&8)"
                send "{@prefix} &7/starterkit unsaveall"
            send "{@prefix} &7/starterkit save"
            send "{@prefix} &7/starterkit unsave"
            send "{@prefix} &7/starterkit saveplace"
            stop
        if arg 1 is "load":
            if player has the permission "starterkit.give":
                if arg 2 is not set:
                    if {kitinv.saved.%player%} is not set:
                        clear the player's inventory
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to player
                        set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                        set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                        set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                        set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
                        set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                        equip player with {@helmet.mat} helmet
                        equip player with {@chestplate.mat} chestplate
                        equip player with {@leggings.mat} leggings
                        equip player with {@boots.mat} boots
                        stop
                    else if {kitinv.saved.%player%} is set:
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to player
                        clear the player's inventory
                        equip player with {@helmet.mat} helmet
                        equip player with {@chestplate.mat} chestplate
                        equip player with {@leggings.mat} leggings
                        equip player with {@boots.mat} boots
                        set {_slot} to 0
                        loop 36 times:
                            set slot {_slot} of player to {kitinv.%{_slot}%.%player%}
                            add 1 to {_slot}
                        set slot 0 of player to {kitinv.slotzero.%player%}
                        stop
                if arg 2 is set:
                    if {kitinv.saved.%arg 2%} is not set:
                        clear the arg 2's inventory
                        message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
                        set slot {@sword.slot} of arg 2 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                        set slot {@fns.slot} of arg 2 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                        set slot {@fishingrod.slot} of arg 2 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                        set slot {@bow.slot} of arg 2 to bow named "{@bow.name}" with lore "{@bow.lorename}"
                        set slot {@arrow.slot} of arg 2 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                        equip arg 2 with {@helmet.mat} helmet
                        equip arg 2 with {@chestplate.mat} chestplate
                        equip arg 2 with {@leggings.mat} leggings
                        equip arg 2 with {@boots.mat} boots
                        stop
                    else if {kitinv.saved.%arg 2%} is true:
                        message "{@prefix} &2%arg 2%'s starter kit succesfully loaded&8." to player
                        message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 2
                        clear the arg 2's inventory
                        equip arg 2 with {@helmet.mat} helmet
                        equip arg 2 with {@chestplate.mat} chestplate
                        equip arg 2 with {@leggings.mat} leggings
                        equip arg 2 with {@boots.mat} boots
                        set {_slot} to 0
                        loop 36 times:
                            set slot {_slot} of arg 2 to {kitinv.%{_slot}%.%arg 2%}
                            add 1 to {_slot}
                        set slot 0 of arg 2 to {kitinv.slotzero.%arg 2%}
                        stop
            else:
                send "{@prefix} {@noperm}"
        if arg 1 is "saveplace":
            teleport player to {warp.saveplace}
            send "{@prefix} &2You are teleported to starterkit saveplace!"
            set {save.available.%player%} to true
            clear the player's inventory
        if arg 1 is "save":
            if arg 2 is not set:
                if {save.available.%player%} is true:
                    if player has 1 {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}":
                        if player has 1 flint and steel named "{@fns.name}" with lore "{@fns.lorename}":
                            if player has 1 bow named "{@bow.name}" with lore "{@bow.lorename}":
                                if player has {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}":
                                    set {_kitinvslot} to 0
                                    loop 36 times:
                                        set {kitinv.%{_slot}%.%player%} to slot {_slot} of player
                                        add 1 to {_slot}
                                    set {kitinv.saved.%player%} to true
                                    set {kitinv.slotzero.%player%} to slot 0 of player
                                    wait 5 ticks
                                    send "{@prefix} &cLoading..."
                                    wait 10 ticks
                                    send "{@prefix} &eYou've successfully saved your inventory!"
                                    stop
                                else:
                                    send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                            else:
                                send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                        else:
                            send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                    else:
                        send "{@prefix} &cYou cannot save your inventory with unlisted items!"
                else:
                    send "{@prefix} &cYou cannot save your inventory in unavailable!"
        if arg 1 is "unsave":
            delete {kitinv.saved.%player%}
            wait 5 ticks
            send "{@prefix} &cLoading..."
            wait 10 ticks
            clear the player's inventory
            set slot {@sword.slot} of player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
            set slot {@fns.slot} of player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
            set slot {@fishingrod.slot} of player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
            set slot {@bow.slot} of player to bow named "{@bow.name}" with lore "{@bow.lorename}"
            set slot {@arrow.slot} of player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
            equip player with {@helmet.mat} helmet
            equip player with {@chestplate.mat} chestplate
            equip player with {@leggings.mat} leggings
            equip player with {@boots.mat} boots
            send "{@prefix} &eYou've successfully unsaved your inventory!"
            stop
        if arg 1 is "unsaveall":
            if player has the permission "strtrkt.give":
                loop all players:
                    delete {kitinv.saved.%loop-player%}
                wait 5 ticks
                send "{@prefix} &cLoading..."
                wait 10 ticks
                loop all players:
                    clear the loop-player's inventory
                    set slot {@sword.slot} of loop-player to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
                    set slot {@fns.slot} of loop-player to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
                    set slot {@fishingrod.slot} of loop-player to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
                    set slot {@bow.slot} of loop-player to bow named "{@bow.name}" with lore "{@bow.lorename}"
                    set slot {@arrow.slot} of loop-player to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
                    equip loop-player with {@helmet.mat} helmet
                    equip loop-player with {@chestplate.mat} chestplate
                    equip loop-player with {@leggings.mat} leggings
                    equip loop-player with {@boots.mat} boots
                send "{@prefix} &eYou've successfully unsaved your inventory!"
                stop
            else:
                send "{@prefix} {@noperm}"

command /strtdsjfsdfs [<player>]:
    permission: console.anan
    executable by: console
    trigger:
        if {kitinv.saved.%arg 1%} is not set:
            clear the arg 1's inventory
            message "{@prefix} &2%arg 1%'s starter kit succesfully loaded&8." to player
            message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
            set slot {@sword.slot} of arg 1 to {@sword.mat} sword named "{@sword.name}" with lore "{@sword.lorename}"
            set slot {@fns.slot} of arg 1 to flint and steel named "{@fns.name}" with lore "{@fns.lorename}"
            set slot {@fishingrod.slot} of arg 1 to fishing rod named "{@fishingrod.name}" with lore "{@fishingrod.lorename}"
            set slot {@bow.slot} of arg 1 to bow named "{@bow.name}" with lore "{@bow.lorename}"
            set slot {@arrow.slot} of arg 1 to {@arrow.number} arrow named "{@arrow.name}" with lore "{@arrow.lorename}"
            equip arg 1 with {@helmet.mat} helmet
            equip arg 1 with {@chestplate.mat} chestplate
            equip arg 1 with {@leggings.mat} leggings
            equip arg 1 with {@boots.mat} boots
            stop
        else if {kitinv.saved.%arg 1%} is true:
            message "{@prefix} &2Your starter kit succesfully loaded&8." to arg 1
            clear the arg 1's inventory
            equip arg 1 with {@helmet.mat} helmet
            equip arg 1 with {@chestplate.mat} chestplate
            equip arg 1 with {@leggings.mat} leggings
            equip arg 1 with {@boots.mat} boots
            set {_slot} to 0
            loop 36 times:
                set slot {_slot} of arg 1 to {kitinv.%{_slot}%.%arg 1%}
                add 1 to {_slot}
            set slot 0 of arg 1 to {kitinv.slotzero.%arg 1%}
                        stop
[DOUBLEPOST=1500565300,1500565264][/DOUBLEPOST]Alıntıdır.
 
Son düzenleme:

FekeBey

Demir Cevheri Gibiyim
Katılım
22 Temmuz 2017
Mesajlar
199
Elmaslar
35
Puanlar
0
Yer
Mars,Jüpiter
Bunun Yerine Starter Kit Skripti Yükle ve Başlangıçta Ne Vermek İstiyorsan Envanterine Al Hangi Seti Vermek İstiyorsan Üstüne Giy ve /sk save yaz Bu Kadar
 

kingOf0

"~SimitSu"

Discord:

kingOf0!#4055

Katılım
14 Haziran 2016
Mesajlar
998
Elmaslar
746
Puanlar
15.070
Yer
getPlayer("SimitSu").getLocation()
Minecraft
SimitSu
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!
Yukarı