From c0f7f1b1adf297d0b87b65344789d4a243e67c49 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Sun, 2 Apr 2017 18:44:47 -0400 Subject: [PATCH] Fixed quest commands not working from Lua. The uint/string overload was confusing it. --- .../actors/chara/player/Player.cs | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/FFXIVClassic Map Server/actors/chara/player/Player.cs b/FFXIVClassic Map Server/actors/chara/player/Player.cs index 0dfaa1de..bab18be7 100644 --- a/FFXIVClassic Map Server/actors/chara/player/Player.cs +++ b/FFXIVClassic Map Server/actors/chara/player/Player.cs @@ -1032,6 +1032,33 @@ namespace FFXIVClassic_Map_Server.Actors 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) { Actor actor = Server.GetStaticActors((0xA0F00000 | id)); @@ -1062,7 +1089,7 @@ namespace FFXIVClassic_Map_Server.Actors SendGameMessage(Server.GetWorldManager().GetActor(), 25224, 0x20, (object)questScenario[freeSlot].GetQuestId()); questScenario[freeSlot].NextPhase(0); } - } + } public void CompleteQuest(uint id) {