chuyiwen_gmsv/include/npc_pkpetshop.h

298 lines
9.5 KiB
C
Raw Normal View History

2016-12-24 08:45:52 +08:00
0037:npc_poolitemshop.h:0184:1:14=48041e4b:16=47d21313:#ifndef __NPC_POOLITEMSHOP_H__
#define __NPC_POOLITEMSHOP_H__
void NPC_PoolItemShopLoop( int meindex);
BOOL NPC_PoolItemShopInit( int meindex);
void NPC_PoolItemShopTalked( int meindex , int talkerindex ,
char *szMes ,int color );
void NPC_PoolItemShopWindowTalked( int meindex, int talkerindex,
int seqno, int select, char *data);
#endif
/*__NPC_POOLITEMSHOP_H__*/
002F:npc_quiz.h:02C0:1:14=48041e4b:16=47d21313:#ifndef __NPC_QUIZ_H__
#define __NPC_QUIZ_H__
typedef struct NPC_Quiz{
int no; // <20><><EFBFBD><EFBFBD> į
int type; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ء<EFBFBD>ة <20><><EFBFBD><EFBFBD><EFBFBD>̡<EFBFBD>֭)
int level; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ì<EFBFBD><C3AC>
int answertype; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̫<EFBFBD><CCAB><EFBFBD><EFBFBD>(<28><> <20><><EFBFBD><EFBFBD> <20><>ǩ<EFBFBD><C7A9>Ѩ<EFBFBD><D1A8><EFBFBD><EFBFBD>
int answerNo; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char question[512]; // <20><>
char select1[128]; //<2F><> <20><>1
char select2[128]; //<2F><> <20><>2
char select3[128]; //<2F><> <20><>3
}NPC_QUIZ;
void NPC_QuizTalked( int meindex , int talkerindex , char *msg ,
int color );
BOOL NPC_QuizInit( int meindex );
void NPC_QuizWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
BOOL QUIZ_initQuiz( char *filename);
#endif
/*__NPC_QUIZ_H__*/
0033:npc_riderman.h:017F:1:14=48041e4b:16=47d21313:#ifndef __NPC_RIDERMAN_H__
#define __NPC_RIDERMAN_H__
void NPC_RidermanTalked( int meindex , int talkerindex , char *msg ,
int color );
BOOL NPC_RidermanInit( int meindex );
void NPC_RidermanLooked( int meindex, int lookedindex );
void NPC_RidermanWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
#endif
/*__NPC_RIDERMAN_H__*/
0037:npc_roomadminnew.h:03CA:1:14=48041e4b:16=47d21313:#ifndef __NPC_ROOMADMINNEW_H__
#define __NPC_ROOMADMINNEW_H__
void NPC_RoomAdminNewTalked( int meindex , int talkerindex , char *msg , int color );
void NPC_RoomAdminNewLoop( int meindex );
BOOL NPC_RoomAdminNewInit( int meindex );
BOOL NPC_RankingInit( int meindex );
void NPC_RankingTalked( int meindex , int talkerindex , char *msg ,int color );
BOOL NPC_PrintpassmanInit( int meindex );
void NPC_PrintpassmanTalked( int meindex , int talkerindex , char *msg ,int color );
typedef struct npc_roomadminnew_tag {
int expire;
char cdkey[CDKEYLEN];
char charaname[32];
char passwd[9];
}NPC_ROOMINFO;
typedef struct npc_roomadminnew_ranking_tag {
int gold; /* ڿ<>ź<EFBFBD> */
int biddate; /* ڿ<><DABF><EFBFBD><EFBFBD> */
char cdkey[CDKEYLEN]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD> ƽ<><C6BD> */
char charaname[32]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD> <20><> */
char owntitle[32]; /* <20><>į*/
}NPC_RANKING_INFO;
#endif /*__NPC_ROOMADMINNEW_H__*/
BOOL NPC_RoomAdminNew_ReadFile( char *roomname, NPC_ROOMINFO *data);
0030:npc_sample.h:075:1:14=48041e4b:16=47d21313:#ifndef __NPC_SAMPLE_H__
#define __NPC_SAMPLE_H__
void NPC_SampleLoop( int index );
#endif
/*__NPC_SAMPLE_H__*/
0034:npc_savepoint.h:014F:1:14=48041e4b:16=47d21313:#ifndef __NPC_SAVEPOINT_H__
#define __NPC_SAVEPOINT_H__
void NPC_SavePointTalked( int meindex , int talkerindex , char *msg ,
int color );
BOOL NPC_SavePointInit( int meindex );
void NPC_SavePointWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
#endif
/*__NPC_SAVEPOINT_H__*/
0036:npc_scheduleman.h:0A5A:1:14=48041e4b:16=47d21313:#ifndef __NPC_SCHEDULEMAN_H__
#define __NPC_SCHEDULEMAN_H__
#define CHARNAME_MAX 32
// <20><><EFBFBD><EFBFBD> scheduleman <20><><EFBFBD><EFBFBD>
#ifdef _FAMILY_MANORNUM_CHANGE
#define MAX_SCHEDULEMAN 20
#else
#define MAX_SCHEDULEMAN 12
#endif
// ÿһ<C3BF><D2BB> scheduleman <20>عܵ<D8B9> schedule <20><><EFBFBD><EFBFBD>
#define MAX_SCHEDULE 24
// schedule <20>б<EFBFBD><D0B1><EFBFBD>һҳ<D2BB><D2B3><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define MAXSCHEDULEINONEWINDOW 10
// family <20>б<EFBFBD><D0B1><EFBFBD>һҳ<D2BB><D2B3><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define MAXFAMILYINONEWINDOW 10
// ÿһ<C3BF><D2BB> scheduleman <20><>ʹ<EFBFBD>õ<EFBFBD> schedule <20><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
// <20><>Ӧ<EFBFBD><D3A6> fmpks <20><> ID*MAX_SCHEDULE <20><> (ID=0~MAX_SCHEDULEMAN-1)
// ID <20><>д<EFBFBD><D0B4> data/npc <20><>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD> "id:" <20><>ֵ
// dueltime = (<28><><EFBFBD><EFBFBD>?10000:0) + (Сʱ*100)
typedef struct tagFamilyPKSchedule {
int dueltime; // <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
int host_index; // <20><><EFBFBD>Ӽ<EFBFBD><D3BC><EFBFBD>
char host_name[CHARNAME_MAX]; // <20><><EFBFBD>Ӽ<EFBFBD><D3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int guest_index; // <20>ͶӼ<CDB6><D3BC><EFBFBD>
char guest_name[CHARNAME_MAX]; // <20>ͶӼ<CDB6><D3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int prepare_time; // ׼<><D7BC>ʱ<EFBFBD><CAB1> (1~40 <20><><EFBFBD><EFBFBD>)
int max_player; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (1~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
int flag; // ״̬
int win; // ʤ<><CAA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int challenge_timeout; // <20><>սʱ<D5BD><CAB1>
int setting_timeout; // <20>趨״̬<D7B4><CCAC> timeout
char gmsv_name[256];
} FamilyPKSchedule;
// <20><>¼<EFBFBD><C2BC> FamilyPKSchedule (fmpks) <20><> flag ֵ
#define FMPKS_FLAG_NONE -1 // û<><C3BB><EFBFBD>κ<EFBFBD><CEBA>ų<EFBFBD>
#define FMPKS_FLAG_CHALLENGE 0 // <20>ȴ<EFBFBD><C8B4>Ͷ<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>
#define FMPKS_FLAG_SETTING 1 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD><><C8A1>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD> NONE)
#define FMPKS_FLAG_CONFIRMING 2 // <20>Ͷ<EFBFBD><CDB6><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>
#define FMPKS_FLAG_SCHEDULED 3 // <20>Ѿ<EFBFBD><D1BE>ź<EFBFBD><C5BA>ų̣<C5B3><CCA3><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>
#define FMPKS_FLAG_DUEL 4 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define FMPKS_FLAG_HOSTWIN 5 // <20><><EFBFBD><EFBFBD>ʤ
#define FMPKS_FLAG_GUESTWIN 6 // <20>Ͷ<EFBFBD>ʤ
#define FMPKS_FLAG_MANOR_BATTLEBEGIN 7 // ׯ԰<D7AF><D4B0>ս ս<><D5BD><EFBFBD><EFBFBD>
#define FMPKS_FLAG_MANOR_PREPARE 8 // ׯ԰<D7AF><D4B0>ս ׼<><D7BC><EFBFBD><EFBFBD>
#define FMPKS_FLAG_MANOR_PEACE 9 // ׯ԰<D7AF><D4B0>ս <20><>ս<EFBFBD><D5BD>
#define FMPKS_FLAG_MANOR_OTHERPLANET 10 // ׯ԰<D7AF><D4B0>ս <20>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս
#define FMPKS_FLAG_MANOR_BATTLEEND 11 // ׯ԰<D7AF><D4B0>ս ս<><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define FMPKS_FLAG_MANOR_PEACE_SAVE 12 // <20><>ׯ԰<D7AF><D4B0>ս<EFBFBD>
#define FMPKS_FLAG_MANOR_READYTOFIGHT 13 // (GM: manorpk) ȫ<><C8AB>ϵ<EFBFBD><CFB5><EFBFBD>ɿ<EFBFBD>Լս״̬
#define FMPKS_FLAG_MANOR_CLEANFLAG 14 // (GM: manorpk) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬
#ifdef _NEW_MANOR_LAW
#define FMPKS_FLAG_WAIT 15 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><D5BD>,<2C>Ѽ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>ȴ<EFBFBD><C8B4><EFBFBD>ս<EFBFBD>ų<EFBFBD>
#endif
// <20><><EFBFBD><EFBFBD> client <20><> flag
#define FLAG_NONE -1
#define FLAG_MODIFY 0
#define FLAG_ACCEPT 1
#define FLAG_SETTING 2
#define FLAG_CONFIRM 3
#define FLAG_SCHEDULED 4
extern FamilyPKSchedule fmpks[MAX_SCHEDULE*MAX_SCHEDULEMAN];
BOOL NPC_SchedulemanInit(int meindex);
void NPC_SchedulemanTalked(int meindex, int talkerindex, char *msg, int color);
void NPC_SchedulemanWindowTalked(int meindex, int talkerindex,
int seqno, int select, char *data);
void NPC_SchedulemanLoop(int meindex);
#endif
/*__NPC_SCHEDULEMAN_H__*/
0035:npc_sellsthman.h:013A:1:14=48041e4b:16=47d21313:#ifndef _SELLSTH_MAN_H
#define _SELLSTH_MAN_H
void NPC_SellsthManTalked( int meindex, int talkerindex, char *msg, int color );
BOOL NPC_SellsthManInit( int meindex );
void NPC_SellsthManWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
void NPC_SellsthManLoop( int meindex);
#endif
0034:npc_signboard.h:0124:1:14=48041e4b:16=47d21313:#ifndef __NPC_SIGNBOARD_H__
#define __NPC_SIGNBOARD_H__
BOOL NPC_SignBoardInit( int meindex );
void NPC_SignBoardWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
void NPC_SignBoardLooked( int meindex , int lookedindex);
#endif
/*__NPC_WINDOWSIGNBOAD_H__*/
0035:npc_simpleshop.h:0176:1:14=48041e4b:16=47d21313:#ifndef __NPC_SIMPLESHOP_H__
#define __NPC_SIMPLESHOP_H__
void NPC_SimpleShopTalked( int index, int talker, char *msg, int color );
void NPC_SimpleShopSpecialTalked( int index, int talker, char *msg, int color );
void NPC_LimitBuyInShopSpecialTalked( int index, int talker, char *msg, int color );
void NPC_SimpleShopInit( int meindex );
#endif
/*__NPC_SIMPLESHOP_H__*/
003A:npc_stoneserviceman.h:02AE:1:14=48041e4b:16=47d21313:#ifndef __NPC_STONESERVICEMAN_H__
#define __NPC_STONESERVICEMAN_H__
// <20><><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD>
typedef struct _List
{
char Data[32]; // <20><><EFBFBD><EFBFBD>
struct _List *Next; // ָ<><D6B8><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>List
}List,*LPList;
BOOL NPC_StoneServiceManInit(int meindex);
void NPC_StoneServiceManLoop(int meindex);
void NPC_StoneServiceManTalked(int meindex,int talkerindex,char *msg,int color);
void NPC_StoneServiceManWindowTalked(int meindex,int talkerindex,int seqno,
int select,char *data);
int SendToAP(int nAid,int nIndex,int nLen,void *Data1,void *Data2);
int RecvFromAP(int *nAid,int nIndex,int *nLen,LPList *Data);
int GetMsg(int meindex);
int ConnectToAP(void);
#endif
0035:npc_storyteller.h:0B9:1:14=48041e4b:16=47d21313:#ifndef _NPC_STORYTELLER_H_
#define _NPC_STORYTELLER_H_
BOOL NPC_StoryTellerInit( int meindex );
void NPC_StoryTellerTalked( int meindex , int talker , char *msg , int col );
#endif
0031:npc_sysinfo.h:0E4:1:14=48041e4b:16=47d21313:#ifndef __NPC_SYSINFO_H__
#define __NPC_SYSINFO_H__
BOOL NPC_SysinfoInit( int meindex );
void NPC_SysinfoLoop( int meindex );
void NPC_SysinfoTalked( int meindex, int tindex, char *msg, int color);
#endif /*__NPC_SYSINFO_H__*/
0032:npc_timeman.h:0167:1:14=48041e4b:16=47d21313:#ifndef __NPC_TIMEMAN_H__
#define __NPC_TIMEMAN_H__
void NPC_TimeManTalked( int meindex , int talkerindex , char *msg ,
int color );
BOOL NPC_TimeManInit( int meindex );
void NPC_TimeManWatch( int meobjindex, int objindex, CHAR_ACTION act,
int x,int y,int dir, int* opt,int optlen );
#endif /*__NPC_TIMEMAN_H__*/
0034:npc_townpeople.h:0D1:1:14=48041e4b:16=47d21313:#ifndef __NPC_TOWNPEOPLE_H__
#define __NPC_TOWNPEOPLE_H__
void NPC_TownPeopleTalked( int index, int talker, char *msg, int color );
void NPC_TownPeopleInit( int meindex );
#endif /* __NPC_TOWNPEOPLE_H__ */
0035:npc_transerman.h:013A:1:14=48041e4b:16=47d21313:#ifndef _TRANSER_MAN_H
#define _TRANSER_MAN_H
void NPC_TranserManTalked( int meindex, int talkerindex, char *msg, int color );
BOOL NPC_TranserManInit( int meindex );
void NPC_TranserManWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
void NPC_TranserManLoop( int meindex);
#endif
0039:npc_transmigration.h:016A:1:14=48041e4b:16=47d21313:#ifndef __NPC_TRANSMIGRATION_H__
#define __NPC_TRANSMIGRATION_H__
void NPC_TransmigrationTalked( int meindex , int talkerindex , char *msg ,
int color );
BOOL NPC_TransmigrationInit( int meindex );
void NPC_TransmigrationWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);
#endif
/*__NPC_TRANSMIGRATION_H__*/