npcDat.set("npcId", id);
npcDat.set("name", type == 0 ? "Arena" : "");
npcDat.set("jClass", "static");
npcDat.set("type", "L2StaticObject");
L2NpcTemplate template = new L2NpcTemplate(npcDat);
L2StaticObjectInstance obj = new L2StaticObjectInstance(IdFactory.getInstance().getNextId(), template);
obj.setType(type);
obj.setStaticObjectId(id);
obj.setFilePath(filePath);
obj.setMapX(mapX);
obj.setMapY(mapY);
obj.spawnMe(new Location(x, y, z));
return obj;
}