Skript Help

Discussion in 'Skript' started by Duelzz, Jun 4, 2017.

  1. command /kits:
    trigger:
    send "&a&l(!) &aOpening"
    open chest with 1 row named "&aKits" to player
    wait 1 tick
    format slot 0 of player with iron sword named "&e&lDEFENDER" with lore "&aRank: &7Member" to close then run [player command "/kitdefender"]
    format slot 3 of player with diamond named "&2&lWARRIOR" with lore "&aRank: &7Member" to close then run [player command "/kitwarrior"]
    format slot 2 of player with fishing rod named "&a&lFISHERMAN" with lore "&aRank: &7Member" to close then run [player command "/kitfisherman"]
    format slot 5 of player with bow named "&6&lARCHER" with lore "&aRank: &7Member" to close then run [player command "/kitarcher"]

    command /kitdefender:
    trigger:
    console command "/give %player% chain_helmet"
    console command "/give %player% iron_chestplate"
    console command "/give %player% chain_leggings"
    console command "/give %player% chain_boots"
    console command "/give %player% stone_sword"
    console command "/give %player% golden_apple 12"

    command /kitwarrior:
    permission: donator.warrior
    permission message: &c&l(!) &7You need &2&lWARRIOR&7 to use this kit!
    trigger:
    console command "/give %player% chain_helmet"
    console command "/give %player% iron_chestplate"
    console command "/give %player% iron_leggings"
    console command "/give %player% iron_boots"
    console command "/give %player% diamond_sword"
    console command "/give %player% golden_apple 32"

    command /kitfisherman:
    trigger:
    console command "/give %player% chain_helmet"
    console command "/give %player% leather_chestplate"
    console command "/give %player% iron_leggings"
    console command "/give %player% iron_boots"
    console command "/give %player% stone_sword"
    console command "/give %player% golden_apple 32"
    command /kitarcher:
    trigger:
    console command "/give %player% chain_helmet"
    console command "/give %player% leather_chestplate"
    console command "/give %player% iron_leggings"
    console command "/give %player% leather_boots"
    console command "/give %player% stone_sword"
    console command "/give %player% golden_apple 32"
    console command "/give %player% bow"
    console command "give %player% arrow 64"
    console command "give %player% arrow 64"

    every second:
    loop all players:
    wipe loop-player's sidebar
    set name of sidebar of loop-player to "&6&lUniversePvP"
    set score "&f" in sidebar of loop-player to 6
    set score "&7Kills: &f{%player%.kills}" in sidebar of loop-player to 5
    set score "&7" in sidebar of loop-player to 4
    set score "&7Deaths: &f{%player%.deaths}" in sidebar of loop-player to 3
    set score "&f" in sidebar of loop-player to 2
    set score "&7Website: &fUniverseKitPvP.enjin.com" in sidebar of loop-player to 1



    (Scoreboard is an error)


    'score &7Kills: &f{%player%.kills}" in sidebar' is not a number

    'set score "&7Deaths: &f{%player%.deaths} in sidebar' is not a number

    Addons: SkQuery SkRayfall
     
  2. set score "&7Kills: &f{%player%.kills}" in sidebar of loop-player to 5
    Replace
    set score "&7Kills: &f{%loop*player%.kills}" in sidebar of loop-player to 5
    And
    set score "&7Deaths: &f{%player%.deaths}" in sidebar of loop-player to 3
    replace
    set score "&7Deaths: &f{%loop-player%.deaths}" in sidebar of loop-player to 3