1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-16 08:39:40 +00:00
openmw-tes3mp/apps/openmw/mwmp
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
..
DedicatedPlayer.cpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00
DedicatedPlayer.hpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00
GUIChat.cpp Add some verbose messages for chat 2016-09-10 13:57:15 +08:00
GUIChat.hpp Add chat messages to log in client 2016-09-10 13:40:06 +08:00
GUIController.cpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00
GUIController.hpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00
GUILogin.cpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
GUILogin.hpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
LocalPlayer.cpp Implement inventory functions 2016-10-23 02:57:49 +08:00
LocalPlayer.hpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Main.cpp Fix use of freed memory 2016-10-01 10:54:42 +08:00
Main.hpp New auth protocol 2016-09-18 11:55:51 +08:00
Networking.cpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Networking.hpp Rename BasePacket into PlayerPacket 2016-10-17 15:54:36 +03:00
PlayerMarkerCollection.cpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00
PlayerMarkerCollection.hpp Show dedicated players on minimap 2016-10-22 17:06:26 +08:00