chuyiwen_gmsv/npc/npc_msg.c

47 lines
1.0 KiB
C
Raw Permalink Normal View History

2016-12-24 08:45:52 +08:00
#include "version.h"
#define _NPC_MSG_C_
#include "char.h"
#include "char_base.h"
#include "npcutil.h"
/*
2017-01-13 23:37:03 +08:00
2016-12-24 08:45:52 +08:00
2017-01-13 23:37:03 +08:00
init , looked
2016-12-24 08:45:52 +08:00
*/
BOOL NPC_MsgInit( int meindex )
{
//CHAR_setInt( meindex , CHAR_HP , 0 );
//CHAR_setInt( meindex , CHAR_MP , 0 );
//CHAR_setInt( meindex , CHAR_MAXMP , 0 );
//CHAR_setInt( meindex , CHAR_STR , 0 );
//CHAR_setInt( meindex , CHAR_TOUGH, 0 );
//CHAR_setInt( meindex , CHAR_LV , 0 );
CHAR_setInt( meindex , CHAR_WHICHTYPE , CHAR_TYPETOWNPEOPLE );
//CHAR_setFlg( meindex , CHAR_ISOVERED , 0 );
2017-01-13 23:37:03 +08:00
//CHAR_setFlg( meindex , CHAR_ISATTACKED , 0 ); /* 猾今木卅中方氏 */
2016-12-24 08:45:52 +08:00
return TRUE;
}
/*
2017-01-13 23:37:03 +08:00
*
2016-12-24 08:45:52 +08:00
*/
void NPC_MsgLooked( int meindex , int lookedindex )
{
char arg[NPC_UTIL_GETARGSTR_BUFSIZE];
NPC_Util_GetArgStr( meindex, arg, sizeof( arg));
CHAR_talkToCli( lookedindex , -1 , arg , CHAR_COLORWHITE );
}