openmw-tes3coop/apps/openmw-mp/Script/Functions
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
..
CharClass.cpp Make variable names more consistent and easier to understand 2016-09-29 12:05:44 +03:00
CharClass.hpp Characters Class API 2016-08-30 11:18:19 +08:00
Chat.cpp Make formatting consistent, part 2 2016-08-17 18:20:36 +03:00
GUI.cpp Fix build for Windows server 2016-08-30 08:01:34 +03:00
GUI.hpp Add comment about MesssageBox to prevent future confusion 2016-08-30 08:13:08 +03:00
Items.cpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Items.hpp Implement inventory functions 2016-10-23 02:57:49 +08:00
Stats.cpp Add handling of skill increases 2016-09-30 07:15:59 +03:00
Stats.hpp Make GetItemSlot work and add SendEquipment in server item functions 2016-09-30 12:30:05 +03:00
Timer.cpp Fixed some build warnings and IsTimerElapsed function 2016-07-27 10:35:27 +08:00
Translocations.cpp Rename ID_GAME_UPDATE_POS into ID_GAME_POS 2016-09-28 11:45:14 +03:00
Translocations.hpp Improve logic for script-induced cell changes 2016-09-27 11:28:44 +03:00
World.cpp Time API 2016-08-30 13:24:42 +08:00
World.hpp Time API 2016-08-30 13:24:42 +08:00