sd->state.autotrade = 1; if( battle_config.at_timeout ) { int timeout = atoi(message); status->change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, (((timeout > 0) ? timeout : battle_config.at_timeout) * 60000)+(rnd()%120)-(rnd()%60)*10000), SCFLAG_NONE); }