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

C++ TFS 0.3.6 --> 0.4 (mileSeconds and Seconds on globalevents)

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,210
Solutions
35
Reaction score
207
I'm using tfs 0.3.6 and migrated to 0.4, but I had a question:

In globalevents I use this way:
<Globalevent name = "save" interval = "60" event = "script" value = "save.lua" />
Where the server is saved every 60 seconds, ie 1 minute.

But in tfs 0.4 I have to modify to stay this way:
<Globalevent name = "save" interval = "60000" event = "script" value = "save.lua" />
In this way you would be saving in 60 seconds.

But I have several AddEvent in my server, where all were made to work in 0.3.6 (in seconds), is it possible to modify the source so that tfs 0.4 reads the same way as 0.3.6?

ATENTION: how to make tfs 0.4 read in seconds the globalevents?
 
it's possible yes but why would you want to lose precision?
by the time you edit the source and recompile you could have probably already fixed seconds -> milliseconds yourself
 
because my server is 8.54 and has several addEvent and other scripts, it would be impractical to have to put * 1000 in one by one, being that are various spells / actions / moves and the like.

Do you know in which part of the source code I can do this modification?
 
because my server is 8.54 and has several addEvent and other scripts, it would be impractical to have to put * 1000 in one by one, being that are various spells / actions / moves and the like.

Do you know in which part of the source code I can do this modification?

I guess;
globalevent.cpp / .h
luascript.cpp
npc.cpp / .h?
raids.cpp / .h
spells.cpp / .h
 
Back
Top