Commit Graph

75 Commits (sol2-server-rewrite)

Author SHA1 Message Date
David Cernat 35e453dec3 [General] Sketch out most of functionality for journal saving/loading 8 years ago
David Cernat e2c595fc5d Add preliminary structure for journal changes 8 years ago
David Cernat 83277a1512 Send spellbook in LocalPlayer CharGen & change UPDATE action name to SET 8 years ago
David Cernat 78c6ab2a99 Clean up client Networking by putting item & spell logic in LocalPlayer 8 years ago
Koncord 7595b33461 Implement spellbook 8 years ago
Koncord 536715cf46 Cleanup tes3mp headers 8 years ago
David Cernat 9e290ad799 Fix spacing irregularities 8 years ago
David Cernat 95efb77e53 Implement sending of ID_GAME_SPELLBOOK from client 8 years ago
David Cernat fcd24ebb7e Rename methods to show they deal with Equipment instead of Inventory 8 years ago
David Cernat 3a733eb122 Make tes3mp includes consistent 8 years ago
David Cernat eedd40328a Add and use SendInventory() method in LocalPlayer, and clarify some code 8 years ago
David Cernat fa9d6e810e Use lowerCamelCase in tes3mp client function names like OpenMW does 8 years ago
Koncord 56959ebfda Implement magic 8 years ago
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
```
8 years ago
David Cernat e0361835b0 Allow script-induced setting of equipment 8 years ago
David Cernat 728a09e423 Reorder functions in LocalPlayer and make their names more consistent 8 years ago
David Cernat a0e9a672a5 Split updateClassStats in 3 and add handling of level progress 8 years ago
David Cernat afbd3274cc Clean up handling of stat packets on client 8 years ago
David Cernat 18cd964d21 Allow script-induced dynamic stat changes 8 years ago
David Cernat ce4b326b02 Rename ID_GAME_UPDATE_BASESTATS into ID_GAME_DYNAMICSTATS_CURRENT 8 years ago
David Cernat 046a1ea899 Add packet for player levels 8 years ago
Koncord 11eae277a9 Characters Class API
Added some new functions
8 years ago
Koncord 7107136808 New API
SetExterior(pid, x, y)
GetExteriorX(pid)
GetExteriorY(pid)

also "SetCell" will now move to the named external cells (e.g. SetCell(pid, "Balmora"))
9 years ago
Koncord 6f07d590d4 Fix SetPos and SetAngle functions
Fix types for SetPos and SetAngle
9 years ago
Koncord 1b259e2d33 Syncing inventory, animations, position, 8 key attributes
Created Package system
9 years ago