Please help

  • 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 community!

    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.

Loqie

Member
Feb 19, 2017
3
0
0
None of this is working... the axes dont come into the gui and you dont get the axe thru /købaxe "number" and the damge part dont work either... please help... by the way... ther is tabs but the ``` part dont work on skunity

code_language.skript:
on damage of a player:
    if damage is caused by a diamondaxe named "&3Tier &bI":
        chance of 5%
        apply poison to player for 5 seconds
    if damge is caused by a diamond axe named "&3Tier &bII":
        chance of 10%
        apply poison to player for 5 seconds
        
        
        
command /axe:
    trigger:
        open chest with 1 row named "&3SPECIAL ØKSER" to player
        format slot 3 of player with diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bI &7(&65K&7)" with lore "&7Poison chance: 5%" to close then run [make player execute command "/købaxe 1"]
        format slot 5 of player with diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bII &7(&610K&7)" with lore "&7Poison chance: 10%" to close then run [make player execute command "/købaxe 2"]
        format slot 4 of player with 166 named "&4Luk menu" to close
        
        
        
        
command /købaxe [<Text>]:
    trigger:
        if arg-1 is "1":
            if player's balance is greater or equal to 5000:
                give player 1 diamond  axe of sharpness 4, unbreaking 3 named "&3Tier &bI" with lore "&7Poison chance: 5%"
                remove 5000 from player's balance
                send "&c- $5000"
                send "&aTillykke med din nye axe!"
            else:
                send "&cDu har ikke nok penge!"
        if arg-1 is "2":
            if player's balance is greater or equal to 10000:
                give player 1 diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bII" with lore "&7Poison chance: 10%"
                remove 10000 from player's balance
                send "&c- $10000"
                send "&aTillykke med din nye axe!"
            else:
                send "&cDu har ikke nok penge!"
 
Last edited:
You have to put code tags around your code instead. Just check the [+] button when editing/creating a post. I don't think anyone will want to help you if you don't use the code tags.
 
You have to put code tags around your code instead. Just check the [+] button when editing/creating a post. I don't think anyone will want to help you if you don't use the code tags.
There you go! can you help now?
 
Ah, the problem is you're using SkQuery's "format slot" without a delay. I'd recommend updating your syntax to use TuSKe's make GUI effect instead, as it does the same thing but better and with some more options, and it will work without having to add a delay between opening the chest and setting its slots.
 
Ah, the problem is you're using SkQuery's "format slot" without a delay. I'd recommend updating your syntax to use TuSKe's make GUI effect instead, as it does the same thing but better and with some more options, and it will work without having to add a delay between opening the chest and setting its slots.
Well the /købaxe command dont work either, and the poison effect dont work... the "on damage" part
[doublepost=1490722809,1488901860][/doublepost]
Ah, the problem is you're using SkQuery's "format slot" without a delay. I'd recommend updating your syntax to use TuSKe's make GUI effect instead, as it does the same thing but better and with some more options, and it will work without having to add a delay between opening the chest and setting its slots.
bro please help
 
Please don't rush people helping you, we're busy with our own lives doing other stuff sometimes and will get to helping you when we get the chance :emoji_slight_smile:

code_language.skript:
if damage is caused by a diamondaxe named "&3Tier &bI":

This is straight up incorrect, you use 'damage was caused by' to determine the type of damage they took, e.g. you could say 'if damage was caused by fall' to see if the damage was fall damage. If you're trying to check what the attacker's tool is, then do what makes sense: check the attacker's tool.

code_language.skript:
if attacker's tool is a diamond axe named "&3Tier &bI":

As for the command, you have to say more than "it's not working" for me to be able to help; what specifically isn't working? It may not like you having that special character in the command name, so if it's just not registering properly I'd try removing that first.
 
Status
Not open for further replies.