1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 04:19:55 +00:00
openmw-tes3mp/apps/openmw-mp/Script/Functions
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
..
CharClass.cpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
CharClass.hpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
Chat.cpp Change printf to LOG_MESSAGE_SIMPLE 2016-11-18 00:35:38 +08:00
GUI.cpp Simplify LOG macros 2016-11-17 12:39:35 +08:00
GUI.hpp Add new API function: SetConsoleAllow 2016-11-04 03:01:26 +08:00
Items.cpp Prevent RemoveItem() script function from clearing inventorySendBuffer 2016-11-20 03:06:04 +02:00
Items.hpp Clean up inventory script functions so they are usable for equipment too 2016-11-18 00:52:17 +02:00
Stats.cpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
Stats.hpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
Timer.cpp Revert "Use lowerCamelCase in tes3mp server script function names, part 2" 2016-11-16 19:27:46 +02:00
Translocations.cpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
Translocations.hpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
World.cpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00
World.hpp Revert "Use lowerCamelCase in tes3mp server script function names, part 1" 2016-11-16 19:28:22 +02:00