Solved Give player arg 1 gold ingot

  • 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.

Nikox

Member
Jul 14, 2017
4
1
0
Hi, I wanted to do $ -> gold convertion in Skript, this is my code:
Code:
command /withdraw [<number>]:
    trigger:
        if player's balance is less than arg 1:
            send "&eYou don't have enough money."
            stop
        else if player can hold arg 1 gold ingot:
            remove arg 1 from the player's money
            give player arg 1 gold ingot
            send "&eAdded %arg 1% gold to your inventory."
        else:
            send "&eYou don't have enough space in your inventory!"

There are errors at "else if player can hold arg 1 gold ingot" and "give player arg 1 gold ingot". I don't have any idea how can I fix it.
 
Hi, I wanted to do $ -> gold convertion in Skript, this is my code:
Code:
command /withdraw [<number>]:
    trigger:
        if player's balance is less than arg 1:
            send "&eYou don't have enough money."
            stop
        else if player can hold arg 1 gold ingot:
            remove arg 1 from the player's money
            give player arg 1 gold ingot
            send "&eAdded %arg 1% gold to your inventory."
        else:
            send "&eYou don't have enough space in your inventory!"

There are errors at "else if player can hold arg 1 gold ingot" and "give player arg 1 gold ingot". I don't have any idea how can I fix it.
You need to use the X of item expression: %number% of %item%
 
Status
Not open for further replies.