[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
@petinfo
XIIIДата: Воскресенье, 25.03.2007, 00:01 | Сообщение # 1
Группа: Удаленные





atcomman.c

Code
ACMD_FUNC(petinfo); // By Alexman

Code
{ AtCommand_PetInfo,    "@petinfo",      0, atcommand_petinfo },  // By Alexman

Code
/*
*========================================================
*@petinfo by Alexman                    |
*========================================================
*Display the pet name, hungry and friendly              |
*========================================================
*/

int atcommand_petinfo(
     const int fd, struct map_session_data* sd,
     const char* command, const char* message)
{
if (pc_isGM(sd)<1) {
clif_displaymessage(fd, "Вы должны быть премиумом чтоб использовать эту комманду");
return 0;
} else if (!sd->pd) {
clif_displaymessage(fd, "Извените но у вас нет пета.");
return 0;
} else if (pc_isGM(sd)>1 && sd->pd) {
sprintf(atcmd_output, msg_table[339], sd->pd->name, sd->pet.intimate, sd->pet.hungry);  
clif_GMmessage(&sd->bl, atcmd_output, strlen(atcmd_output),3);
return 0;
}
}

atcommand.h

Code
AtCommand_PetInfo, // By Alexman

conf/msg_athena.conf

Code
339: Свойства пета Имя: %s  Дружба: %d Сытость: %d

Информация взята с eathana.ws

Внимание: после добавления этих строк нужна компиляция сервера, как это сделать читайте тут SQL и ТхТ

Сообщение отредактировал XIII - Воскресенье, 25.03.2007, 00:12
 
  • Страница 1 из 1
  • 1
Поиск: