mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-04 16:51:31 +02:00
Added "CanAcceptQuest" and "IsQuestCompleted" helpers.
This commit is contained in:
parent
b345521f79
commit
6c366110ef
2 changed files with 51 additions and 0 deletions
|
@ -1122,6 +1122,32 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
}
|
||||
}
|
||||
|
||||
public bool CanAcceptQuest(string name)
|
||||
{
|
||||
if (!IsQuestCompleted(name) && !HasQuest(name))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool CanAcceptQuest(uint id)
|
||||
{
|
||||
Actor actor = Server.GetStaticActors((0xA0F00000 | id));
|
||||
return CanAcceptQuest(actor.actorName);
|
||||
}
|
||||
|
||||
public bool IsQuestCompleted(string id)
|
||||
{
|
||||
bool isCompleted = Database.IsQuestCompleted(this, id);
|
||||
return isCompleted;
|
||||
}
|
||||
|
||||
public bool IsQuestCompleted(uint id)
|
||||
{
|
||||
Actor actor = Server.GetStaticActors((0xA0F00000 | id));
|
||||
return IsQuestCompleted(actor.actorName);
|
||||
}
|
||||
|
||||
public Quest GetQuest(uint id)
|
||||
{
|
||||
for (int i = 0; i < questScenario.Length; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue