Removed the state and custom name columns from the enpc table. Renamed server_spawn_locations to server_eventnpc_spawn_locations. Renamed animationId to motionPack.

This commit is contained in:
Filip Maj 2022-02-13 19:24:09 -05:00
parent cfe6ef2e5e
commit 9097e557ed
6 changed files with 1101 additions and 1090 deletions

View file

@ -517,7 +517,7 @@ namespace Meteor.Map.Actors
if (actorClass == null)
return;
Npc npc = new Npc(mActorList.Count + 1, actorClass, location.uniqueId, this, location.x, location.y, location.z, location.rot, location.state, location.animId, null);
Npc npc = new Npc(mActorList.Count + 1, actorClass, location.uniqueId, this, location.x, location.y, location.z, location.rot, 0, location.motionPack, null);
npc.LoadEventConditions(actorClass.eventConditions);

View file

@ -32,10 +32,9 @@ namespace Meteor.Map.actors.area
public float y;
public float z;
public float rot;
public ushort state;
public uint animId;
public uint motionPack;
public SpawnLocation(uint classId, string uniqueId, uint zoneId, string privAreaName, int privAreaLevel, float x, float y, float z, float rot, ushort state, uint animId)
public SpawnLocation(uint classId, string uniqueId, uint zoneId, string privAreaName, int privAreaLevel, float x, float y, float z, float rot, uint animId)
{
this.classId = classId;
this.uniqueId = uniqueId;
@ -46,8 +45,7 @@ namespace Meteor.Map.actors.area
this.y = y;
this.z = z;
this.rot = rot;
this.state = state;
this.animId = animId;
this.motionPack = animId;
}
}
}