WoW:API PlaceAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
== Details ==
== Details ==
: If the cursor is empty, nothing happens, otherwise the action from the cursor is placed in the slot. If the slot was empty then the cursor becomes empty, otherwise the action from the slot is picked up and placed onto the cursor.
: If the cursor is empty, nothing happens, otherwise the action from the cursor is placed in the slot. If the slot was empty then the cursor becomes empty, otherwise the action from the slot is picked up and placed onto the cursor.
: If an action is placed on the cursor use [[API_PutItemInBackpack]] to remove the action from the cursor without placing it in an action slot


: IMPORTANT: You can crash your client if you send an invalid slot number.
: IMPORTANT: You can crash your client if you send an invalid slot number.

Revision as of 13:04, 8 February 2006

PlaceAction - Documentation by Flickering

Place the drag-and-drop item as an action.

PlaceAction(actionSlot)

Parameters

Arguments

(actionSlot)
actionSlot
Integer - The action slot to place the action into.

Returns

nil


Details

If the cursor is empty, nothing happens, otherwise the action from the cursor is placed in the slot. If the slot was empty then the cursor becomes empty, otherwise the action from the slot is picked up and placed onto the cursor.
If an action is placed on the cursor use API_PutItemInBackpack to remove the action from the cursor without placing it in an action slot
IMPORTANT: You can crash your client if you send an invalid slot number.

Template:WoW API