1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 00:45:31 +00:00
openmw-tes3mp/components/openmw-mp/Packets
Koncord c27351c19e Implement inventory functions
AddItem, RemoveItem, GetItemName, GetItemCount, GetItemHealth, GetInventorySize SendInventory
Example:
```lua
tes3mp.AddItem(pid, "glass dagger", 1, 50)
tes3mp.AddItem(pid, "glass dagger", 1, -1)
tes3mp.SendInventory(pid)
tes3mp.RemoveItem(pid, "glass dagger", 1)
tes3mp.SendInventory(pid)
local invSize = tes3mp.GetInventorySize(pid) - 1
for i = 0, invSize do
    print(("%s %d %d"):format(tes3mp.GetItemName(pid, i), tes3mp.GetItemCount(pid, i), tes3mp.GetItemHealth(pid, i)))
end
```
2016-10-23 02:57:49 +08:00
..
PacketAttack.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketAttack.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketAttribute.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketAttribute.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketBaseInfo.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketBaseInfo.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketCell.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketCell.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketCharGen.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketCharGen.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketChatMessage.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketChatMessage.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketClass.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketClass.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDie.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDisconnect.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDrawState.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDrawState.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDynamicStats.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketDynamicStats.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketEquipment.cpp Implement inventory functions 2016-10-23 02:57:49 +08:00
PacketEquipment.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketGUIBoxes.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketGUIBoxes.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketHandshake.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketHandshake.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketInventory.cpp Implement inventory functions 2016-10-23 02:57:49 +08:00
PacketInventory.hpp Implement inventory functions 2016-10-23 02:57:49 +08:00
PacketLevel.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketLevel.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketLoaded.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketPosition.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketPosition.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketResurrect.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketSendMyID.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketSkill.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketSkill.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketTime.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PacketTime.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PlayerPacket.cpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PlayerPacket.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00