mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00
Fixed quest commands not working from Lua. The uint/string overload was confusing it.
This commit is contained in:
parent
a866688344
commit
c0f7f1b1ad
1 changed files with 28 additions and 1 deletions
|
@ -1032,6 +1032,33 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//For Lua calls, cause MoonSharp goes retard with uint
|
||||||
|
public void AddQuest(int id, bool isSilent = false)
|
||||||
|
{
|
||||||
|
AddQuest((uint)id, isSilent);
|
||||||
|
}
|
||||||
|
public void CompleteQuest(int id)
|
||||||
|
{
|
||||||
|
CompleteQuest((uint)id);
|
||||||
|
}
|
||||||
|
public bool HasQuest(int id)
|
||||||
|
{
|
||||||
|
return HasQuest((uint)id);
|
||||||
|
}
|
||||||
|
public Quest GetQuest(int id)
|
||||||
|
{
|
||||||
|
return GetQuest((uint)id);
|
||||||
|
}
|
||||||
|
public bool IsQuestCompleted(int id)
|
||||||
|
{
|
||||||
|
return IsQuestCompleted((uint)id);
|
||||||
|
}
|
||||||
|
public bool CanAcceptQuest(int id)
|
||||||
|
{
|
||||||
|
return CanAcceptQuest((uint)id);
|
||||||
|
}
|
||||||
|
//For Lua calls, cause MoonSharp goes retard with uint
|
||||||
|
|
||||||
public void AddQuest(uint id, bool isSilent = false)
|
public void AddQuest(uint id, bool isSilent = false)
|
||||||
{
|
{
|
||||||
Actor actor = Server.GetStaticActors((0xA0F00000 | id));
|
Actor actor = Server.GetStaticActors((0xA0F00000 | id));
|
||||||
|
|
Loading…
Add table
Reference in a new issue