openmw-tes3coop/apps/openmw-mp
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
..
amx DIE TABS, DIE!!!!!!!1 2016-09-04 17:39:08 +08:00
Script Prevent RemoveItem() script function from clearing inventorySendBuffer 2016-11-20 03:06:04 +02:00
CMakeLists.txt Fix part about Breakpad in server's CMakeLists 2016-10-23 19:28:35 +03:00
main.cpp Simplify LOG macros 2016-11-17 12:39:35 +08:00
MasterClient.cpp Simplify LOG macros 2016-11-17 12:39:35 +08:00
MasterClient.hpp Fix headers 2016-08-15 21:15:36 +08:00
Networking.cpp Use RakNetGUID instead uint64_t in TPlayers 2016-11-17 13:12:06 +08:00
Networking.hpp Use lowerCamelCase in tes3mp server networking function names 2016-11-16 02:05:14 +02:00
Player.cpp Use RakNetGUID instead uint64_t in TPlayers 2016-11-17 13:12:06 +08:00
Player.hpp Use RakNetGUID instead uint64_t in TPlayers 2016-11-17 13:12:06 +08:00
Utils.cpp DIE TABS, DIE!!!!!!!1 2016-09-04 17:39:08 +08:00
Utils.hpp Change printf to LOG_MESSAGE_SIMPLE 2016-11-18 00:35:38 +08:00