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) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000 / rand(1, 2), SCFLAG_NONE); }