Quest

Namespace: SharpPluginLoader.Core

Exposes various functions and properties related to quests.

public static class Quest

Inheritance ObjectQuest

Properties

SingletonInstance

The sQuest singleton instance.

public static nint SingletonInstance { get; }

Property Value

IntPtr

CurrentQuestId

Gets the current quest ID, or -1 if there is no current quest.

public static int CurrentQuestId { get; }

Property Value

Int32

CurrentQuestName

Gets the name of the current quest, or an empty string if there is no current quest.

public static string CurrentQuestName { get; }

Property Value

String

CurrentQuestStarcount

Gets the current quest star count.

public static Int32& CurrentQuestStarcount { get; }

Property Value

Int32&

QuestState

Gets the current quest state.

public static UInt32& QuestState { get; }

Property Value

UInt32&

CurrentQuestRewardMoney

Gets the current quests reward money.

public static UInt32& CurrentQuestRewardMoney { get; }

Property Value

UInt32&

CurrentQuestRewardHrp

Gets the current quests reward HRP.

public static UInt32& CurrentQuestRewardHrp { get; }

Property Value

UInt32&

Objectives

Gets the current quests objectives

public static Span<QuestTargetData> Objectives { get; }

Property Value

Span<QuestTargetData>

QuestEndTimer

Gets the quests ending timer.

public static Timer& QuestEndTimer { get; }

Property Value

Timer&

Methods

GetQuestName(Int32)

Gets the name of the quest with the specified ID.

public static string GetQuestName(int questId)

Parameters

questId Int32
The ID of the quest.

Returns

String
The name of the quest with the specified ID, or an empty string if the quest does not exist.