StoneAge/gmsv/include/npc_auctioneer.h

36 lines
1.1 KiB
C
Raw Normal View History

2018-08-07 15:51:35 +08:00
#ifndef __NPC_AUCTIONEER_H__
#define __NPC_AUCTIONEER_H__
#ifdef _AUCTIONEER
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA> saac/auction.h <20><><EFBFBD><EFBFBD><EFBFBD>Ķ<EFBFBD><C4B6><EFBFBD>һ<EFBFBD><D2BB>
#define MAX_AUCTION 100 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ί<EFBFBD><CEAF><EFBFBD><EFBFBD>
#define MAX_OVERDUE 500 // <20><><EFBFBD>ڵ<EFBFBD>ί<EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><>С<EFBFBD>趨=<3D><><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*<2A><><EFBFBD><EFBFBD>ί<EFBFBD><CEAF><EFBFBD><EFBFBD>)
#define AUC_PET 1
#define AUC_ITEM 2
typedef struct tagAuctionTable {
int flag; // 0=(null) 1=ʹ<><CAB9><EFBFBD><EFBFBD> 2=<3D><><EFBFBD><EFBFBD>
char cdkey[32]; // ί<><CEAF><EFBFBD><EFBFBD> cdkey
char customer[32]; // ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int itemtype; // 1=<3D><><EFBFBD><EFBFBD> 2=<3D><><EFBFBD><EFBFBD> otherwise=error
char goods[4096]; // <20><>Ʒ (<28><><EFBFBD><EFBFBD> or <20><><EFBFBD><EFBFBD>)
char description[256]; // <20><><EFBFBD><EFBFBD>
char listdata[512]; // <20><>ʾ<EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int price; // <20><><EFBFBD><EFBFBD>
int onsaletime;
int overduetime;
} AuctionTable;
extern AuctionTable onsale[MAX_AUCTION]; // <20><><EFBFBD><EFBFBD><EFBFBD>еĵ<D0B5><C4B5>ߡ<EFBFBD><DFA1><EFBFBD><EFBFBD><EFBFBD>
//extern AuctionTable overdue[MAX_OVERDUE]; // <20><><EFBFBD>ڵĵ<DAB5><C4B5>ߡ<EFBFBD><DFA1><EFBFBD><EFBFBD><EFBFBD>
BOOL NPC_AuctioneerInit(int meindex);
void NPC_AuctioneerTalked(int meindex, int talkerindex, char *msg, int color);
void NPC_AuctioneerWindowTalked(int meindex, int talkerindex, int seqno, int select, char *data);
void NPC_AuctioneerLoop(int meindex);
#endif /* _AUCTIONEER */
#endif