Автор: dbImOk: Дата: 04.12.2009
int atcommand_detach( const int fd, struct map_session_data* sd, const char* command, const char* message)
{
int bb;
nullpo_retr(-1, sd);
if (!message || !*message || (sscanf(message, "%d", &bb) != 1)) {
clif_displaymessage(fd, "usage: @detach 1");
return -1;
}
if(bb != 1) {
clif_displaymessage(fd, "usage: @detach 1");
return -1;
}
sd->state.monster_ignore = 1;
sd->state.autotrade = 1;
clif_authfail_fd(fd, 15);
return 0;
}
Автор: : Дата: 01.01.1970