Give item to player

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

Endissitin

New Member
Jul 23, 2019
5
0
0
23
Code:
command /ssg [<item>] [<text>] [<player>]:
    executable by: console
    trigger:
        set {signshop::item::%arg-1%::amount} to {_amount}
        give {_amount} of %arg-1% named "%arg-2%" to player-arg

I needed to get he player to give the item arg-1 and the amount by _{amount}, but this error is given:

Error: There's no types.bot in a command event

I don't know what to do, if anyone knows how to solve thank you very much ;-;
I don't speak English, sorry for misspellings
 
Try this:

Code:
command /ssg [<item>] [<text>] [<player>]:
    trigger:
        set {_amount} to {signshop::item::%arg-1%::amount}
        set {_item} to "%{_amount}% %arg-1%" parsed as item
        give {_item} named text-arg to player-arg
 
Code:
command /ssg [<item>] [<text>] [<player>]:
    executable by: console
    trigger:
        set {signshop::item::%arg-1%::amount} to {_amount}
        give arg-3 {_amount} of arg-1 named arg-2
 
Last edited:
Status
Not open for further replies.