|
|
@ -12,6 +12,8 @@
|
|
|
|
{"AddJournalIndex", QuestFunctions::AddJournalIndex},\
|
|
|
|
{"AddJournalIndex", QuestFunctions::AddJournalIndex},\
|
|
|
|
{"AddKill", QuestFunctions::AddKill},\
|
|
|
|
{"AddKill", QuestFunctions::AddKill},\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
|
|
|
|
{"SetReputation", QuestFunctions::SetReputation},\
|
|
|
|
|
|
|
|
\
|
|
|
|
{"GetJournalItemQuest", QuestFunctions::GetJournalItemQuest},\
|
|
|
|
{"GetJournalItemQuest", QuestFunctions::GetJournalItemQuest},\
|
|
|
|
{"GetJournalItemIndex", QuestFunctions::GetJournalItemIndex},\
|
|
|
|
{"GetJournalItemIndex", QuestFunctions::GetJournalItemIndex},\
|
|
|
|
{"GetJournalItemType", QuestFunctions::GetJournalItemType},\
|
|
|
|
{"GetJournalItemType", QuestFunctions::GetJournalItemType},\
|
|
|
@ -19,8 +21,11 @@
|
|
|
|
{"GetKillRefId", QuestFunctions::GetKillRefId},\
|
|
|
|
{"GetKillRefId", QuestFunctions::GetKillRefId},\
|
|
|
|
{"GetKillNumber", QuestFunctions::GetKillNumber},\
|
|
|
|
{"GetKillNumber", QuestFunctions::GetKillNumber},\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
|
|
|
|
{"GetReputation", QuestFunctions::GetReputation},\
|
|
|
|
|
|
|
|
\
|
|
|
|
{"SendJournalChanges", QuestFunctions::SendJournalChanges},\
|
|
|
|
{"SendJournalChanges", QuestFunctions::SendJournalChanges},\
|
|
|
|
{"SendKillChanges", QuestFunctions::SendKillChanges}
|
|
|
|
{"SendKillChanges", QuestFunctions::SendKillChanges},\
|
|
|
|
|
|
|
|
{"SendReputation", QuestFunctions::SendReputation}
|
|
|
|
|
|
|
|
|
|
|
|
class QuestFunctions
|
|
|
|
class QuestFunctions
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -93,6 +98,15 @@ public:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void AddKill(unsigned short pid, const char* refId, int number) noexcept;
|
|
|
|
static void AddKill(unsigned short pid, const char* refId, int number) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* \brief Set the reputation of a certain player.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param pid The player ID.
|
|
|
|
|
|
|
|
* \param value The reputation.
|
|
|
|
|
|
|
|
* \return void
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void SetReputation(unsigned short pid, int value) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Get the quest at a certain index in a player's latest journal changes.
|
|
|
|
* \brief Get the quest at a certain index in a player's latest journal changes.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -149,6 +163,14 @@ public:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static int GetKillNumber(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
static int GetKillNumber(unsigned short pid, unsigned int i) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* \brief Get the a certain player's reputation.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param pid The player ID.
|
|
|
|
|
|
|
|
* \return The reputation.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
static int GetReputation(unsigned short pid) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Send a PlayerJournal packet with a player's recorded journal changes.
|
|
|
|
* \brief Send a PlayerJournal packet with a player's recorded journal changes.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -169,6 +191,16 @@ public:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void SendKillChanges(unsigned short pid, bool toOthers = false) noexcept;
|
|
|
|
static void SendKillChanges(unsigned short pid, bool toOthers = false) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* \brief Send a PlayerReputation packet with a player's recorded reputation.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param pid The player ID whose reputation should be used.
|
|
|
|
|
|
|
|
* \param toOthers Whether this packet should be sent only to other players or
|
|
|
|
|
|
|
|
* only to the player it is about.
|
|
|
|
|
|
|
|
* \return void
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
static void SendReputation(unsigned short pid, bool toOthers) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|