Use simple id parameter for instance templates.

This commit is contained in:
MobiusDev
2018-04-28 20:42:09 +00:00
parent eacf4385b6
commit 50a7482abd
73 changed files with 2462 additions and 2462 deletions

View File

@@ -561,7 +561,7 @@ public final class Instance
int doorId = 0;
if ("door".equalsIgnoreCase(d.getNodeName()))
{
doorId = Integer.parseInt(d.getAttributes().getNamedItem("doorId").getNodeValue());
doorId = Integer.parseInt(d.getAttributes().getNamedItem("id").getNodeValue());
final StatsSet set = new StatsSet();
set.set("DoorId", doorId);
for (Node bean = d.getFirstChild(); bean != null; bean = bean.getNextSibling())
@@ -590,9 +590,9 @@ public final class Instance
{
int npcId = 0, x = 0, y = 0, z = 0, heading = 0, respawn = 0, respawnRandom = 0, delay = -1;
Boolean allowRandomWalk = null;
if ("spawn".equalsIgnoreCase(d.getNodeName()))
if ("npc".equalsIgnoreCase(d.getNodeName()))
{
npcId = Integer.parseInt(d.getAttributes().getNamedItem("npcId").getNodeValue());
npcId = Integer.parseInt(d.getAttributes().getNamedItem("id").getNodeValue());
x = Integer.parseInt(d.getAttributes().getNamedItem("x").getNodeValue());
y = Integer.parseInt(d.getAttributes().getNamedItem("y").getNodeValue());
z = Integer.parseInt(d.getAttributes().getNamedItem("z").getNodeValue());