• 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!

Lua Item time left/charges

Ciosny

Member
Joined
Aug 16, 2024
Messages
100
Reaction score
12
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

Wow this is great that it shows how much time you have left with it on!

Although I asked more about what's in the backpack, because if you have a lot of e.g. time rings, you don't know which ones are 10 minutes and which are 30 seconds :D
 
Wow this is great that it shows how much time you have left with it on!

Although I asked more about what's in the backpack, because if you have a lot of e.g. time rings, you don't know which ones are 10 minutes and which are 30 seconds :D
i guess they did it this way because i understand that in tibia RL(at least in canary) doesn't show the duration in backpack, only in inventory. but your point is good.
 
i guess they did it this way because i understand that in tibia RL(at least in canary) doesn't show the duration in backpack, only in inventory. but your point is good.
I think this is a nice tidbit :) Basically, you have 10 rings or stone amulets and you see which ones have how much time/use
 
@Gesior.pl @Mateus Robeerto

is there a code for regular otcv8?
Oen included this duration system in OTCv8 about two months ago. You can check it here, or I strongly recommend migrating to Oen's latest and most updated version of OTCv8, which already has all the necessary features and is ready to use. On the server side, your next step is to figure out how to properly send the duration data to the client side in OTCv8.

 
Oen included this duration system in OTCv8 about two months ago. You can check it here, or I strongly recommend migrating to Oen's latest and most updated version of OTCv8, which already has all the necessary features and is ready to use. On the server side, your next step is to figure out how to properly send the duration data to the client side in OTCv8.


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.
 
Back
Top