mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
Misc cleanup and standardization of style and naming conventions in code and scripts Added missing code for showing race in paperdoll based on ini setting Players can no longer use Polymorph spell while incognitoed, or while under effect of tribal paint Players can no longer use Incognito spell while polymorphed, or while under the effects of tribal paint Facial hair is now removed from players who are under the effects of Incognito spell that changes their gender for female
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
#ifndef __MSGBOARD_H__
|
|
#define __MSGBOARD_H__
|
|
|
|
// Different types of user posts
|
|
enum PostTypes
|
|
{
|
|
PT_GLOBAL = 1,
|
|
PT_REGIONAL,
|
|
PT_LOCAL
|
|
};
|
|
|
|
const UI32 BASEGLOBALPOST = 0x01000000;
|
|
const UI32 BASEREGIONPOST = 0x02000000;
|
|
const UI32 BASELOCALPOST = 0x03000000;
|
|
|
|
// Different types of QUESTS (nQuestType)
|
|
// Added for Quests (ESCORTS)
|
|
// 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.
|
|
enum QuestTypes
|
|
{
|
|
QT_NOQUEST = 0x00,
|
|
QT_ITEMQUEST = 0xFD,
|
|
QT_BOUNTYQUEST = 0xFE,
|
|
QT_ESCORTQUEST = 0xFF
|
|
};
|
|
|
|
struct MsgBoardPost_st
|
|
{
|
|
UI32 serial;
|
|
UI16 size;
|
|
UI08 posterLen;
|
|
char poster[MAX_NAME];
|
|
UI08 subjectLen;
|
|
char subject[256];
|
|
UI08 dateLen;
|
|
char date[256];
|
|
UI08 lines;
|
|
UI32 parentSerial;
|
|
UI08 toggle;
|
|
|
|
std::vector<std::string> msgBoardLine;
|
|
|
|
MsgBoardPost_st() : serial( 0 ), size( 0 ), posterLen( 0 ), subjectLen( 0 ), dateLen( 0 ), lines( 0 ), parentSerial( 0 ), toggle( 0 )
|
|
{
|
|
msgBoardLine.resize( 0 );
|
|
}
|
|
};
|
|
|
|
// Function Prototypes
|
|
void MsgBoardQuestEscortCreate( CChar *mNPC );
|
|
void MsgBoardQuestEscortArrive( CSocket *mSock, CChar *mNPC );
|
|
void MsgBoardQuestEscortRemovePost( CChar *mNPC );
|
|
void MsgBoardRemoveFile( const SERIAL msgBoardSer );
|
|
void MsgBoardMaintenance( void );
|
|
|
|
|
|
#endif
|