Code:
int _MakeQuestLog(void)
{
#include "templ.h"
int ind,hero,owner;
QuestLog *qlp;
hero=MQL_hp->Number;
owner=MQL_hp->Owner;
ind=0; MQL_MesBuf[0]=0;
if(WoGType){ StrCanc(MQL_MesBuf,30000,MQL_MesBuf,"{Папирус}\n\n"); }
else{ StrCanc(MQL_MesBuf,30000,MQL_MesBuf,"{Papyrus}\n\n"); }
while((qlp=GetQuest(hero,owner,&ind))!=0){
StrCanc(MQL_MesBuf,30000,MQL_MesBuf,ERM2String(ERMString[qlp->z-1],1,0));
StrCanc(MQL_MesBuf,30000,MQL_MesBuf,"\n-------------------------------------------\n");
}
if(ind!=0){ // что-то было
if(WoGType){ StrCanc(MQL_MesBuf,30000,MQL_MesBuf,"\n{Хотите} {посмотреть} {QuestLog?}"); }
else{ StrCanc(MQL_MesBuf,30000,MQL_MesBuf,"\n{Do you want} {to} {see} {the} {QuestLog?}"); }
RETURN(Request0(MQL_MesBuf))
}
RETURN(1)
}