openmw-tes3coop/apps/openmw-mp/Script
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
..
API Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
Functions Implement inventory functions 2016-10-23 02:57:49 +08:00
LangLua Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
LangNative Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
LangPawn Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
Language.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
Platform.hpp Syncing inventory, animations, position, 8 key attributes 2016-07-07 23:50:48 +08:00
Script.cpp Implement 'setenv' for windows 2016-08-02 17:32:10 +08:00
Script.hpp Log callbacks 2016-09-18 11:55:51 +08:00
ScriptFunction.cpp Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
ScriptFunction.hpp Fixed some build warnings and IsTimerElapsed function 2016-07-27 10:35:27 +08:00
ScriptFunctions.cpp Fix GetProtocolVersion 2016-09-28 19:20:22 +08:00
ScriptFunctions.hpp Detecting reason of death 2016-10-08 15:15:43 +08:00
SystemInterface.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00
Types.hpp Fixed types in all GetInterface functions 2016-08-02 18:10:06 +08:00