mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Fixed screwed up cast animation.
This commit is contained in:
@@ -179,6 +179,12 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
zone.BroadcastPacketAroundActor(this, PlayAnimationOnActorPacket.BuildPacket(actorId, animId));
|
||||
}
|
||||
|
||||
public void SendChant(int left, int right)
|
||||
{
|
||||
SetActorSubStatPacket.BuildPacket(actorId, 0, left, right, 0, 0, 0, 0).DebugPrintSubPacket();
|
||||
zone.BroadcastPacketAroundActor(this, SetActorSubStatPacket.BuildPacket(actorId, 0, left, right, 0, 0, 0, 0));
|
||||
}
|
||||
|
||||
public void DoBattleAction(ushort commandId, uint animationId)
|
||||
{
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX00Packet.BuildPacket(actorId, animationId, commandId));
|
||||
|
@@ -61,7 +61,8 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
{
|
||||
// todo: modify spellSpeed based on modifiers and stuff
|
||||
((Player)owner).SendStartCastbar(spell.id, Utils.UnixTimeStampUTC(DateTime.Now.AddSeconds(spellSpeed)));
|
||||
owner.DoBattleAction(spell.id, 0x6F000002, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
owner.SendChant(0xF, 0x0);
|
||||
owner.DoBattleAction(spell.id, 0x6F000002, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -97,6 +98,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
// todo: send paralyzed/sleep message etc.
|
||||
if (errorResult != null)
|
||||
{
|
||||
owner.SendChant(0, 0);
|
||||
owner.DoBattleAction(spell.id, errorResult.animation, errorResult);
|
||||
errorResult = null;
|
||||
}
|
||||
@@ -117,6 +119,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
actions[i++] = action;
|
||||
}
|
||||
|
||||
owner.SendChant(0, 0);
|
||||
owner.DoBattleAction(spell.id, spell.battleAnimation, actions);
|
||||
}
|
||||
|
||||
@@ -167,7 +170,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
public override void Cleanup()
|
||||
{
|
||||
if (owner.currentSubState == SetActorStatePacket.SUB_STATE_PLAYER)
|
||||
{
|
||||
{
|
||||
((Player)owner).SendEndCastbar();
|
||||
}
|
||||
// command casting duration
|
||||
|
@@ -1732,12 +1732,7 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
Server.GetWorldManager().NoMembersInParty((Party)currentParty);
|
||||
currentParty = null;
|
||||
}
|
||||
|
||||
public void Update(double delta)
|
||||
{
|
||||
LuaEngine.GetInstance().CallLuaFunction(this, this, "OnUpdate", true, delta);
|
||||
}
|
||||
|
||||
|
||||
public void IssueChocobo(byte appearanceId, string nameResponse)
|
||||
{
|
||||
Database.IssuePlayerChocobo(this, appearanceId, nameResponse);
|
||||
@@ -1751,6 +1746,7 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
Database.ChangePlayerChocoboAppearance(this, appearanceId);
|
||||
chocoboAppearance = appearanceId;
|
||||
}
|
||||
|
||||
public override void Update(DateTime tick)
|
||||
{
|
||||
aiContainer.Update(tick);
|
||||
|
Reference in New Issue
Block a user