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 и ТхТ