mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02: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:
parent
b773098abf
commit
2cb6a9f6bd
74 changed files with 49 additions and 267 deletions
|
@ -335,8 +335,11 @@ namespace Meteor.Map
|
|||
positionY,
|
||||
positionZ,
|
||||
rotation,
|
||||
motionPack
|
||||
FROM server_eventnpc_spawn_locations
|
||||
motionPack,
|
||||
layoutId,
|
||||
instanceId
|
||||
FROM server_eventnpc_spawn_locations
|
||||
LEFT JOIN server_eventnpc_mapobj ON server_eventnpc_spawn_locations.id = server_eventnpc_mapobj.id
|
||||
";
|
||||
|
||||
MySqlCommand cmd = new MySqlCommand(query, conn);
|
||||
|
@ -363,8 +366,11 @@ namespace Meteor.Map
|
|||
float z = reader.GetFloat("positionZ");
|
||||
float rot = reader.GetFloat("rotation");
|
||||
uint motionPack = reader.GetUInt32("motionPack");
|
||||
|
||||
SpawnLocation spawn = new SpawnLocation(classId, uniqueId, zoneId, privAreaName, privAreaType, x, y, z, rot, motionPack);
|
||||
|
||||
uint layoutId = !reader.IsDBNull(reader.GetOrdinal("layoutId")) ? reader.GetUInt32("layoutId") : 0;
|
||||
uint instanceId = !reader.IsDBNull(reader.GetOrdinal("instanceId")) ? reader.GetUInt32("instanceId") : 0;
|
||||
|
||||
SpawnLocation spawn = new SpawnLocation(classId, uniqueId, zoneId, privAreaName, privAreaType, x, y, z, rot, motionPack, layoutId, instanceId);
|
||||
|
||||
zone.AddSpawnLocation(spawn);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue