Jump to content
  • 0

@autotrade @afk limit for 12 hours then automatically kick how?


kaixler44

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/13/14
  • Last Seen:  

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

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

conf/battle/misc.conf

// Set this to the amount of minutes autotrade chars will be kicked from the server.
at_timeout: 0
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/13/14
  • Last Seen:  

 

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]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

 

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  07/13/14
  • Last Seen:  

okay guys its worked thank you so much!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...