mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Push command loading implemented.
This commit is contained in:
@@ -14,13 +14,21 @@ namespace FFXIVClassic_Map_Server.actors.chara.npc
|
||||
public readonly uint propertyFlags;
|
||||
public readonly string eventConditions;
|
||||
|
||||
public ActorClass(uint id, string classPath, uint nameId, uint propertyFlags, string eventConditions)
|
||||
public readonly ushort pushCommand;
|
||||
public readonly ushort pushCommandSub;
|
||||
public readonly byte pushCommandPriority;
|
||||
|
||||
public ActorClass(uint id, string classPath, uint nameId, uint propertyFlags, string eventConditions, ushort pushCommand, ushort pushCommandSub, byte pushCommandPriority)
|
||||
{
|
||||
this.actorClassId = id;
|
||||
this.classPath = classPath;
|
||||
this.displayNameId = nameId;
|
||||
this.propertyFlags = propertyFlags;
|
||||
this.eventConditions = eventConditions;
|
||||
|
||||
this.pushCommand = pushCommand;
|
||||
this.pushCommandSub = pushCommandSub;
|
||||
this.pushCommandPriority = pushCommandPriority;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -69,8 +69,9 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
npcWork.hateType = 1;
|
||||
}
|
||||
|
||||
npcWork.pushCommand = 0x271D;
|
||||
npcWork.pushCommandPriority = 1;
|
||||
npcWork.pushCommand = actorClass.pushCommand;
|
||||
npcWork.pushCommandSub = actorClass.pushCommandSub;
|
||||
npcWork.pushCommandPriority = actorClass.pushCommandPriority;
|
||||
|
||||
GenerateActorName((int)actorNumber);
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
{
|
||||
class NpcWork
|
||||
{
|
||||
public short pushCommand;
|
||||
public ushort pushCommand;
|
||||
public int pushCommandSub;
|
||||
public byte pushCommandPriority;
|
||||
public byte hateType;
|
||||
|
Reference in New Issue
Block a user