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

Change addEvent (invertal) paying €

milbradt

New Member
Joined
Dec 25, 2011
Messages
177
Solutions
1
Reaction score
4
And it addevent 0.5 (500) every second...

I want to change addEvent's interval from 500ms to 100ms.


Paid in euro or dollar.
Interested put a comment here or private.
 
Last edited:
i want CHANGE INTERVAL(addevent) from 500ms to 100ms.

ps: if you know how to do in a addEvent by lua, no problem.
 
then write number 100 instead of 500

Yea, my addEvent does not repeat in less than 500ms. =\

ex:
Code:
for test = 100, 1000, 100 do
addEvent(doCreatureSay, i, cid, "hello",19)
end

will repeat only 0, 500, 1000. Understand?
 
no i dont understand you.

i = time.
change i it to 100
 
AddEvent was supposed to be at each 100ms, but it's coming at each 500ms instead
 
Ahhh... no no.. error in example =P

for test = 100, 1000, 100 do
addEvent(doCreatureSay, test, cid, "hello",19)
end
 
Last edited:
I'll assume this is for 8.6 server?

SCHEDULER_MINTICKS is defined in scheduler.h on line 23
Code:
#define SCHEDULER_MINTICKS 50

And then on line 44 of scheduler.h delay is limited to SCHEDULER_MINTICKS value
Code:
inline SchedulerTask* createSchedulerTask(uint32_t delay, const boost::function<void (void)>& f)
{
    if(delay < SCHEDULER_MINTICKS)
        delay = SCHEDULER_MINTICKS;

    return new SchedulerTask(delay, f);
}

Which is passed to createSchedulerTask which is passed to addEvent in luascript.cpp on line 8481
Code:
event.eventId = Scheduler::getInstance().addEvent(createSchedulerTask(std::max((int64_t)SCHEDULER_MINTICKS, popNumber(L)),
 
I'll assume this is for 8.6 server?

SCHEDULER_MINTICKS is defined in scheduler.h on line 23
Code:
#define SCHEDULER_MINTICKS 50

And then on line 44 of scheduler.h delay is limited to SCHEDULER_MINTICKS value
Code:
inline SchedulerTask* createSchedulerTask(uint32_t delay, const boost::function<void (void)>& f)
{
    if(delay < SCHEDULER_MINTICKS)
        delay = SCHEDULER_MINTICKS;

    return new SchedulerTask(delay, f);
}

Which is passed to createSchedulerTask which is passed to addEvent in luascript.cpp on line 8481
Code:
event.eventId = Scheduler::getInstance().addEvent(createSchedulerTask(std::max((int64_t)SCHEDULER_MINTICKS, popNumber(L)),

I took a look at the code, but it's all normal.. o_O
It may be some conflict with the dispatcher? maybe.. idk =\
 
Back
Top