Solved Please.. help me. This is so annoying.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

camnooten

Member
Feb 18, 2017
15
1
0
35
I'm trying to add a regeneration splash potion in NoDebuf and I can't get it to work! Any tips?

code_language.skript:
command /kit [<text>]:
    trigger:
        if arg 1 is not set:
            message "{@prefix} &aKits: &fBrute"
        if arg 1 is "OP":
            if player has permission "kit.OP":
                if {kitpvp.%player%} is true:
                    execute console command "give %player% diamond_sword"
                    execute console command "give %player% diamond_helmet"
                    execute console command "give %player% diamond_chestplate"
                    execute console command "give %player% diamond_leggings"
                    execute console command "give %player% diamond_boots"
                    execute console command "give %player% fishing_rod"
                    execute console command "give %player% golden_apple 10"
                    stop
                else:
                    message "{@prefix} &cYou're not in KitPvP, silly!"
        if arg 1 is "Brute":
            if {kitpvp.%player%} is true:
                execute console command "give %player% stone_sword 1"
                execute console command "give %player% iron_helmet 1"
                execute console command "give %player% iron_chestplate 1"
                execute console command "give %player% iron_leggings 1"
                execute console command "give %player% iron_boots 1"
                execute console command "give %player% arrow 1"
                give player bow of infinity named "&6Bow"
                execute console command "give %player% fishing_rod"
                stop
        if arg 1 is "NoDebuff":
            if {kitpvp.%player%} is true:
                execute console command "give %player% 373:16385 1"
                give player 1 regeneration potion
                stop
        if arg 1 is "Troll":
            if player has permission "kit.troll":
                if {kitpvp.%player%} is true:
                    execute console command "give %player% web 64"
                    give player stick of knockback 50 named "&6TROOLOLOL"
                    stop
            else:
                message "{@prefix} &cYou don't have permission to use this kit!"
 
Is it just the giving of the regeneration potion to the player?
code_language.skript:
command /test:
    trigger:
        give player  splash potion of regeneration
 
Yes, but I get an error that it is not an item type.
 
code_language.skript:
execute console command "/give %player% splash_potion 1 0 {Potion:long_regeneration}"
or
code_language.skript:
execute console command "/give %player% 373:16385 1"
 
  • Like
Reactions: Wynnevir
Yes, but I get an error that it is not an item type.
Are you adding a number to it like give player 1 potion ...."
Because I can only reproduce that error if a number is set.
Without a number works perfectly fine for me
 
Status
Not open for further replies.