Автор: kenz0r: Дата: 12.16.2009
Такой Вопрос Можно ли установить еффект при использование команды дт?
Пример: У нас есть всякие дт(без чатов, с чатоми и т.д) а хотелось бы увидеть что бы если человек в дт допустим был в СК (Ston Curse) !! Это токо Пример!
Если Знаете поделитесь каким образом это делается!!
Автор: kenz0r: Дата: 12.16.2009
Чтот я там полистал почитал и нииииифига не понел !=) можно по русский и своими словами что и как?
Автор: LehAxe_: Дата: 12.16.2009
clif_displaymessage(fd, "usage: @detach 1");
return -1;
if ( atoi(message) == 1 ) {
clif_specialeffect(&sd->bl, 120, 0);
}
return 0;
}
Автор: eug2b: Дата: 02.15.2011
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}
Автор: Gremlin: Дата: 02.15.2011
стоун курс:
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
sd->sc.opt1 = 6;
clif_changeoption(&sd->bl);
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
sd->sc.opt1 = 1;
clif_changeoption(&sd->bl);
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
sd->sc.opt1 = 2;
clif_changeoption(&sd->bl);
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
sd->sc.opt1 = 3;
clif_changeoption(&sd->bl);
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}
/*==========================================
* @afk by [cr0wmaster]
* Features: 1z required to use. Venders are forbidden to use this command.
*------------------------------------------*/
int atcommand_afk(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
nullpo_retr(-1, sd);
{
if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
{
sd->state.autotrade = 1;
sd->sc.opt1 = 4;
clif_changeoption(&sd->bl);
if( battle_config.at_timeout )
{
int timeout = atoi(message);
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);
}
clif_authfail_fd(fd, 15);
}
else
clif_displaymessage(fd, "afk is not allowed on this map.");
}
return 0;
}