mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Added back loading defaulttalk npcs through script. Should speed up warps now! Added loading mapobj ifno through a db table, removing the need for unique scripts. Deleted ported mapobj scripts.
This commit is contained in:
@@ -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, 0, location.motionPack, null);
|
||||
Npc npc = new Npc(mActorList.Count + 1, actorClass, location.uniqueId, this, location.x, location.y, location.z, location.rot, 0, location.motionPack, null, location.mapObjLayoutId, location.mapObjInstanceId);
|
||||
|
||||
npc.LoadEventConditions(actorClass.eventConditions);
|
||||
|
||||
|
@@ -34,7 +34,10 @@ namespace Meteor.Map.actors.area
|
||||
public float rot;
|
||||
public uint motionPack;
|
||||
|
||||
public SpawnLocation(uint classId, string uniqueId, uint zoneId, string privAreaName, int privAreaLevel, float x, float y, float z, float rot, uint animId)
|
||||
public uint mapObjLayoutId;
|
||||
public uint mapObjInstanceId;
|
||||
|
||||
public SpawnLocation(uint classId, string uniqueId, uint zoneId, string privAreaName, int privAreaLevel, float x, float y, float z, float rot, uint animId, uint mapObjLayoutId, uint mapObjInstanceId)
|
||||
{
|
||||
this.classId = classId;
|
||||
this.uniqueId = uniqueId;
|
||||
@@ -46,6 +49,8 @@ namespace Meteor.Map.actors.area
|
||||
this.z = z;
|
||||
this.rot = rot;
|
||||
this.motionPack = animId;
|
||||
}
|
||||
this.mapObjLayoutId = mapObjLayoutId;
|
||||
this.mapObjInstanceId = mapObjInstanceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user