Skip to content

Simple cam recorder and player

OTCv8 edited this page Apr 8, 2021 · 2 revisions

There's simple cam system included in OTCv8. To record cam, edit characterlist.lua, add another parameter to

  g_game.loginWorld(G.account, G.password, charInfo.worldName, charInfo.worldHost, charInfo.worldPort, charInfo.characterName, G.authenticatorToken, G.sessionKey)

like this

  g_game.loginWorld(G.account, G.password, charInfo.worldName, charInfo.worldHost, charInfo.worldPort, charInfo.characterName, G.authenticatorToken, G.sessionKey, "cam_name.record")

Then it will record player activity to cam_name.record

To play cam, use g_game.playRecord(camName), like this:

g_settings.setNode("things", {})
g_game.setClientVersion(860)
g_game.setProtocolVersion(g_game.getClientProtocolVersion(860))
g_game.playRecord("cam_name.record")

There's no GUI for that system yet