chuyiwen_gmsv/include/npc_pkpetshop.h
chuyiwen bea5ac05b3 sq_gmsv_chuyiwen
sa_sever
2016-12-24 09:45:52 +09:00

298 lines
9.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; // Ëø¼° į
int type; // Ëø¼°ÕýÄÌÃó ±Ø¡õØ© £ýµ©ºÌ¡õÖ­)
int level; // Ëø¼°ÒÁì»ï
int answertype; //²ÏÒü¼°¼»Ì«¾®Ð×(¨á £ý¨â £ýÇ©»ßѨÓÀÃñ
int answerNo; // Ëø¼°²ÏÒü
char question[512]; // Ëø
char select1[128]; //¼» ÷°1
char select2[128]; //¼» ÷°2
char select3[128]; //¼» ÷°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; /* Ú¿àź° */
int biddate; /* Ú¿ÁÝÃÞ */
char cdkey[CDKEYLEN]; /* ÎçØÆÐ×Úм° ƽ¡õ */
char charaname[32]; /* ÎçØÆÐ×Úм° ó¡ */
char owntitle[32]; /* ±¹Ä¯*/
}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
// ×î´ó scheduleman ÊýÁ¿
#ifdef _FAMILY_MANORNUM_CHANGE
#define MAX_SCHEDULEMAN 20
#else
#define MAX_SCHEDULEMAN 12
#endif
// ÿһ¸ö scheduleman ¿Ø¹ÜµÄ schedule ÊýÁ¿
#define MAX_SCHEDULE 24
// schedule ÁбíµÄÒ»Ò³ËùÄÜÁгöµÄ×î´óÊýÁ¿
#define MAXSCHEDULEINONEWINDOW 10
// family ÁбíµÄÒ»Ò³ËùÄÜÁгöµÄ×î´óÊýÁ¿
#define MAXFAMILYINONEWINDOW 10
// ÿһ¸ö scheduleman ËùʹÓÃµÄ schedule ´¢´æλÖÃ
// ¶ÔÓ¦ÔÚ fmpks µÄ ID*MAX_SCHEDULE ÉÏ (ID=0~MAX_SCHEDULEMAN-1)
// ID ÊÇдÔÚ data/npc ÖÐÖ¸¶¨¸ø "id:" µÄÖµ
// dueltime = (¸ôÌì?10000:0) + (Сʱ*100)
typedef struct tagFamilyPKSchedule {
int dueltime; // ±ÈÈüʱ¿Ì
int host_index; // Ö÷¶Ó¼Ò×å
char host_name[CHARNAME_MAX]; // Ö÷¶Ó¼Ò×åÃû³Æ
int guest_index; // ¿Í¶Ó¼Ò×å
char guest_name[CHARNAME_MAX]; // ¿Í¶Ó¼Ò×åÃû³Æ
int prepare_time; // ×¼±¸Ê±¼ä (1~40 ·ÖÖÓ)
int max_player; // ×î´ó³ö³¡ÈËÊý (1~¼Ò×åÈËÊýÉÏÏÞ)
int flag; // ״̬
int win; // ʤÀûÌõ¼þÉ趨
int challenge_timeout; // ÌôսʱÏÞ
int setting_timeout; // É趨״̬µÄ timeout
char gmsv_name[256];
} FamilyPKSchedule;
// ¼Í¼ÔÚ FamilyPKSchedule (fmpks) µÄ flag Öµ
#define FMPKS_FLAG_NONE -1 // ûÓÐÈκÎÅųÌ
#define FMPKS_FLAG_CHALLENGE 0 // µÈ´ý¿Í¶ÓͬÒâÖÐ
#define FMPKS_FLAG_SETTING 1 // Ö÷¶ÓÕýÔÚÉ趨ÅÅ³Ì (È¡Ïûʱ±ä³É NONE)
#define FMPKS_FLAG_CONFIRMING 2 // ¿Í¶ÓÕýÔÚͬÒâÖÐ
#define FMPKS_FLAG_SCHEDULED 3 // ÒѾ­ÅźÃÅų̣¬ÉÐ먦´ò
#define FMPKS_FLAG_DUEL 4 // ¿ª´òÖÐ
#define FMPKS_FLAG_HOSTWIN 5 // Ö÷¶Óʤ
#define FMPKS_FLAG_GUESTWIN 6 // ¿Í¶Óʤ
#define FMPKS_FLAG_MANOR_BATTLEBEGIN 7 // ׯ԰ÌôÕ½ Õ½¶·ÖÐ
#define FMPKS_FLAG_MANOR_PREPARE 8 // ׯ԰ÌôÕ½ ×¼±¸ÖÐ
#define FMPKS_FLAG_MANOR_PEACE 9 // ׯ԰ÌôÕ½ ÐÝÕ½ÖÐ
#define FMPKS_FLAG_MANOR_OTHERPLANET 10 // ׯ԰ÌôÕ½ ÔÚ±ðµÄÐÇÇò¾öÕ½
#define FMPKS_FLAG_MANOR_BATTLEEND 11 // ׯ԰ÌôÕ½ Õ½¶·½áÊø
#define FMPKS_FLAG_MANOR_PEACE_SAVE 12 // ½«×¯Ô°ÌôÕ½´æµµ
#define FMPKS_FLAG_MANOR_READYTOFIGHT 13 // (GM: manorpk) È«ÐÇϵ±ä³É¿ÉԼս״̬
#define FMPKS_FLAG_MANOR_CLEANFLAG 14 // (GM: manorpk) ±¾ÐÇÇòÇå³ý״̬
#ifdef _NEW_MANOR_LAW
#define FMPKS_FLAG_WAIT 15 // ½øÈëÌôÕ½ÆÚ,ÒѼǼ¼Ò×åÆøÊÆ,µÈ´ýÌôÕ½ÅųÌ
#endif
// ´«¸ø client µÄ 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__
// ×ÊÁÏ´®ÁÐ
typedef struct _List
{
char Data[32]; // ×ÊÁÏ
struct _List *Next; // Ö¸ÏòÏÂÒ»¸ö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__*/