#(ama) inventory

48 messages · Page 1 of 1 (latest)

silk spindle
#

how can i open an created inventory for another player

limber galleonBOT
#

(ama) inventory

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

winter basin
#

Do you have a script? If so, please paste it.

#

!paste

lost charmBOT
silk spindle
winter basin
#

Yeah, so first of all, you shouldn't type raw objects.

#

!lang common mistakes - don't script raw

lost charmBOT
#
Possible Confusion

Did you mean to search for script event after vs on?

winter basin
#

!guide common mistakes - raw object

lost charmBOT
#
Possible Confusion

Did you mean to search for common mistakes - don't type raw object notation?

winter basin
#

That one ^

#

Also check out

#

!guide common mistakes - don't trust players

winter basin
#

The player doesn't have to input an argument to your command. So <context.args.first> can error out. You have to account for that.

#

To open the inventory for another player, you can use the global player arg.

#

!lang the player and npc

lost charmBOT
# winter basin !lang the player and npc

The "player:<player>" and "npc:<npc>" arguments are special meta-arguments that are available for all commands, but are only useful for some.
They are written like:

  • give stick player:<server.flag[some_player]>
    or:
  • sit npc:<entry[save].created_npc>

Denizen tracks a "linked player" and a "linked NPC" in queues and the commands within.
Many commands automatically operate on the linked player/NPC default or exclusively
(for example, "give" defaults to giving items to the linked player but that can be changed with the "to" argument,
"sit" exclusively makes the linked NPC sit, and that cannot be changed except by the global NPC argument).

When the player argument is used, it sets the linked player for the specific command it's on.
This is only useful for commands that default to operating ...

Group

Script Command System

winter basin
#

If you'd like to use it, you have to get the player object of the player you want the inventory to open for. See also the Don't Trust Players section for this.

silk spindle
#

yeah but i want to open the gui from my script. how can i replace in@skill_bergbau_admin_gui

winter basin
#

Yeah, you can absolutely do that.

#

Just leave the in@ off.

silk spindle
#

still doesnt work

winter basin
#

Can you repost your script.

#

!paste

lost charmBOT
silk spindle
winter basin
silk spindle
#

thaks

glossy wyvernBOT
#
Resolved

Thread closed as resolved.

glossy wyvernBOT
#
Changed to Help/Support

Thread is now a Help/Support thread. A helper will check your thread when available.

lime parcel
#

!haste

lost charmBOT
lime parcel
#

Please paste the current version of script, and explain what exactly are you having trouble with currently so that we can help

glossy wyvernBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@silk spindle