kaixler44 Posted November 3, 2014 Share Posted November 3, 2014 As the title says how can i set @autotrade and @afk limit for 12 hours then automatically kick by the server. if( battle_config.at_timeout ) { int timeout = atoi(message); status_change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, SCSTART_NONE); } please help me,Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Anakid Posted November 3, 2014 Share Posted November 3, 2014 conf/battle/misc.conf // Set this to the amount of minutes autotrade chars will be kicked from the server. at_timeout: 0 Quote Link to comment Share on other sites More sharing options...
kaixler44 Posted November 3, 2014 Author Share Posted November 3, 2014 conf/battle/misc.conf // Set this to the amount of minutes autotrade chars will be kicked from the server. at_timeout: 0 id like to set for 12 hours, should be look lie this? at_timeout: 12 [Hours] or at_timeout: 43200000 [milliseconds] Quote Link to comment Share on other sites More sharing options...
Winz Posted November 4, 2014 Share Posted November 4, 2014 conf/battle/misc.conf // Set this to the amount of minutes autotrade chars will be kicked from the server. at_timeout: 0 id like to set for 12 hours, should be look lie this? at_timeout: 12 [Hours] or at_timeout: 43200000 [milliseconds] minutes Quote Link to comment Share on other sites More sharing options...
kaixler44 Posted November 4, 2014 Author Share Posted November 4, 2014 okay guys its worked thank you so much! Quote Link to comment Share on other sites More sharing options...
As the title says how can i set @autotrade and @afk limit for 12 hours then automatically kick by the server.
if( battle_config.at_timeout ) { int timeout = atoi(message); status_change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, SCSTART_NONE); }please help me,Thanks in advance.
Link to comment
Share on other sites