Jump to content
  • 0

How to Limit @autotrade Hours?


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Hi, Just like the Title Says..

I want to Limit the @autotrade of my Server up to a Specific Hours Only...

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

src/map/atcommand.c

status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

in 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:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

how do i actually put 48 hours there?

because i saw this:

// Define duration in msec of the day (default: 7200000 = 2 hours)

// Set to 0 to disable day cycle (but not @day GM command).

// Except 0, minimum is 60000 (1 minute)

day_duration: 7200000

// Define duration in msec of the night (default: 1800000 = 30 min)

// Set to 0 to disable night cycle (but not @night GM command).

// Except 0, minimum is 60000 (1 minute)

night_duration: 1800000

can i based on that one? in setting up the minutes? and in order for me to put the proper numbers on

at_timeout:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

No it states that it needs the number of minutes, 48 hours is 2880 minutes.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

Oh i see, thanks for that :P

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