|
Enumerations |
| enum | PostType { LOCALPOST = 0,
REGIONALPOST,
GLOBALPOST
} |
| | different types of user posts More...
|
| enum | QuestType { ESCORTQUEST = 0xFF,
BOUNTYQUEST = 0xFE,
ITEMQUEST = 0xFD,
QTINVALID = 0x0
} |
| | different types of QUESTS Added for Quests (ESCORTS)<br/> Reason for starting high and counting down, is that I store the entire user posted message as is (which includes the message type). The message type for a user post is 0x05 and I also use this field to determine whether the post is marked for deletion (0x00). In order to allow for the maximum number of different quest types, I opted to start high and count down. More...
|
Functions |
| void | MsgBoardGetPostType (NXWSOCKET s) |
| void | MsgBoardSetPostType (NXWSOCKET s, PostType nPostType) |
| void | MsgBoardOpen (int s) |
| void | MsgBoardList (int s) |
| int | MsgBoardGetMaxMsgSN (int msgType, int autoPost=0) |
| int | MsgBoardPost (int s, int msgType, int autoPost) |
| void | MsgBoardOpenPost (int s) |
| void | MsgBoardRemovePost (int s) |
| bool | MsgBoardRemoveGlobalPostBySerial (SERIAL nPostSerial) |
| void | MsgBoardEvent (int s) |
| int | MsgBoardPostQuest (int serial, QuestType questType) |
| void | MsgBoardQuestEscortCreate (int npcIndex) |
| void | MsgBoardQuestEscortArrive (P_CHAR pc, P_CHAR pc_k) |
| void | MsgBoardQuestEscortDelete (int npcIndex) |
| void | MsgBoardQuestEscortRemovePost (int npcIndex) |
| void | MsgBoardMaintenance (void) |
| void | MsgBoardEvent (NXWSOCKET s) |
| int | MsgBoardPostQuest (NXWSOCKET s, QuestType nQuestType) |
| void | MsgBoardQuestEscortCreate (NXWSOCKET s) |
| bool | MsgBoardRemoveGlobalPostBySerial (int nPostSerial) |
Variables |
| char | g_strScriptTemp [1024] |
| UI08 | postAcked [MAXCLIENT][MAXPOSTS][5] |
| | List of message serial numbers ACK'd by client.
|
| UI32 | postCount [MAXCLIENT] |
| | Total number of posts sent to client.
|
| UI32 | postAckCount [MAXCLIENT] |
| | Total number of ACK's received by client.
|
| UI08 | msg [MAXBUFFER] |
| | Char array for messages to client. Message body (when entering body of post) can hold a maximum of 1975 chars (approx).
|
| UI08 | msg2Post [MAXBUFFER] = "\x71\xFF\xFF\x05\x40\x00\x00\x19\x00\x00\x00\x00" |
| | Buffer to be used when posting messages.
|
| const UI32 | MAXPOSTS = 128 |
| | Maximum number of posts per board.
|
| const UI32 | MAXENTRIES = 256 |
| | maximum number of entries in a ESCORTS list in the MSGBOARD.sSCP file
|