diff --git a/FFXIVClassic Map Server/actors/chara/player/Player.cs b/FFXIVClassic Map Server/actors/chara/player/Player.cs index 5ad0ed5c..b5fc8698 100644 --- a/FFXIVClassic Map Server/actors/chara/player/Player.cs +++ b/FFXIVClassic Map Server/actors/chara/player/Player.cs @@ -1466,6 +1466,25 @@ namespace FFXIVClassic_Map_Server.Actors QueuePackets(propPacketUtil.Done()); } + public void SendStartCastbar(uint commandId, uint endTime) + { + playerWork.castCommandClient = commandId; + playerWork.castEndClient = endTime; + ActorPropertyPacketUtil propPacketUtil = new ActorPropertyPacketUtil("playerWork/castState", this); + propPacketUtil.AddProperty("playerWork.castEndClient"); + propPacketUtil.AddProperty("playerWork.castCommandClient"); + QueuePackets(propPacketUtil.Done()); + } + + public void SendEndCastbar() + { + playerWork.castCommandClient = 0; + playerWork.castEndClient = 0; + ActorPropertyPacketUtil propPacketUtil = new ActorPropertyPacketUtil("playerWork/castState", this); + propPacketUtil.AddProperty("playerWork.castCommandClient"); + QueuePackets(propPacketUtil.Done()); + } + public void SetLoginDirector(Director director) { if (ownedDirectors.Contains(director)) diff --git a/FFXIVClassic Map Server/actors/chara/player/PlayerWork.cs b/FFXIVClassic Map Server/actors/chara/player/PlayerWork.cs index b0b358cd..a4206abf 100644 --- a/FFXIVClassic Map Server/actors/chara/player/PlayerWork.cs +++ b/FFXIVClassic Map Server/actors/chara/player/PlayerWork.cs @@ -18,8 +18,8 @@ public bool isContentsCommand; - public int castCommandClient; - public int castEndClient; + public uint castCommandClient; + public uint castEndClient; public int[] comboNextCommandId = new int[2]; public float comboCostBonusRate; diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/disreputable_midlander.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/disreputable_midlander.lua new file mode 100644 index 00000000..3c895bb5 --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/disreputable_midlander.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_4"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/full-lipped_fille.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/full-lipped_fille.lua new file mode 100644 index 00000000..7858c31a --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/full-lipped_fille.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEtc002"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/high-spirited_fellow.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/high-spirited_fellow.lua new file mode 100644 index 00000000..a6182b5f --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/high-spirited_fellow.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_3"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/keen-eyed_merchant.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/keen-eyed_merchant.lua new file mode 100644 index 00000000..c0fd4106 --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/keen-eyed_merchant.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_2"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/large-lunged_laborer.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/large-lunged_laborer.lua new file mode 100644 index 00000000..8a6c0029 --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/large-lunged_laborer.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEtc003"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/long-legged_lady.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/long-legged_lady.lua new file mode 100644 index 00000000..9335baad --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/long-legged_lady.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_14"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/mumpish_miqote.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/mumpish_miqote.lua new file mode 100644 index 00000000..b4512aaa --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/mumpish_miqote.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_6"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/rururaji.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/rururaji.lua new file mode 100644 index 00000000..397e1461 --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/rururaji.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_7"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/tooth-grinding_traveler.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/tooth-grinding_traveler.lua new file mode 100644 index 00000000..18a3d88f --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/tooth-grinding_traveler.lua @@ -0,0 +1,8 @@ +require ("global") +require ("quests/man/man0u0") + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEtc001"); + player:EndEvent(); +end \ No newline at end of file diff --git a/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/yayatoki.lua b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/yayatoki.lua new file mode 100644 index 00000000..1f2fc5a1 --- /dev/null +++ b/data/scripts/unique/wil0Town01/PrivateArea/PrivateAreaMasterPast_3/PopulaceStandard/yayatoki.lua @@ -0,0 +1,13 @@ +require ("global") +require ("quests/man/man0u0") + +function onSpawn(player, npc) + npc:SetQuestGraphic(player, 0x2); +end + +function onEventStarted(player, npc, triggerName) + man0u0Quest = GetStaticActor("Man0u0"); + callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent020_8"); + npc:SetQuestGraphic(player, 0x0); + player:EndEvent(); +end \ No newline at end of file