Added the game message packets. Fixed "canRideChocobo" param in zone not working. Added a lot more function for lua to access. Various minor changes.

This commit is contained in:
Filip Maj 2016-02-03 00:45:11 -05:00
parent cfb29b912f
commit c83b4a12b9
13 changed files with 259 additions and 166 deletions

View file

@ -221,6 +221,11 @@ namespace FFXIVClassic_Map_Server.Actors
return className;
}
public ushort getState()
{
return currentMainState;
}
public List<LuaParam> getLuaParams()
{
return classParams;
@ -230,7 +235,9 @@ namespace FFXIVClassic_Map_Server.Actors
{
currentMainState = newState;
SubPacket changeStatePacket = SetActorStatePacket.buildPacket(actorId, actorId, newState, currentSubState);
SubPacket battleActionPacket = BattleAction1Packet.buildPacket(actorId, actorId);
zone.broadcastPacketAroundActor(this, changeStatePacket);
zone.broadcastPacketAroundActor(this, battleActionPacket);
}
public void changeSpeed(int type, float value)