forked from mirror/openmw-tes3mp
c27351c19e
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 ``` |
||
---|---|---|
.. | ||
CharClass.cpp | ||
CharClass.hpp | ||
Chat.cpp | ||
GUI.cpp | ||
GUI.hpp | ||
Items.cpp | ||
Items.hpp | ||
Stats.cpp | ||
Stats.hpp | ||
Timer.cpp | ||
Translocations.cpp | ||
Translocations.hpp | ||
World.cpp | ||
World.hpp |