• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Item time left/charges

Ciosny

Member
Joined
Aug 16, 2024
Messages
131
Solutions
1
Reaction score
16
Hi! :) I looked on the forum but I don't think there is one for TFS 1.4.2, otc8....

I would like to display the remaining time and charges on my items. I tried to do it myself several times but unfortunately I failed. Has anyone ever done this? :D
 

Attachments

@oen432
Do you know how to fix this?


Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 860)
ERROR: ProtocolGame parse message exception (146 bytes, 125 unread, last opcode is 0x01 (1), prev opcode is 0x70 (112)): unhandled opcode 1
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 860)
 
Thats not everything though, and I don't know why would you need that graph thing for item duration feature.

To implement this feature the best possivle way go this path for tfs and otc source edits:
1.
2.

Then you'll need fixes:
3. Stackables fix
4. Timestamp fix
And
5.
Missing Fixed Item Duration client-server time difference · OTAcademy/otclientv8@268d973 (https://github.com/OTAcademy/otclientv8/commit/268d973e189761405f79f872a9d66da29fe8d95e) to work with #3 of the server side commits.
 
Back
Top