1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 06:06:42 +00:00
openmw-tes3mp/apps
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
..
bsatool Merge branch 'master' of https://github.com/OpenMW/openmw into osg 2015-06-13 21:11:24 +02:00
esmtool Rewrite NAME_T into FIXED_STRING. 2016-05-07 23:27:33 +03:00
essimporter Save scripted animation state (Fixes #1931, #2150, #3393) 2016-08-03 03:52:35 +02:00
launcher Merge branch 'appveyor' of github.com:ace13/openmw into appveyor 2016-01-19 22:11:46 +01:00
mwiniimporter Fix shadowing warnings 2016-10-02 17:48:54 +09:00
niftest Removed now unneeded script 2015-08-07 20:53:43 -04:00
opencs Resolve conflicts in pull request #75 2016-10-14 18:34:17 +03:00
openmw Implement inventory functions 2016-10-23 02:57:49 +08:00
openmw-mp Implement inventory functions 2016-10-23 02:57:49 +08:00
openmw_test_suite Add unit tests for ESM::FIXED_STRING 2016-05-07 23:27:33 +03:00
wizard apps/wizard: (trivial) fix misplaced arguments in installFile for installFiles 2016-09-15 19:03:07 +03:00
doc.hpp