Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added NWNX_Item_MoveTo() #1611

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

Cjreek
Copy link
Contributor

@Cjreek Cjreek commented Mar 23, 2023

Moves items from anywhere (including the ground) into the inventory of any placeable, creature, store or container.
Moving an item from a container into the inventory containing the container and the other way around won't trigger any feedback messages about having lost/acquired an item.
There's also a general option to disable feedback messages for acquiring/losing items during that function.

/// @brief Move oItem to oTarget
/// @remark Moving items from a container to the inventory of the container's owner (or the other way around) is always "silent" and won't trigger feedback messages
/// @param oItem The item object.
/// @param oTarget The target bag/creature/placeable or store object to move oItem to.
/// @param bHideAllFeedback Hides all feedback messages generated by losing/acquiring items
/// @return TRUE if the item was successfully moved to the target, otherwise FALSE
int NWNX_Item_MoveTo(object oItem, object oTarget, int bHideAllFeedback = FALSE);

closing #1453

@Daztek Daztek merged commit f6fdbcd into nwnxee:master Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants