1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:19:55 +00:00
openmw-tes3mp/apps
David Cernat 7fae28ce91 Prevent RemoveItem() script function from clearing inventorySendBuffer
Up to this commit, the following commands in a Lua script led to the target player receiving all three items, as expected:

    tes3mp.AddItem(self.pid, "common_shirt_01", 1, -1)
    tes3mp.AddItem(self.pid, "common_pants_01", 1, -1)
    tes3mp.AddItem(self.pid, "common_shoes_01", 1, -1)
    tes3mp.SendInventory(self.pid)

This, on the other hand, only led to the removal of the last item specified (in this case, the shoes):

    tes3mp.RemoveItem(self.pid, "common_shirt_01", 1)
    tes3mp.RemoveItem(self.pid, "common_pants_01", 1)
    tes3mp.RemoveItem(self.pid, "common_shoes_01", 1)
    tes3mp.SendInventory(self.pid)

Inventory functions are bound to remain confusing, but they should at least be consistent in their behavior.
2016-11-20 03:06:04 +02:00
..
bsatool Changed missing library dependencies to simple fix 2016-11-14 00:01:22 -06:00
esmtool Changed missing library dependencies to simple fix 2016-11-14 00:01:22 -06:00
essimporter Changed missing library dependencies to simple fix 2016-11-14 00:01:22 -06:00
launcher Merge pull request #1129 from PhillipAnd/phillipand-cmake-fix 2016-11-17 18:25:23 +01:00
mwiniimporter Changed missing library dependencies to simple fix 2016-11-14 00:01:22 -06:00
niftest Removed now unneeded script 2015-08-07 20:53:43 -04:00
opencs Merge pull request #104 from OpenMW/master 2016-11-17 21:13:58 +02:00
openmw Merge pull request #106 from OpenMW/master 2016-11-20 01:20:25 +02:00
openmw-mp Prevent RemoveItem() script function from clearing inventorySendBuffer 2016-11-20 03:06:04 +02:00
openmw_test_suite Add unit tests for ESM::FIXED_STRING 2016-05-07 23:27:33 +03:00
wizard Merge pull request #1129 from PhillipAnd/phillipand-cmake-fix 2016-11-17 18:25:23 +01:00
doc.hpp